Table of Contents

Interface ICharacterBehaviour

Namespace
FishMMO.Shared.Core
Assembly
FishMMO.Shared.dll

Interface for character behaviour components that can be registered to a character. Defines lifecycle methods for initialization and client state changes.

public interface ICharacterBehaviour

Properties

Character

The character this behaviour is attached to.

ICharacter Character { get; }

Property Value

ICharacter

Initialized

True if this behaviour has been initialized for its character.

bool Initialized { get; }

Property Value

bool

Methods

InitializeOnce(ICharacter)

Initializes the behaviour with the specified character. Called once per behaviour instance.

void InitializeOnce(ICharacter character)

Parameters

character ICharacter

The character to initialize for.

OnStartCharacter()

Called when the character starts on the client. Use for local client initialization.

void OnStartCharacter()

OnStopCharacter()

Called when the character stops on the client. Use for local client cleanup.

void OnStopCharacter()