Table of Contents

Class RandomRangeFloatValue

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Float value provider that returns a random float between Min and Max (inclusive). Uses the deterministic DeterministicRNG from RNG when available, otherwise falls back to Shared.

[Serializable]
public sealed class RandomRangeFloatValue : IFloatValueProvider
Inheritance
RandomRangeFloatValue
Implements
Inherited Members

Fields

Max

The maximum value (inclusive).

[Tooltip("The maximum value (inclusive).")]
public float Max

Field Value

float

Min

The minimum value (inclusive).

[Tooltip("The minimum value (inclusive).")]
public float Min

Field Value

float

Methods

GetValue(ICharacter, EventData)

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

public 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.