//对配置文件进行分块处理 根据sid
    public override void parseConfig(string str)
    {
        base.parseConfig(str);
        MiningSample ms = new MiningSample();

        ms.parse(0, str);
        samples.Add(ms);
    }
Esempio n. 2
0
 void ShowMiningSpeedInfo()
 {
     if (miningSid != 0)
     {
         miningSpeed.gameObject.SetActive(true);
         MiningSample ms = MiningManagement.Instance.GetMiningSampleBySid(this.miningSid);
         if (ms.type == (int)MiningTypePage.MiningGold)
         {
             miningType.spriteName = "gold4";
             float speed = ms.outputRate + ArmyManager.Instance.ActiveEditArmy.getAllCombat() / 300000f;
             speed = speed > (float)CommandConfigManager.Instance.getMoneySpeedOfArean() ? (float)CommandConfigManager.Instance.getMoneySpeedOfArean() : speed;
             miningSpeedValue.text = LanguageConfigManager.Instance.getLanguage("s0043l3", ((int)(speed * 3600)).ToString() + "/");
         }
         else
         {
             miningType.spriteName = "gem1";
             miningSpeedValue.text = LanguageConfigManager.Instance.getLanguage("s0043l3", ((int)(ms.outputRate * 3600)).ToString() + "/");
         }
     }
 }