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:
Kayne Ruse
2015-02-27 19:35:11 +11:00
parent cb63c9b07c
commit edcb6f05ce
8 changed files with 147 additions and 21 deletions
+4 -2
View File
@@ -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;