Table of Contents

Class BuffTooltip

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Adds the live state of one buff instance to a tooltip the template has already described.

public static class BuffTooltip
Inheritance
BuffTooltip
Inherited Members

Remarks

BuildTooltip(TooltipContent) can only state what every instance shares — the duration it was authored with, its tick cadence, its stack ceiling. The numbers a player actually wants while a buff is running are per-instance: how long this application has left, how many times it has stacked, how much of a spent pool remains. Only the peer holding the instance has them, and only the owner's own strip has an instance at all — the target and party frames hover somebody else's buff and call the template's tooltip alone.

Kept out of Buff deliberately: that class is simulated state, replicated and reconciled on both peers, and nothing in it should know a tooltip exists.

Methods

AppendLiveState(TooltipContent, Buff, uint)

Appends this instance's remaining time, stacks and charges, omitting whatever the buff does not have.

public static void AppendLiveState(TooltipContent content, Buff buff, uint currentTick)

Parameters

content TooltipContent

The content to append to. A template's rows are already in it.

buff Buff

The instance being hovered, or null for nothing to report.

currentTick uint

The tick to measure remaining time against.