Exemplo n.º 1
0
 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)];
 }
Exemplo n.º 2
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)];
 }