attachTile() protected method

protected attachTile ( Tile tile, int fromDir ) : void
tile Tile
fromDir int
return void
Esempio n. 1
0
 public Tile AttachToTile(Tile tile, int fromDir)
 {
     tile.attachTile(this, fromDir);
     neighbours[(fromDir + 2) % 4] = tile;
     blocks[(fromDir + 2) % 4]     = tile.GetBlock(fromDir);
     return(this);
 }
Esempio n. 2
0
 public Tile AttachToTile(Tile tile, int fromDir)
 {
     tile.attachTile(this, fromDir);
     neighbours[(fromDir + 2) % 4] = tile;
     blocks[(fromDir + 2) % 4] = tile.GetBlock(fromDir);
     return this;
 }