static internal PowerCounter ToPowerCounter(this WCFPowerCounter o) { PowerCounter result = new PowerCounter(); result.Id = o.Id; result.TokenType = o.TokenType; result.Terrain = o.Terrain; return(result); }
public void NewPowerCounter(Terrain terrain) { PowerCounter result = new PowerCounter() { Terrain = terrain.Name, Terrain1 = terrain, TokenType = "Жетон_власти", Game = this.Game, GameUserInfo = this, Id = Guid.NewGuid(), Step = this.Step }; this.PowerCounter.Add(result); }
public void CopyPowerCounter(GameUserInfo gameUserInfo) { PowerCounter result = new PowerCounter(); result.GameUserInfo = gameUserInfo; result.Terrain1 = this.Terrain1; result.Id = Guid.NewGuid(); result.Step = gameUserInfo.Step; result.Game = gameUserInfo.Game; result.TokenType = this.TokenType; result.Terrain = this.Terrain; gameUserInfo.PowerCounter.Add(result); }