Class WorldDelta
Inheritance
System.Object
WorldDelta
Implements
Namespace: Libplanet.Action.State
Assembly: Libplanet.Action.dll
Syntax
public class WorldDelta : object, IWorldDelta
Constructors
| Improve this Doc View SourceWorldDelta()
Declaration
public WorldDelta()
Properties
| Improve this Doc View SourceAccounts
A dictionary representing changed account states for each Address. This lasts till new empty delta instance has been made.
Declaration
public IImmutableDictionary<Address, IAccount> Accounts { get; }
Property Value
Type | Description |
---|---|
IImmutableDictionary<Address, IAccount> |
Methods
| Improve this Doc View SourceSetAccount(Address, IAccount)
Set account on both of Accounts and address
, update with new account
.
Declaration
public IWorldDelta SetAccount(Address address, IAccount account)
Parameters
Type | Name | Description |
---|---|---|
Address | address | Address to set on. |
IAccount | account | IAccount to set. |
Returns
Type | Description |
---|---|
IWorldDelta | New IWorldDelta that account is properly set. |