public string Stringify() { /* * (version):(turn):(ourhp):(ourArmy):(ourAdvArmy): * (currentAp):(currentMaxAp):(resources): * (enemyhp):(enemyArmy):(enemyAdvArmy) */ string[] tmpArr = new string[] { version.ToString(), turn.ToString(), warMachine.GetAP().GetCurrentAp().ToString(), warMachine.GetAP().GetCurrentMaxAp().ToString(), warMachine.GetArmy().GetArmyNum().ToString(), warMachine.GetArmy().GetAdvArmyNum().ToString(), masterMind.GetArmy().GetArmyNum().ToString(), masterMind.GetArmy().GetAdvArmyNum().ToString(), warMachine.GetResourceManager().ToString(), String.Join("", warMachine.GetFaclilties().Select(x => x.CheckIsActivated()?"1":"0").ToArray()), warMachine.GetHp().ToString(), masterMind.GetHp().ToString(), }; return(String.Join(":", tmpArr)); }