public static void Prefix()
 {
     lastcyclenumber = LuaFunctions.GetCycleNumber();
     if (LuaFunctions.GetCycleTime() > 50)
     {
         lastcyclenumber2 = LuaFunctions.GetCycleNumber();
     }
     ScriptingCore.OnEvent("newgame");
 }
 public static void newday()
 {
     try
     {
         if (lastcyclenumber != LuaFunctions.GetCycleNumber())
         {
             ScriptingCore.OnEvent("newday");
             lastcyclenumber = LuaFunctions.GetCycleNumber();
         }
     }
     catch { }
 }
 public static void noon()
 {
     try
     {
         if (lastcyclenumber2 != LuaFunctions.GetCycleNumber())
         {
             if (LuaFunctions.GetCycleTime() > 50)
             {
                 ScriptingCore.OnEvent("noon");
                 lastcyclenumber2 = LuaFunctions.GetCycleNumber();
             }
         }
     }
     catch { }
 }