예제 #1
0
 public void SetupExternalHooks()
 {
     if (MainMenuLoadedFirstTimeRef != -1 && _MainMenuLoadedFirstTime == null)
     {
         _MainMenuLoadedFirstTime = (main_menu) => {
             Info.RunLua(MainMenuLoadedFirstTimeRef, "Events.MainMenuLoadedFirstTime", new object[] { main_menu });
         };
         EventHooks.MainMenuLoadedFirstTime += _MainMenuLoadedFirstTime;
     }
 }
예제 #2
0
 public void SetupExternalHooks()
 {
     if (MainMenuLoadedFirstTime != null && _MainMenuLoadedFirstTime == null)
     {
         _MainMenuLoadedFirstTime = (main_menu) => {
             Info.RunLua(MainMenuLoadedFirstTime, "Events.MainMenuLoadedFirstTime", new LuaTransparentClrObject(main_menu, autobind: true));
         };
         EventHooks.MainMenuLoadedFirstTime += _MainMenuLoadedFirstTime;
     }
 }