private void SetObject(int x, int y, ObjectTileType obj)
 {
     var ground = GetTile(x, y).Object = obj;
 }
 private void SetTile(int x, int y, GroundTileType type, ObjectTileType obj)
 {
     if (x >= 0 && y >= 0 && x < _width && y < _height)
     {
         int X = x / SUB_WIDTH;
         int Y = y / SUB_HEIGHT;
         _subworlds[X, Y].WorldTiles[x - X * SUB_WIDTH, y - Y * SUB_HEIGHT] = new WorldTile(type, obj);
     }
 }
 public WorldTile(GroundTileType ground, ObjectTileType obj)
 {
     Ground = ground;
     Object = obj;
 }