public EntityIncorporated(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "site_id": Site = world.GetSite(Convert.ToInt32(property.Value)); break; case "subregion_id": Region = world.GetRegion(Convert.ToInt32(property.Value)); break; case "feature_layer_id": UndergroundRegion = world.GetUndergroundRegion(Convert.ToInt32(property.Value)); break; case "joiner_entity_id": JoinerEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "joined_entity_id": JoinedEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "leader_hfid": Leader = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "partial_incorporation": property.Known = true; PartialIncorporation = true; break; } } Site.AddEvent(this); Region.AddEvent(this); UndergroundRegion.AddEvent(this); Leader.AddEvent(this); JoinerEntity.AddEvent(this); JoinedEntity.AddEvent(this); }