Table of Contents

Interface IIntValueProvider

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

Interface for polymorphic integer value providers used by ECA actions. Implementations are serialized inline via [SerializeReference] with [SubclassSelector] for Inspector support. Allows actions to derive their integer values from constants, random ranges, character stats, or other sources.

public interface IIntValueProvider

Methods

GetValue(ICharacter, EventData)

Computes and returns the integer value for the current execution context.

int GetValue(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character initiating the action (used for stat lookups, etc.).

eventData EventData

The event data for the current execution (used for RNG, target info, etc.).

Returns

int

The computed integer value.