public void LoadTileSet(ContentManager contentManager) { TileSet = contentManager?.Load <TileSet>(TileSetPath); TileSet?.LoadTexture(contentManager); }
public void AddTileSet(int firstGid, TileSet tileSet) { _tileSetReferences.Add(new TileSetReference(firstGid, tileSet)); }
public TileSetReference(int firstGid, TileSet tileSet) { FirstGid = firstGid; TileSet = tileSet ?? throw new ArgumentNullException(nameof(tileSet)); }