Class World
An internal implementation of IWorld.
Inherited Members
System.Object.GetType()
System.Object.ToString()
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
[Pure]
public class World : IWorld, IWorldState
Constructors
| Improve this Doc View SourceWorld(IWorldState, IWorldDelta)
An internal implementation of IWorld.
Declaration
public World(IWorldState baseState, IWorldDelta delta)
Parameters
Type | Name | Description |
---|---|---|
IWorldState | baseState | |
IWorldDelta | delta |
World(IWorldState)
An internal implementation of IWorld.
Declaration
public World(IWorldState baseState)
Parameters
Type | Name | Description |
---|---|---|
IWorldState | baseState |
Properties
| Improve this Doc View SourceDelta
Declaration
public IWorldDelta Delta { get; }
Property Value
Type | Description |
---|---|
IWorldDelta |
Legacy
An internal implementation of IWorld.
Declaration
[Pure]
public bool Legacy { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Trie
The ITrie of the IWorldState.
Declaration
[Pure]
public ITrie Trie { get; }
Property Value
Type | Description |
---|---|
ITrie |
Methods
| Improve this Doc View SourceGetAccount(Address)
Gets the IAccount of the given address
.
Declaration
[Pure]
public IAccount GetAccount(Address address)
Parameters
Type | Name | Description |
---|---|---|
Address | address | The Address referring the world to get its state. |
Returns
Type | Description |
---|---|
IAccount | The IAccount of the given |
GetAccountState(Address)
Gets the IAccountState of the given address
.
Declaration
[Pure]
public IAccountState GetAccountState(Address address)
Parameters
Type | Name | Description |
---|---|---|
Address | address | The Address referring the world to get its state. |
Returns
Type | Description |
---|---|
IAccountState | The IAccountState of the given |
SetAccount(Address, IAccount)
An internal implementation of IWorld.
Declaration
[Pure]
public IWorld SetAccount(Address address, IAccount account)
Parameters
Type | Name | Description |
---|---|---|
Address | address | |
IAccount | account |
Returns
Type | Description |
---|---|
IWorld |