public void LoadTileSet(ContentManager contentManager)
 {
     TileSet = contentManager?.Load <TileSet>(TileSetPath);
     TileSet?.LoadTexture(contentManager);
 }
Esempio n. 2
0
 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));
 }