Table of Contents

Class AbilityModifierContext

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

One evaluation of an ability's modifiers: the ability, its caster, and the input tick, plus a cache so rules of one kind can share what they look up (the weather rules take one sample between them).

public sealed class AbilityModifierContext
Inheritance
AbilityModifierContext
Inherited Members

Properties

Ability

The ability being cast.

public Ability Ability { get; }

Property Value

Ability

Behaviour

The behaviour running the replicate, for tick resolution.

public NetworkBehaviour Behaviour { get; }

Property Value

NetworkBehaviour

Character

The caster.

public ICharacter Character { get; }

Property Value

ICharacter

InputTick

The replicate's input tick.

public uint InputTick { get; }

Property Value

uint

Methods

Set<T>(T)

Caches a value for the rest of this evaluation.

public void Set<T>(T value)

Parameters

value T

Type Parameters

T

TryGet<T>(out T)

A value a rule cached for this evaluation, keyed by its type.

public bool TryGet<T>(out T value)

Parameters

value T

Returns

bool

Type Parameters

T