public static Item ClientToLocal(MiningGame.Code.Items.Item item) { return new Item() { Name = item.GetName(), ID = item.GetItemID(), BlockID = item.GetBlockID()}; }
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)}; }