uint8 TerrainHolder::GetLiquidType(float x, float y) { TerrainTile* tile = GetTile(x, y); if (tile == NULL) return 0; uint8 rv = tile->m_map.GetLiquidType(x, y); tile->DecRef(); return rv; }
float TerrainHolder::GetLiquidHeight(float x, float y) { TerrainTile* tile = GetTile(x, y); if (tile == NULL) return TERRAIN_INVALID_HEIGHT; float rv = tile->m_map.GetLiquidHeight(x, y); tile->DecRef(); return rv; }
uint32 TerrainHolder::GetAreaFlag(float x, float y) { TerrainTile* tile = GetTile(x, y); if (tile == NULL) { // No generated map for this area (usually instances) return 0; } uint32 rv = tile->m_map.GetArea(x, y); tile->DecRef(); return rv; }