public bool Check(int x, int y, TileType tileType) { if (tiles == null) { return(false); } stSrvMapBlock tile = tiles[x, y]; //if (tile == null) //{ //return false; //} return((tile.flags2 & (int)tileType) != 0); }
private bool CanWalk(stSrvMapBlock tile) { return(tile.flags2 != (byte)TileType.TileType_Walk_BLOCK); }