public void reciveGamePlayData(byte[] currentMap, GamePlayServerResponse response) { if (_gamePlayAction != null) { _gamePlayAction.BeginInvoke(Map.Deserialize(currentMap), response, a => _gamePlayAction.EndInvoke(a), null); } }
public GamePlayServerResponse(int roundNumber, Position myPosition, bool HasBigItem, int SmallItem, GamePlayServerResponse response) { RoundNumber = roundNumber; _hasBigItem = HasBigItem; SmallItemNumber = SmallItem; this.RoundNumber = roundNumber; this.MyPosition = myPosition; if (response != null) { Result = response.Result; Message = response.Message; ServerState = response.ServerState; } }
public GamePlayServerResponse(int roundNumber, Position myPosition, double MyCurrentPay, double TotalPay, bool HasBigItem, int SmallItem, MoveConsequence Consequence, GamePlayServerResponse response) { RoundNumber = roundNumber; _myCurrentPay = MyCurrentPay; _totalPay = TotalPay; _hasBigItem = HasBigItem; _smallItemNumber = SmallItem; this.RoundNumber = roundNumber; this.MyPosition = myPosition; this._consequence = Consequence; if (response != null) { Result = response.Result; Message = response.Message; ServerState = response.ServerState; } }