# world

import "command-line-arguments"

# Index

  • Variables
  • func GetWorldABI() (contractAbi abi.ABI)
  • type World
    • func NewWorld(address common.Address, backend bind.ContractBackend) (*World, error)
  • type WorldCaller
    • func NewWorldCaller(address common.Address, caller bind.ContractCaller) (*WorldCaller, error)
    • func (_World *WorldCaller) GetComponent(opts *bind.CallOpts, id *big.Int) (common.Address, error)
    • func (_World *WorldCaller) GetComponentIdFromAddress(opts *bind.CallOpts, componentAddr common.Address) (*big.Int, error)
    • func (_World *WorldCaller) GetNumEntities(opts *bind.CallOpts) (*big.Int, error)
    • func (_World *WorldCaller) HasEntity(opts *bind.CallOpts, entity *big.Int) (bool, error)
  • type WorldCallerRaw
    • func (_World *WorldCallerRaw) Call(opts *bind.CallOpts, result *[]interface, method string, params ...interface) error
  • type WorldCallerSession
    • func (_World *WorldCallerSession) GetComponent(id *big.Int) (common.Address, error)
    • func (_World *WorldCallerSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)
    • func (_World *WorldCallerSession) GetNumEntities() (*big.Int, error)
    • func (_World *WorldCallerSession) HasEntity(entity *big.Int) (bool, error)
  • type WorldComponentRegistered
  • type WorldComponentRegisteredIterator
    • func (it *WorldComponentRegisteredIterator) Close() error
    • func (it *WorldComponentRegisteredIterator) Error() error
    • func (it *WorldComponentRegisteredIterator) Next() bool
  • type WorldComponentValueRemoved
  • type WorldComponentValueRemovedIterator
    • func (it *WorldComponentValueRemovedIterator) Close() error
    • func (it *WorldComponentValueRemovedIterator) Error() error
    • func (it *WorldComponentValueRemovedIterator) Next() bool
  • type WorldComponentValueSet
  • type WorldComponentValueSetIterator
    • func (it *WorldComponentValueSetIterator) Close() error
    • func (it *WorldComponentValueSetIterator) Error() error
    • func (it *WorldComponentValueSetIterator) Next() bool
  • type WorldFilterer
    • func NewWorldFilterer(address common.Address, filterer bind.ContractFilterer) (*WorldFilterer, error)
    • func (_World *WorldFilterer) FilterComponentRegistered(opts *bind.FilterOpts, componentId []*big.Int) (*WorldComponentRegisteredIterator, error)
    • func (_World *WorldFilterer) FilterComponentValueRemoved(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueRemovedIterator, error)
    • func (_World *WorldFilterer) FilterComponentValueSet(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueSetIterator, error)
    • func (_World *WorldFilterer) ParseComponentRegistered(log types.Log) (*WorldComponentRegistered, error)
    • func (_World *WorldFilterer) ParseComponentValueRemoved(log types.Log) (*WorldComponentValueRemoved, error)
    • func (_World *WorldFilterer) ParseComponentValueSet(log types.Log) (*WorldComponentValueSet, error)
    • func (_World *WorldFilterer) WatchComponentRegistered(opts *bind.WatchOpts, sink chan<- *WorldComponentRegistered, componentId []*big.Int) (event.Subscription, error)
    • func (_World *WorldFilterer) WatchComponentValueRemoved(opts *bind.WatchOpts, sink chan<- *WorldComponentValueRemoved, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)
    • func (_World *WorldFilterer) WatchComponentValueSet(opts *bind.WatchOpts, sink chan<- *WorldComponentValueSet, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)
  • type WorldRaw
    • func (_World *WorldRaw) Call(opts *bind.CallOpts, result *[]interface, method string, params ...interface) error
    • func (_World *WorldRaw) Transact(opts *bind.TransactOpts, method string, params ...interface) (*types.Transaction, error)
    • func (_World *WorldRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
  • type WorldSession
    • func (_World *WorldSession) GetComponent(id *big.Int) (common.Address, error)
    • func (_World *WorldSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)
    • func (_World *WorldSession) GetNumEntities() (*big.Int, error)
    • func (_World *WorldSession) HasEntity(entity *big.Int) (bool, error)
    • func (_World *WorldSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)
    • func (_World *WorldSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)
    • func (_World *WorldSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
  • type WorldTransactor
    • func NewWorldTransactor(address common.Address, transactor bind.ContractTransactor) (*WorldTransactor, error)
    • func (_World *WorldTransactor) RegisterComponent(opts *bind.TransactOpts, componentAddr common.Address, id *big.Int) (*types.Transaction, error)
    • func (_World *WorldTransactor) RegisterComponentValueRemoved(opts *bind.TransactOpts, component common.Address, entity *big.Int) (*types.Transaction, error)
    • func (_World *WorldTransactor) RegisterComponentValueSet(opts *bind.TransactOpts, component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)
  • type WorldTransactorRaw
    • func (_World *WorldTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface) (*types.Transaction, error)
    • func (_World *WorldTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
  • type WorldTransactorSession
    • func (_World *WorldTransactorSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)
    • func (_World *WorldTransactorSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)
    • func (_World *WorldTransactorSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)

# Variables

WorldABI is the input ABI used to generate the binding from. Deprecated: Use WorldMetaData.ABI instead.

var WorldABI = WorldMetaData.ABI

WorldMetaData contains all meta data concerning the World contract.

var WorldMetaData = &bind.MetaData{
    ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"componentId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"}],\"name\":\"ComponentRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"componentId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"}],\"name\":\"ComponentValueRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"componentId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"ComponentValueSet\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"getComponent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"componentAddr\",\"type\":\"address\"}],\"name\":\"getComponentIdFromAddress\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getNumEntities\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"}],\"name\":\"hasEntity\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"componentAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"registerComponent\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"}],\"name\":\"registerComponentValueRemoved\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"component\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"entity\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"registerComponentValueSet\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

