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