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
+8
View File
@@ -21,6 +21,14 @@
*/
#include "trigger_data.hpp"
std::string TriggerData::SetHandle(std::string s) {
return handle = s;
}
std::string TriggerData::GetHandle() const {
return handle;
}
int TriggerData::SetScriptReference(int i) {
return scriptRef = i;
}