Table of Contents

Class RemoveItemAction

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

ECA action that removes items from a character's inventory by template. Server-only execution.

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

Fields

Amount

The amount to remove.

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

Field Value

int

ItemTemplate

The item template to remove.

[Tooltip("The item template to remove from 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.