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; }
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; }