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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user