Show / Hide Table of Contents

Class World

An internal implementation of IWorld.

Inheritance
System.Object
World
Implements
IWorld
IWorldState
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
public class World : object, IWorld, IWorldState

Constructors

| Improve this Doc View Source

World(IWorldState)

An internal implementation of IWorld.

Declaration
public World(IWorldState baseState)
Parameters
Type Name Description
IWorldState baseState

Properties

| Improve this Doc View Source

Delta

The IWorld representing the delta part of this IWorld.

Declaration
public IWorldDelta Delta { get; }
Property Value
Type Description
IWorldDelta
| Improve this Doc View Source

Legacy

An internal implementation of IWorld.

Declaration
public bool Legacy { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Trie

The ITrie of the IWorldState.

Declaration
public ITrie Trie { get; }
Property Value
Type Description
ITrie
| Improve this Doc View Source

Version

An internal implementation of IWorld.

Declaration
public int Version { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

GetAccount(Address)

Gets the IAccount of the given address.

Declaration
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 address. If it has never been set to any state it returns null instead.

| Improve this Doc View Source

GetAccountState(Address)

Gets the IAccountState of the given address.

Declaration
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 address. If it has never been set to any state it returns null instead.

| Improve this Doc View Source

SetAccount(Address, IAccount)

An internal implementation of IWorld.

Declaration
public IWorld SetAccount(Address address, IAccount account)
Parameters
Type Name Description
Address address
IAccount account
Returns
Type Description
IWorld

Implements

IWorld
IWorldState
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium