Ejemplo n.º 1
0
 public static Item ClientToLocal(MiningGame.Code.Items.Item item)
 {
     return new Item() { Name = item.GetName(), ID = item.GetItemID(), BlockID = item.GetBlockID()};
 }
Ejemplo n.º 2
0
 public static Block ClientToLocal(MiningGame.Code.Blocks.Block block)
 {
     return new Block{ Name = block.GetBlockName(), ID = block.GetBlockID(), ItemDrop = block.GetItemDrop(0, 0), ItemDropNum = block.GetItemDropNum(0, 0)};
 }