add access levels

This commit is contained in:
floralrainfall 2023-07-16 23:43:39 -04:00
parent 6a24f444fa
commit 7ff4b82ea1
6 changed files with 40 additions and 18 deletions

View File

@ -25,4 +25,7 @@ target_link_libraries(Studio PRIVATE Common Engine)
set_target_properties(Studio PROPERTIES
WIN32_EXECUTABLE ON
MACOSX_BUNDLE ON
)
)
install(TARGETS Studio
RUNTIME_DEPENDENCIES)

View File

@ -7,9 +7,12 @@ namespace RNR
{
enum ReflectionPropertyAccess
{
ACCESS_SCRIPT,
ACCESS_CONSOLE,
ACCESS_RNR,
ACCESS_NONE,
ACCESS_PLUGIN,
ACCESS_LOCALUSER,
ACCESS_WRITEPLAYER,
ACCESS_AUTHORIZEDSCRIPT,
ACCESS_AUTHORIZED,
};
template <class T>

View File

@ -1,4 +1,16 @@
#pragma once
#include <Helpers/NormalId.hpp>
#include <App/V8/Tree/Instance.hpp>
namespace RNR
{
class FaceInstance : public Instance, Ogre::ManualObject
{
private:
NormalId m_face;
public:
};
}

View File

@ -1,16 +1,8 @@
#pragma once
namespace RNR {
Ogre::Vector3 normalIdVectors[] = {
Ogre::Vector3(1, 0, 0),
Ogre::Vector3(0, 1, 0),
Ogre::Vector3(0, 0, 1),
Ogre::Vector3(-1, 0, 0),
Ogre::Vector3(0, -1, 0),
Ogre::Vector3(0, 0, -1),
Ogre::Vector3(0, 0, 0)
};
#include <OGRE/Ogre.h>
namespace RNR {
enum NormalId
{
NORM_X,

View File

@ -1,4 +1,7 @@
#pragma once
#include <App/V8/Tree/Instance.hpp>
#include <Helpers/NormalId.hpp>
#include <Helpers/NormalId.hpp>
namespace RNR
{
}

View File

@ -3,6 +3,15 @@
#include <OGRE/Ogre.h>
namespace RNR {
static Ogre::Vector3 normalIdVectors[] = {
Ogre::Vector3(1, 0, 0),
Ogre::Vector3(0, 1, 0),
Ogre::Vector3(0, 0, 1),
Ogre::Vector3(-1, 0, 0),
Ogre::Vector3(0, -1, 0),
Ogre::Vector3(0, 0, -1),
};
bool validNormalId(NormalId normalId) {
return ((normalId >= 0) && (normalId < 6));
}
@ -154,7 +163,7 @@ namespace RNR {
return Ogre::Vector3::UNIT_X;
}
}
Ogre::Vector3 objectToUvw(const Ogre::Vector3& object, NormalId faceId)
{
switch (faceId)