Table of Contents

Class GameAction

Namespace
Nekoyume.Action
Assembly
Lib9c.dll
[Serializable]
public abstract class GameAction : ActionBase, IAction
Inheritance
GameAction
Implements
IAction
Derived
Inherited Members

Constructors

GameAction()

protected GameAction()

Properties

Id

public Guid Id { get; }

Property Value

Guid

PlainValue

Serializes values bound to an action, which is held by properties (or fields) of an action, so that they can be transmitted over network or saved to persistent storage.

Serialized values are deserialized by Libplanet.Action.IAction.LoadPlainValue(Bencodex.Types.IValue) method later.

public override sealed IValue PlainValue { get; }

Property Value

IValue

A Bencodex value which encodes this action's bound values (held by properties or fields).

See Also
LoadPlainValue(IValue)

PlainValueInternal

protected abstract IImmutableDictionary<string, IValue> PlainValueInternal { get; }

Property Value

IImmutableDictionary<string, IValue>

Methods

LoadPlainValue(IValue)

Deserializes serialized data (i.e., data Libplanet.Action.IAction.PlainValue property made), and then fills this action's properties (or fields) with the deserialized values.

public override sealed void LoadPlainValue(IValue plainValue)

Parameters

plainValue IValue

Data (made by Libplanet.Action.IAction.PlainValue property) to be deserialized and assigned to this action's properties (or fields).

See Also
PlainValue

LoadPlainValueInternal(IImmutableDictionary<string, IValue>)

protected abstract void LoadPlainValueInternal(IImmutableDictionary<string, IValue> plainValue)

Parameters

plainValue IImmutableDictionary<string, IValue>