Table of Contents

Class ConstantValue

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

Value provider that always returns a fixed constant value.

[Serializable]
public sealed class ConstantValue : IIntValueProvider
Inheritance
ConstantValue
Implements
Inherited Members

Fields

Amount

The fixed value to return.

[Tooltip("The fixed constant value.")]
public int Amount

Field Value

int

Methods

GetValue(ICharacter, EventData)

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

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