public static void Load() { _IO io = new _IO(); FromSet(io.Load()); Timeslice.AddSecondEvent(AutoSave); }
public Stock() { Instance = this; time = 0; ExStockInit(); TaxInit(); Timeslice.AddSecondEvent(StockStep); }
///插件即将被销毁 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); }
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); }
public Bank() { time = 0; Timeslice.AddSecondEvent(AutoAdd); }
public Repeat() { Timeslice.AddSecondEvent(RepeatQuaterMin); }