private static ServerCommandDto Map(IEnterCityServerCommand c) { var result = new ServerCommandDto { Type = c.Type, Guid = c.Guid }; result.WorldGuid = c.WorldGuid; result.CityGuid = c.CityGuid; result.Id = c.Id; return(result); }
public void Execute(List <string> extraWords) { if (extraWords.Count == 0) { return; } var genericCommand = new ServerCommandDto(); genericCommand.Command = extraWords.First(); genericCommand.ExtraWords = extraWords.Skip(1).ToList(); ServerConnection.SendDtoMessage(genericCommand); }