Table of Contents

Class GiveItemAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA action that gives an item to a character's inventory. Server-only execution.

[Serializable]
public class GiveItemAction : BaseAction, IAction
Inheritance
GiveItemAction
Implements
Inherited Members

Fields

Amount

The amount to give.

[Tooltip("The number of items to give.")]
[Min(1)]
public int Amount

Field Value

int

ItemTemplate

The item template to give.

[Tooltip("The item template to give to the character.")]
public BaseItemTemplate ItemTemplate

Field Value

BaseItemTemplate

Methods

Execute(ICharacter, EventData)

Executes the action. Must be implemented by derived classes.

public override void Execute(ICharacter initiator, EventData eventData)

Parameters

initiator ICharacter

The character initiating the action.

eventData EventData

Event data for the action.