Implemented trigger creation & deletion via lua
Triggers now have handles for simple understanding, but there's nothing preventing multiple triggers from sharing the same name.
This commit is contained in:
@@ -34,6 +34,9 @@ public:
|
||||
TriggerData() = default;
|
||||
~TriggerData() = default;
|
||||
|
||||
std::string SetHandle(std::string);
|
||||
std::string GetHandle() const;
|
||||
|
||||
Vector2 SetOrigin(Vector2 v);
|
||||
Vector2 GetOrigin();
|
||||
|
||||
@@ -44,8 +47,7 @@ public:
|
||||
int GetScriptReference();
|
||||
|
||||
private:
|
||||
friend class TriggerManager;
|
||||
|
||||
std::string handle;
|
||||
Vector2 origin;
|
||||
BoundingBox bounds;
|
||||
int scriptRef = LUA_NOREF;
|
||||
|
||||
Reference in New Issue
Block a user