Class InventorySetItemBroadcastSerializer
Wire format for InventorySetItemBroadcast.
public static class InventorySetItemBroadcastSerializer
- Inheritance
-
InventorySetItemBroadcastSerializer
- Inherited Members
Remarks
Hand written for two fields. TemplateID is a deterministic 32-bit hash
(CachedScriptableObject.AddToCache) and Seed is full entropy by construction,
so both span the whole range and FishNet's signed-packed form spends FIVE bytes on each
where unpacked spends exactly four. The login sync ships the ENTIRE inventory in one
InventorySetMultipleItemsBroadcast, so those two bytes are paid per occupied
slot on every login. InstanceID stays packed — it is a database sequence value and
small — as do the slot index and stack size. See ObservedBuffEntry.
Methods
ReadInventorySetItemBroadcast(Reader)
Reads an InventorySetItemBroadcast.
public static InventorySetItemBroadcast ReadInventorySetItemBroadcast(this Reader reader)
Parameters
readerReader
Returns
WriteInventorySetItemBroadcast(Writer, InventorySetItemBroadcast)
Writes an InventorySetItemBroadcast.
public static void WriteInventorySetItemBroadcast(this Writer writer, InventorySetItemBroadcast value)
Parameters
writerWritervalueInventorySetItemBroadcast