6 #include <unordered_map>
7 #include <unordered_set>
21 using std::unique_ptr;
22 using std::unordered_map;
23 using std::unordered_set;
64 array<bool, 8>
mouseDown {{
false,
false,
false,
false,
false,
false,
false,
false }};
65 array<bool, 8>
mouseUp {{
false,
false,
false,
false,
false,
false,
false,
false }};
66 array<bool, 8>
mouseDragging {{
false,
false,
false,
false,
false,
false,
false,
false }};
133 Entity*
getEntity(
const string& entityId,
const string& childEntityId);
161 void collectHIDEvents(vector<GUIMouseEvent>& mouseEvents, vector<GUIKeyboardEvent>& keyEvents);
Entity * getEntity(const string &entityId, const string &childEntityId)
Get entity by given entity id and given child entity id, the latter expects a entity hierarchy to res...
void setContext(Context *context)
Set context.
array< bool, 8 > mouseDragging
array< bool, 8 > mouseDown
void setLogic(MiniScriptLogic *logic)
Set logic.
const string getBaseClass()
static STATIC_DLL_IMPEXT const vector< string > CONTEXTFUNCTIONS_ENGINE
vector< PrototypeToAdd > enginePrototypesToAdd
Mutex prototypesToAddMutex
void collectHIDEvents(vector< GUIMouseEvent > &mouseEvents, vector< GUIKeyboardEvent > &keyEvents)
Collect HID events.
static STATIC_DLL_IMPEXT const vector< string > CONTEXTFUNCTIONS_LOGIC
unordered_set< int32_t > keyboardKeys
string keyboardTypedChars
vector< PrototypeToAdd > physicsPrototypesToAdd
LogicMiniScript()
Public constructor.
unordered_map< string, PrototypeCounter > prototypes
void registerStateMachineStates() override
virtual ~LogicMiniScript()
Destructor.
const vector< string > getTranspilationUnits()
unordered_set< int32_t > keyboardChars
static STATIC_DLL_IMPEXT const vector< string > CONTEXTFUNCTIONS_ENGINELOGIC
void registerVariables() override
void registerMethods() override
unique_ptr< Prototype > prototype
PrototypeToAdd(Type type, Prototype *prototype, const string &id, const string &attachNodeId, const Transform &transform, const string &hierarchyId, const string &hierarchyParentId)
#define STATIC_DLL_IMPEXT
#define FORBID_CLASS_COPY(CLASS)