public void setBlockID(int blockValue) { m_terrain.ChangeCell((int)location.X, (int)location.Y, (int)location.Z, blockValue, false); m_block = Game.BlocksManager.Blocks[Game.TerrainData.ReplaceLight(blockValue, 0)]; }
public Block(int blockValue, Engine.Vector3 location, Game.SubsystemTerrain terrain) { m_location = location; m_terrain = terrain; m_block = Game.BlocksManager.Blocks[Game.TerrainData.ReplaceLight(blockValue, 0)]; }