Esempio n. 1
0
        public void AddZoneScriptEvent(int idx, LuaEngine.EZoneCallbacks ev)
        {
            string assetName = "zone_" + idx;

            DiagManager.Instance.LogInfo(String.Format("Zone.AddZoneScriptEvent(): Added event {0} to zone {1}!", ev.ToString(), assetName));
            ScriptEvents[ev] = new ScriptEvent(LuaEngine.MakeZoneScriptCallbackName(assetName, ev));
        }
Esempio n. 2
0
 public void LoadScriptEvents(List <LuaEngine.EZoneCallbacks> scriptEvents)
 {
     ScriptEvents.Clear();
     foreach (LuaEngine.EZoneCallbacks ev in scriptEvents)
     {
         string assetName = "zone_" + this.ID;
         DiagManager.Instance.LogInfo(String.Format("Zone.LoadScriptEvents(): Added event {0} to zone {1}!", ev.ToString(), assetName));
         ScriptEvents[ev] = new ScriptEvent(LuaEngine.MakeZoneScriptCallbackName(assetName, ev));
     }
 }