Port events to transitional syntax.

This commit is contained in:
David Anderson
2014-12-13 12:51:16 -08:00
parent b607bfeca9
commit 28eb663f9b
5 changed files with 140 additions and 56 deletions
+15
View File
@@ -418,6 +418,21 @@ REGISTER_NATIVES(gameEventNatives)
{"SetEventFloat", sm_SetEventFloat},
{"SetEventString", sm_SetEventString},
{"SetEventBroadcast", sm_SetEventBroadcast},
// Transitional syntax support.
{"Event.Fire", sm_FireEvent},
{"Event.Cancel", sm_CancelCreatedEvent},
{"Event.GetName", sm_GetEventName},
{"Event.GetBool", sm_GetEventBool},
{"Event.GetInt", sm_GetEventInt},
{"Event.GetFloat", sm_GetEventFloat},
{"Event.GetString", sm_GetEventString},
{"Event.SetBool", sm_SetEventBool},
{"Event.SetInt", sm_SetEventInt},
{"Event.SetFloat", sm_SetEventFloat},
{"Event.SetString", sm_SetEventString},
{"Event.BroadcastDisabled.set", sm_SetEventBroadcast},
{NULL, NULL}
};