public EntityReputation(List <Property> properties, World world) { foreach (Property property in properties) { switch (property.Name) { case "entity_id": Entity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "unsolved_murders": UnsolvedMurders = Convert.ToInt32(property.Value); break; case "first_ageless_year": FirstSuspectedAgelessYear = Convert.ToInt32(property.Value); break; case "first_ageless_season_count": FirstSuspectedAglessSeason = Formatting.TimeCountToSeason(Convert.ToInt32(property.Value)); break; } } }
public EntityReputation(List<Property> properties, World world) { foreach (Property property in properties) { switch (property.Name) { case "entity_id": Entity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "unsolved_murders": UnsolvedMurders = Convert.ToInt32(property.Value); break; case "first_ageless_year": FirstSuspectedAgelessYear = Convert.ToInt32(property.Value); break; case "first_ageless_season_count": FirstSuspectedAgelessSeason = Formatting.TimeCountToSeason(Convert.ToInt32(property.Value)); break; case "rep_enemy_fighter": Reputations.Add(ReputationType.EnemyFighter, Convert.ToInt32(property.Value)); break; case "rep_trade_partner": Reputations.Add(ReputationType.TradePartner, Convert.ToInt32(property.Value)); break; case "rep_killer": Reputations.Add(ReputationType.Killer, Convert.ToInt32(property.Value)); break; case "rep_poet": Reputations.Add(ReputationType.Poet, Convert.ToInt32(property.Value)); break; case "rep_bard": Reputations.Add(ReputationType.Bard, Convert.ToInt32(property.Value)); break; case "rep_storyteller": Reputations.Add(ReputationType.Storyteller, Convert.ToInt32(property.Value)); break; case "rep_dancer": Reputations.Add(ReputationType.Dancer, Convert.ToInt32(property.Value)); break; } } }