コード例 #1
0
 public static void Prefix()
 {
     lastcyclenumber = LuaFunctions.GetCycleNumber();
     if (LuaFunctions.GetCycleTime() > 50)
     {
         lastcyclenumber2 = LuaFunctions.GetCycleNumber();
     }
     ScriptingCore.OnEvent("newgame");
 }
コード例 #2
0
 public static void newday()
 {
     try
     {
         if (lastcyclenumber != LuaFunctions.GetCycleNumber())
         {
             ScriptingCore.OnEvent("newday");
             lastcyclenumber = LuaFunctions.GetCycleNumber();
         }
     }
     catch { }
 }
コード例 #3
0
 public static void noon()
 {
     try
     {
         if (lastcyclenumber2 != LuaFunctions.GetCycleNumber())
         {
             if (LuaFunctions.GetCycleTime() > 50)
             {
                 ScriptingCore.OnEvent("noon");
                 lastcyclenumber2 = LuaFunctions.GetCycleNumber();
             }
         }
     }
     catch { }
 }