Table of Contents

Struct CharacterBuffsBroadcast

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Carries a character's publicly visible buffs to everyone observing it.

public struct CharacterBuffsBroadcast : IBroadcast
Implements
IBroadcast
Inherited Members

Remarks

The list is assembled server side — no buff is hidden from other players, so it is the server — so this is what observers are permitted to see rather than the character's real buff state. Remaining durations are sent in seconds because observers do not run the buff simulation and have no use for tick numbers.

Sent only when the visible set actually changes, which is what keeps it off the per-tick budget: a character holding steady buffs sends nothing.

Fields

Buffs

The buffs that changed, or the whole visible strip when IsFullSet.

public ObservedBuffEntry[] Buffs

Field Value

ObservedBuffEntry[]

CharacterObjectID

NetworkObject id of the character these buffs belong to.

public int CharacterObjectID

Field Value

int

IsFullSet

True when Buffs is the character's entire visible strip rather than the entries that changed.

public bool IsFullSet

Field Value

bool

Remarks

A receiver REPLACES its strip on a full set and MERGES on a delta. Unlike CharacterAttributesBroadcast — whose sheet is fixed at spawn, so an omission means "unchanged" — a buff strip gains and loses members constantly, which is why Removed has to exist alongside this flag rather than being implied by absence.

Removed

Template ids no longer visible on this character. Always empty when IsFullSet, which states the whole strip on its own.

public int[] Removed

Field Value

int[]