public void write(BinaryWriter writer) { Actors.write(writer); Deployed_Actors.write(writer); writer.Write(Convoy_Id); writer.Write(Gold); }
//@Yeti: this might need to include predeployed maps and units that join // the player team mid-map public void refresh_deployed() { Deployed_Actors.Clear(); // Gets the actor ids of units on the map that are on the player team if (Global.map_exists) { Deployed_Actors.AddRange(Global.game_map.units .Where(x => x.Value.is_player_team) .Select(x => x.Value.actor.id)); } }