public ZonerBuilder(IWorldView worldView) { this.zones = worldView.Rules.Zones; this.zoneColor = this.zones.GetTypedComponents <Color?>(ZoneLayer.Component); }
/// <summary> /// Return the int, string NamedEntity tuple corresponding to the given entity name. /// The named entity name component will be the same as the given entity name. /// </summary> public static NamedEntity GetNamedEntity(this IReadOnlyNamedEntities entities, string entityName) { Contract.Requires(entities != null); return(new NamedEntity(entities[entityName], entityName)); }