Table of Contents

Class InventorySetItemBroadcastSerializer

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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)

public static InventorySetItemBroadcast ReadInventorySetItemBroadcast(this Reader reader)

Parameters

reader Reader

Returns

InventorySetItemBroadcast

WriteInventorySetItemBroadcast(Writer, InventorySetItemBroadcast)

public static void WriteInventorySetItemBroadcast(this Writer writer, InventorySetItemBroadcast value)

Parameters

writer Writer
value InventorySetItemBroadcast