Example #1
0
 public override void Load()
 {
     InventoryItems = new List<InventoryItem>();
     InventoryItem temp;
     InvItems = Data["Inventory"];
     foreach (Tag comp in InvItems)
     {
         temp = new InventoryItem(comp, false);
         InventoryItems.Add(temp);
     }
     Score = Data["Score"];
     Dimension = Data["Dimension"];
     PlayerPos = new Position((double)X.Value, (double)Y.Value, (double)Z.Value);
     PlayerChunkPos = PlayerPos.ToChunkCoordinates();
 }
Example #2
0
 public override void Load()
 {
     Health = Data["Health"];
     Age = Data["Age"];
     Items = new InventoryItem(Data["Item"], false);
 }