Esempio n. 1
0
        public GameCommand(string userId, string objectId, enCommand command, string unitId = null, int turn = 0, int? rotation = null, int? distance = null)
        {
            this.Path = this.GetType().Name;

            this.UserId = userId;
            this.ObjectId = objectId;
            this.Command = command;
            this.UnitId = unitId;
            this.Rotation = rotation;
            this.Distance = distance;
            this.Turn = turn;
            this.CommandStatus = enCommandStatus.Pending;
        }
Esempio n. 2
0
        public GameCommand(string userId, string objectId, enCommand command, string unitId = null, int turn = 0, int?rotation = null, int?distance = null)
        {
            this.Path = this.GetType().Name;

            this.UserId        = userId;
            this.ObjectId      = objectId;
            this.Command       = command;
            this.UnitId        = unitId;
            this.Rotation      = rotation;
            this.Distance      = distance;
            this.Turn          = turn;
            this.CommandStatus = enCommandStatus.Pending;
        }