public PackedInt GetSizeOfData() { ulong result = 0; result += (ulong)Name.GetSize(); result += Stack.GetSizeOfData().Value; result += ItemParams.GetSizeOfData().Value; return(new PackedInt() { Value = result }); }
public PackedInt GetSizeOfData() { ulong result = 0; result += (ulong)Pixels.GetSize(); for (int i = 0; i < NUM_ITEM_BAGS; i++) { result += ItemBags[i].GetSizeOfData().Value; } result += CurrentItem.GetSizeOfData().Value; result += (ulong)PrimaryHandSlotBag.GetSize(); result += PrimaryHandSlot.GetSizeOfData().Value; result += (ulong)AltHandSlotBag.GetSize(); result += AltHandSlot.GetSizeOfData().Value; return(new PackedInt() { Value = result }); }