# func GetWorldABI

func GetWorldABI() (contractAbi abi.ABI)

# type World

World is an auto generated Go binding around an Ethereum contract.

type World struct {
    WorldCaller     // Read-only binding to the contract
    WorldTransactor // Write-only binding to the contract
    WorldFilterer   // Log filterer for contract events
}

# func NewWorld

func NewWorld(address common.Address, backend bind.ContractBackend) (*World, error)

NewWorld creates a new instance of World, bound to a specific deployed contract.

# type WorldCaller

WorldCaller is an auto generated read-only Go binding around an Ethereum contract.

type WorldCaller struct {
    // contains filtered or unexported fields
}

# func NewWorldCaller

func NewWorldCaller(address common.Address, caller bind.ContractCaller) (*WorldCaller, error)

NewWorldCaller creates a new read-only instance of World, bound to a specific deployed contract.

# func (*WorldCaller) GetComponent

func (_World *WorldCaller) GetComponent(opts *bind.CallOpts, id *big.Int) (common.Address, error)

GetComponent is a free data retrieval call binding the contract method 0x4f27da18.

Solidity: function getComponent(uint256 id) view returns(address)

# func (*WorldCaller) GetComponentIdFromAddress

func (_World *WorldCaller) GetComponentIdFromAddress(opts *bind.CallOpts, componentAddr common.Address) (*big.Int, error)

GetComponentIdFromAddress is a free data retrieval call binding the contract method 0x9f54f545.

Solidity: function getComponentIdFromAddress(address componentAddr) view returns(uint256)

# func (*WorldCaller) GetNumEntities

func (_World *WorldCaller) GetNumEntities(opts *bind.CallOpts) (*big.Int, error)

GetNumEntities is a free data retrieval call binding the contract method 0xd7ecf62b.

Solidity: function getNumEntities() view returns(uint256)

# func (*WorldCaller) HasEntity

func (_World *WorldCaller) HasEntity(opts *bind.CallOpts, entity *big.Int) (bool, error)

HasEntity is a free data retrieval call binding the contract method 0xe3d12875.

Solidity: function hasEntity(uint256 entity) view returns(bool)

# type WorldCallerRaw

WorldCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

type WorldCallerRaw struct {
    Contract *WorldCaller // Generic read-only contract binding to access the raw methods on
}

# func (*WorldCallerRaw) Call

