public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { var template = factory.GetTemplate(entry, false); if (template!=null) { return new TileAttribute(entry.Name, new TemplateTile(null, template, null)); } return new TileAttribute(entry.Name, new TileReference(entry.Value, factory.Map, new StringTile(entry.Value))); }
public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { var template = factory.GetTemplate(entry, false); if (template != null) { return(new TileAttribute(entry.Name, new TemplateTile(null, template, null))); } return(new TileAttribute(entry.Name, new TileReference(entry.Value, factory.Map, new StringTile(entry.Value)))); }
public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { return new TileAttribute(entry.Name, new TemplateTile(null, factory.GetTemplate(entry, true), null)); }
public bool Applies(IAttributeEntry entry) { return entry.TileType.HasValue && TileType.File == entry.TileType; }
public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { return new TileAttribute(entry.Name, new StringTile(entry.Value)); }
public bool Applies(IAttributeEntry entry) { return !entry.TileType.HasValue; }
public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { return(new TileAttribute(entry.Name, new TileReference(entry.Value, factory.Map))); }
public bool Applies(IAttributeEntry entry) { return(entry.TileType.HasValue && TileType.Definition == entry.TileType); }
public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { return(new TileAttribute(entry.Name, new StringTile(entry.Value))); }
public bool Applies(IAttributeEntry entry) { return(entry.TileType.HasValue && TileType.String == entry.TileType); }
public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { return(new TileAttribute(entry.Name, new TemplateTile(null, factory.GetTemplate(entry, true), null))); }
public TileAttribute Create(IAttributeEntry entry, TilesFactory factory) { return new TileAttribute(entry.Name, new TileReference(entry.Value, factory.Map)); }
public bool Applies(IAttributeEntry entry) { return(!entry.TileType.HasValue); }