Table of Contents

Interface IHotkeySystem

Namespace
FishMMO.Server.Core.World.SceneServer
Assembly
FishMMO.Server.dll

Engine-agnostic public API for hotkey handling on scene servers. Implementations should process hotkey set requests coming from clients and update the player's hotkey state accordingly. Connection and channel types are intentionally typed as object to avoid tying this contract to a specific networking library.

public interface IHotkeySystem : IServerBehaviour, IServerComponent

Methods

ForgetAbilityBindings(IPlayerCharacter, long)

Clears every ability binding that names abilityID.

bool ForgetAbilityBindings(IPlayerCharacter playerCharacter, long abilityID)

Parameters

playerCharacter IPlayerCharacter

The character whose bar is corrected.

abilityID long

The forgotten ability's instance ID.

Returns

bool

True when at least one binding was cleared.

Remarks

Called when an ability is forgotten. Without it the bar keeps naming an id nothing resolves any more, and nothing revalidates in between: bindings are checked when they are MADE and once at login, so the dead slot survives until the character relogs — and the client can only hide it locally, leaving the server's bar and the database row still naming it.

Staging the write and echoing the whole bar happen here rather than at the call site, so the correction reaches the database and the client in the same session. There is no hotkey-removal message and none is needed — a clear is an ordinary HotkeySetBroadcast carrying Type = 0 and ReferenceID = HotkeyData.UnsetReferenceID.