func (_World *WorldCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

# type WorldCallerSession

WorldCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

type WorldCallerSession struct {
    Contract *WorldCaller  // Generic contract caller binding to set the session for
    CallOpts bind.CallOpts // Call options to use throughout this session
}

# func (*WorldCallerSession) GetComponent

func (_World *WorldCallerSession) GetComponent(id *big.Int) (common.Address, error)

GetComponent is a free data retrieval call binding the contract method 0x4f27da18.

Solidity: function getComponent(uint256 id) view returns(address)

# func (*WorldCallerSession) GetComponentIdFromAddress

func (_World *WorldCallerSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)

GetComponentIdFromAddress is a free data retrieval call binding the contract method 0x9f54f545.

Solidity: function getComponentIdFromAddress(address componentAddr) view returns(uint256)

# func (*WorldCallerSession) GetNumEntities

func (_World *WorldCallerSession) GetNumEntities() (*big.Int, error)

GetNumEntities is a free data retrieval call binding the contract method 0xd7ecf62b.

Solidity: function getNumEntities() view returns(uint256)

# func (*WorldCallerSession) HasEntity

func (_World *WorldCallerSession) HasEntity(entity *big.Int) (bool, error)

HasEntity is a free data retrieval call binding the contract method 0xe3d12875.

Solidity: function hasEntity(uint256 entity) view returns(bool)

# type WorldComponentRegistered

WorldComponentRegistered represents a ComponentRegistered event raised by the World contract.

type WorldComponentRegistered struct {
    ComponentId *big.Int
    Component   common.Address
    Raw         types.Log // Blockchain specific contextual infos
}

# type WorldComponentRegisteredIterator

WorldComponentRegisteredIterator is returned from FilterComponentRegistered and is used to iterate over the raw logs and unpacked data for ComponentRegistered events raised by the World contract.

type WorldComponentRegisteredIterator struct {
    Event *WorldComponentRegistered // Event containing the contract specifics and raw log
    // contains filtered or unexported fields
}

# func (*WorldComponentRegisteredIterator) Close

func (it *WorldComponentRegisteredIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

# func (*WorldComponentRegisteredIterator) Error

func (it *WorldComponentRegisteredIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

# func (*WorldComponentRegisteredIterator) Next

func (it *WorldComponentRegisteredIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

# type WorldComponentValueRemoved

WorldComponentValueRemoved represents a ComponentValueRemoved event raised by the World contract.

type WorldComponentValueRemoved struct {
    ComponentId *big.Int
    Component   common.Address
    Entity      *big.Int
    Raw         types.Log // Blockchain specific contextual infos
}

# type WorldComponentValueRemovedIterator

WorldComponentValueRemovedIterator is returned from FilterComponentValueRemoved and is used to iterate over the raw logs and unpacked data for ComponentValueRemoved events raised by the World contract.

type WorldComponentValueRemovedIterator struct {
    Event *WorldComponentValueRemoved // Event containing the contract specifics and raw log
    // contains filtered or unexported fields
}

# func (*WorldComponentValueRemovedIterator) Close

func (it *WorldComponentValueRemovedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

# func (*WorldComponentValueRemovedIterator) Error

func (it *WorldComponentValueRemovedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

# func (*WorldComponentValueRemovedIterator) Next

func (it *WorldComponentValueRemovedIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

# type WorldComponentValueSet

WorldComponentValueSet represents a ComponentValueSet event raised by the World contract.

type WorldComponentValueSet struct {
    ComponentId *big.Int
    Component   common.Address
    Entity      *big.Int
    Data        []byte
    Raw         types.Log // Blockchain specific contextual infos
}

# type WorldComponentValueSetIterator

WorldComponentValueSetIterator is returned from FilterComponentValueSet and is used to iterate over the raw logs and unpacked data for ComponentValueSet events raised by the World contract.

type WorldComponentValueSetIterator struct {
    Event *WorldComponentValueSet // Event containing the contract specifics and raw log
    // contains filtered or unexported fields
}

# func (*WorldComponentValueSetIterator) Close

func (it *WorldComponentValueSetIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

# func (*WorldComponentValueSetIterator) Error

func (it *WorldComponentValueSetIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

# func (*WorldComponentValueSetIterator) Next

func (it *WorldComponentValueSetIterator) Next() bool

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

# type WorldFilterer

WorldFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

type WorldFilterer struct {
    // contains filtered or unexported fields
}

# func NewWorldFilterer

func NewWorldFilterer(address common.Address, filterer bind.ContractFilterer) (*WorldFilterer, error)

NewWorldFilterer creates a new log filterer instance of World, bound to a specific deployed contract.

# func (*WorldFilterer) FilterComponentRegistered

func (_World *WorldFilterer) FilterComponentRegistered(opts *bind.FilterOpts, componentId []*big.Int) (*WorldComponentRegisteredIterator, error)

FilterComponentRegistered is a free log retrieval operation binding the contract event 0xe065b93b78fd9ec871610269cc875e4f300f3cf0ed219355a75c09ffdc72c185.

Solidity: event ComponentRegistered(uint256 indexed componentId, address component)

# func (*WorldFilterer) FilterComponentValueRemoved

func (_World *WorldFilterer) FilterComponentValueRemoved(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueRemovedIterator, error)

FilterComponentValueRemoved is a free log retrieval operation binding the contract event 0x6dd56823030ae6d8ae09cbfb8972c4e9494e67b209c4ab6300c21d73e269b350.

Solidity: event ComponentValueRemoved(uint256 indexed componentId, address indexed component, uint256 indexed entity)

# func (*WorldFilterer) FilterComponentValueSet

func (_World *WorldFilterer) FilterComponentValueSet(opts *bind.FilterOpts, componentId []*big.Int, component []common.Address, entity []*big.Int) (*WorldComponentValueSetIterator, error)

FilterComponentValueSet is a free log retrieval operation binding the contract event 0x6ac31c38682e0128240cf68316d7ae751020d8f74c614e2a30278afcec8a6073.

Solidity: event ComponentValueSet(uint256 indexed componentId, address indexed component, uint256 indexed entity, bytes data)

# func (*WorldFilterer) ParseComponentRegistered

func (_World *WorldFilterer) ParseComponentRegistered(log types.Log) (*WorldComponentRegistered, error)

ParseComponentRegistered is a log parse operation binding the contract event 0xe065b93b78fd9ec871610269cc875e4f300f3cf0ed219355a75c09ffdc72c185.

Solidity: event ComponentRegistered(uint256 indexed componentId, address component)

# func (*WorldFilterer) ParseComponentValueRemoved

func (_World *WorldFilterer) ParseComponentValueRemoved(log types.Log) (*WorldComponentValueRemoved, error)

ParseComponentValueRemoved is a log parse operation binding the contract event 0x6dd56823030ae6d8ae09cbfb8972c4e9494e67b209c4ab6300c21d73e269b350.

Solidity: event ComponentValueRemoved(uint256 indexed componentId, address indexed component, uint256 indexed entity)

# func (*WorldFilterer) ParseComponentValueSet

func (_World *WorldFilterer) ParseComponentValueSet(log types.Log) (*WorldComponentValueSet, error)

ParseComponentValueSet is a log parse operation binding the contract event 0x6ac31c38682e0128240cf68316d7ae751020d8f74c614e2a30278afcec8a6073.

Solidity: event ComponentValueSet(uint256 indexed componentId, address indexed component, uint256 indexed entity, bytes data)

# func (*WorldFilterer) WatchComponentRegistered

func (_World *WorldFilterer) WatchComponentRegistered(opts *bind.WatchOpts, sink chan<- *WorldComponentRegistered, componentId []*big.Int) (event.Subscription, error)

WatchComponentRegistered is a free log subscription operation binding the contract event 0xe065b93b78fd9ec871610269cc875e4f300f3cf0ed219355a75c09ffdc72c185.

Solidity: event ComponentRegistered(uint256 indexed componentId, address component)

# func (*WorldFilterer) WatchComponentValueRemoved

func (_World *WorldFilterer) WatchComponentValueRemoved(opts *bind.WatchOpts, sink chan<- *WorldComponentValueRemoved, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)

WatchComponentValueRemoved is a free log subscription operation binding the contract event 0x6dd56823030ae6d8ae09cbfb8972c4e9494e67b209c4ab6300c21d73e269b350.

Solidity: event ComponentValueRemoved(uint256 indexed componentId, address indexed component, uint256 indexed entity)

# func (*WorldFilterer) WatchComponentValueSet

func (_World *WorldFilterer) WatchComponentValueSet(opts *bind.WatchOpts, sink chan<- *WorldComponentValueSet, componentId []*big.Int, component []common.Address, entity []*big.Int) (event.Subscription, error)

WatchComponentValueSet is a free log subscription operation binding the contract event 0x6ac31c38682e0128240cf68316d7ae751020d8f74c614e2a30278afcec8a6073.

Solidity: event ComponentValueSet(uint256 indexed componentId, address indexed component, uint256 indexed entity, bytes data)

# type WorldRaw

WorldRaw is an auto generated low-level Go binding around an Ethereum contract.

type WorldRaw struct {
    Contract *World // Generic contract binding to access the raw methods on
}

# func (*WorldRaw) Call

func (_World *WorldRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

# func (*WorldRaw) Transact

func (_World *WorldRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

# func (*WorldRaw) Transfer

func (_World *WorldRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

# type WorldSession

WorldSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

type WorldSession struct {
    Contract     *World            // Generic contract binding to set the session for
    CallOpts     bind.CallOpts     // Call options to use throughout this session
    TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

# func (*WorldSession) GetComponent

func (_World *WorldSession) GetComponent(id *big.Int) (common.Address, error)

GetComponent is a free data retrieval call binding the contract method 0x4f27da18.

Solidity: function getComponent(uint256 id) view returns(address)

# func (*WorldSession) GetComponentIdFromAddress

func (_World *WorldSession) GetComponentIdFromAddress(componentAddr common.Address) (*big.Int, error)

GetComponentIdFromAddress is a free data retrieval call binding the contract method 0x9f54f545.

Solidity: function getComponentIdFromAddress(address componentAddr) view returns(uint256)

# func (*WorldSession) GetNumEntities

func (_World *WorldSession) GetNumEntities() (*big.Int, error)

GetNumEntities is a free data retrieval call binding the contract method 0xd7ecf62b.

Solidity: function getNumEntities() view returns(uint256)

# func (*WorldSession) HasEntity

func (_World *WorldSession) HasEntity(entity *big.Int) (bool, error)

HasEntity is a free data retrieval call binding the contract method 0xe3d12875.

Solidity: function hasEntity(uint256 entity) view returns(bool)

# func (*WorldSession) RegisterComponent

func (_World *WorldSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)

RegisterComponent is a paid mutator transaction binding the contract method 0xf3034770.

Solidity: function registerComponent(address componentAddr, uint256 id) returns()

# func (*WorldSession) RegisterComponentValueRemoved

func (_World *WorldSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)

RegisterComponentValueRemoved is a paid mutator transaction binding the contract method 0xd803064a.

Solidity: function registerComponentValueRemoved(address component, uint256 entity) returns()

# func (*WorldSession) RegisterComponentValueSet

func (_World *WorldSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)

RegisterComponentValueSet is a paid mutator transaction binding the contract method 0xaf104e40.

Solidity: function registerComponentValueSet(address component, uint256 entity, bytes data) returns()

# type WorldTransactor

WorldTransactor is an auto generated write-only Go binding around an Ethereum contract.

type WorldTransactor struct {
    // contains filtered or unexported fields
}

# func NewWorldTransactor

func NewWorldTransactor(address common.Address, transactor bind.ContractTransactor) (*WorldTransactor, error)

NewWorldTransactor creates a new write-only instance of World, bound to a specific deployed contract.

# func (*WorldTransactor) RegisterComponent

func (_World *WorldTransactor) RegisterComponent(opts *bind.TransactOpts, componentAddr common.Address, id *big.Int) (*types.Transaction, error)

RegisterComponent is a paid mutator transaction binding the contract method 0xf3034770.

Solidity: function registerComponent(address componentAddr, uint256 id) returns()

# func (*WorldTransactor) RegisterComponentValueRemoved

func (_World *WorldTransactor) RegisterComponentValueRemoved(opts *bind.TransactOpts, component common.Address, entity *big.Int) (*types.Transaction, error)

RegisterComponentValueRemoved is a paid mutator transaction binding the contract method 0xd803064a.

Solidity: function registerComponentValueRemoved(address component, uint256 entity) returns()

# func (*WorldTransactor) RegisterComponentValueSet

func (_World *WorldTransactor) RegisterComponentValueSet(opts *bind.TransactOpts, component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)

RegisterComponentValueSet is a paid mutator transaction binding the contract method 0xaf104e40.

Solidity: function registerComponentValueSet(address component, uint256 entity, bytes data) returns()

# type WorldTransactorRaw

WorldTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

type WorldTransactorRaw struct {
    Contract *WorldTransactor // Generic write-only contract binding to access the raw methods on
}

# func (*WorldTransactorRaw) Transact

func (_World *WorldTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

# func (*WorldTransactorRaw) Transfer

func (_World *WorldTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

# type WorldTransactorSession

WorldTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

type WorldTransactorSession struct {
    Contract     *WorldTransactor  // Generic contract transactor binding to set the session for
    TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

# func (*WorldTransactorSession) RegisterComponent

func (_World *WorldTransactorSession) RegisterComponent(componentAddr common.Address, id *big.Int) (*types.Transaction, error)

RegisterComponent is a paid mutator transaction binding the contract method 0xf3034770.

Solidity: function registerComponent(address componentAddr, uint256 id) returns()

# func (*WorldTransactorSession) RegisterComponentValueRemoved

func (_World *WorldTransactorSession) RegisterComponentValueRemoved(component common.Address, entity *big.Int) (*types.Transaction, error)

RegisterComponentValueRemoved is a paid mutator transaction binding the contract method 0xd803064a.

Solidity: function registerComponentValueRemoved(address component, uint256 entity) returns()

# func (*WorldTransactorSession) RegisterComponentValueSet

func (_World *WorldTransactorSession) RegisterComponentValueSet(component common.Address, entity *big.Int, data []byte) (*types.Transaction, error)

RegisterComponentValueSet is a paid mutator transaction binding the contract method 0xaf104e40.

Solidity: function registerComponentValueSet(address component, uint256 entity, bytes data) returns()

Generated by gomarkdoc