Example #1
0
        public static void Load()
        {
            _IO io = new _IO();

            FromSet(io.Load());
            Timeslice.AddSecondEvent(AutoSave);
        }
Example #2
0
 public Stock()
 {
     Instance = this;
     time     = 0;
     ExStockInit();
     TaxInit();
     Timeslice.AddSecondEvent(StockStep);
 }
Example #3
0
 ///插件即将被销毁
 public static int IR_DestroyPlugin()
 {
     Timeslice.Close();
     if (modules != null)
     {
         for (int i = 0; i < modules.Length; i++)
         {
             modules[i] = null;
         }
     }
     DataRunTime.Save();
     return(0);
 }
Example #4
0
        public static string IR_Create()
        {
            LitJson.JsonData j        = new LitJson.JsonData();
            string           szBuffer = "插件名称{" + pluginName + "}\n插件版本{" + pluginVersion + "}\n插件作者{" + pluginAuthor + "}\n插件说明{" + pluginDescribe + "}\n插件skey{" + pluginSkey + "}插件sdk{" + pluginSdk + "}";

            Timeslice.Open();
            DataRunTime.Load();
            _S.InitLocalization();
            modules = new IModule[]
            {
                new Statistics(),
                //new Arena(),
                new SomeAPI(),
                new Stock(),
                new Bank(),
            };
            return(szBuffer);
        }
Example #5
0
 public Bank()
 {
     time = 0;
     Timeslice.AddSecondEvent(AutoAdd);
 }
Example #6
0
 public Repeat()
 {
     Timeslice.AddSecondEvent(RepeatQuaterMin);
 }