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
+2 -2
View File
@@ -38,8 +38,7 @@ public:
~TriggerManager();
//common public methods
int Create();
int Create(Vector2 origin, BoundingBox bounds);
int Create(std::string handle, Vector2 origin, BoundingBox bounds);
void Unload(int uid);
void UnloadAll();
@@ -47,6 +46,7 @@ public:
//accessors & mutators
TriggerData* Get(int uid);
TriggerData* Get(std::string handle);
int GetLoadedCount();
std::map<int, TriggerData>* GetContainer();