Table of Contents

Interface IFloatValueProvider

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

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

public interface IFloatValueProvider

Methods

GetValue(ICharacter, EventData)

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

float 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

float

The computed float value.