Beispiel #1
0
        public DeployableSpendRequest(string battleId, uint time, int boardX, int boardZ)
        {
            base.PlayerId = Service.CurrentPlayer.PlayerId;
            this.BattleId = battleId;
            DeploymentRecord item = new DeploymentRecord(null, "SquadTroopPlaced", time, boardX, boardZ);

            this.units = new List <DeploymentRecord>();
            this.units.Add(item);
            this.SquadDeployed = true;
        }
        public void OnMessage(Message <byte[]> message)
        {
            DeploymentRecord value = DeploymentRecord.Parser.ParseFrom(message.GetMessageObject());

            MessageConsumer.Invoke(value);
        }