public static void AddTileSet(TileSet tileset) { TileList.Add(tileset); // Add the tileset to the Guid lookup GuidLookup.AddOrOverwrite(tileset.Guid, tileset); // Add the tileset to the Name lookup NameLookup.AddOrOverwrite(tileset.Name, tileset); // Add the tileset to the Path lookup if (tileset.MyPath.Length > 0) { PathLookup.AddOrOverwrite(tileset.MyPath, tileset); } }
public static void AddTemplate(BackgroundTemplate template) { NameLookup.AddOrOverwrite(template.Name, template); PathLookup.AddOrOverwrite(template.File, template); }