Ejemplo n.º 1
0
 private static void ServerResetConfig()
 {
     vpsStatus      = VpsStatus.Running;
     anyTaskWorking = true;
     servers        = new ServerList();
     SummomPriceRule.Init();
     Goods.Equiment.EquimentPrice.Init();
     servers.ResetConfig(settingDelayTime, settingAssumePriceRate);
     Tcp.Send(new RpClientRunReadyMessage());
 }
Ejemplo n.º 2
0
 private static void ServerRun()
 {
     servers = new ServerList();
     SummomPriceRule.Init();
     Goods.Equiment.EquimentPrice.Init();
     Program.setting.threadSetting.Status = "初始化完成";
     //setting.LogInfo("进程加载完成,等待1000ms", "主记录");
     //while(Environment.TickCount- systemBegin < 1000)
     //{
     //	Thread.Sleep(50);
     //}
     servers.Run();
     Tcp.Send("<clientExit>");
     setting.LogInfo("进程退出", "主记录");
 }
Ejemplo n.º 3
0
            public static SummomPriceRule GetSummonKindPriceList(Summon summon)
            {
                SummomPriceRule best = null;

                foreach (var 成长值 in 成长值list)
                {
                    if (成长值.Key <= summon.成长率)
                    {
                        var thisId = GetSummonKindId(summon.Name, summon.神兽, 成长值.Key, summon.变色);
                        if (SummomPriceRuleList.ContainsKey(thisId))
                        {
                            best = SummomPriceRuleList[thisId];
                        }
                    }
                }
                return(best);
            }