contract

package
v0.0.0-...-6b508d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContractABI = ContractMetaData.ABI

ContractABI is the input ABI used to generate the binding from. Deprecated: Use ContractMetaData.ABI instead.

View Source
var ContractMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"function\",\"name\":\"getBoardRow\",\"inputs\":[{\"name\":\"x\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"y\",\"type\":\"uint16\",\"internalType\":\"uint16\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structRowData_Board\",\"components\":[{\"name\":\"landObjectType\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"landPlayerId\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"landObjectId\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"hoverPlayerId\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"hoverUnitId\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"airPlayerId\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"airUnitId\",\"type\":\"uint8\",\"internalType\":\"uint8\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBuildingPrototypesRow\",\"inputs\":[{\"name\":\"buildingType\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structRowData_BuildingPrototypes\",\"components\":[{\"name\":\"width\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"height\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"resourceCost\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"resourceCapacity\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"computeCapacity\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"resourceMine\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"mineTime\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"maxIntegrity\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"buildingTime\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"isArmory\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"isEnvironment\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getBuildingsRow\",\"inputs\":[{\"name\":\"playerId\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"buildingId\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structRowData_Buildings\",\"components\":[{\"name\":\"x\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"y\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"buildingType\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"state\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"integrity\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"timestamp\",\"type\":\"uint32\",\"internalType\":\"uint32\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getMetaRow\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structRowData_Meta\",\"components\":[{\"name\":\"boardWidth\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"boardHeight\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"playerCount\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"unitPrototypeCount\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"buildingPrototypeCount\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"isInitialized\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"hasStarted\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"creationBlockNumber\",\"type\":\"uint32\",\"internalType\":\"uint32\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getPlayersRow\",\"inputs\":[{\"name\":\"playerId\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structRowData_Players\",\"components\":[{\"name\":\"spawnAreaX\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"spawnAreaY\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"spawnAreaWidth\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"spawnAreaHeight\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"workerPortX\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"workerPortY\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"curResource\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"maxResource\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"curArmories\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"computeSupply\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"computeDemand\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"unitCount\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"buildingCount\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"buildingPayQueuePointer\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"buildingBuildQueuePointer\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"unitPayQueuePointer\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"unpurgeableUnitCount\",\"type\":\"uint8\",\"internalType\":\"uint8\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getUnitPrototypesRow\",\"inputs\":[{\"name\":\"unitType\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structRowData_UnitPrototypes\",\"components\":[{\"name\":\"layer\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"resourceCost\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"computeCost\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"spawnTime\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"maxIntegrity\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"landStrength\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"hoverStrength\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"airStrength\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"attackRange\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"attackCooldown\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"isAssault\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"isConfrontational\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"isWorker\",\"type\":\"bool\",\"internalType\":\"bool\"},{\"name\":\"isPurgeable\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"getUnitsRow\",\"inputs\":[{\"name\":\"playerId\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"unitId\",\"type\":\"uint8\",\"internalType\":\"uint8\"}],\"outputs\":[{\"name\":\"\",\"type\":\"tuple\",\"internalType\":\"structRowData_Units\",\"components\":[{\"name\":\"x\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"y\",\"type\":\"uint16\",\"internalType\":\"uint16\"},{\"name\":\"unitType\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"state\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"load\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"integrity\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"timestamp\",\"type\":\"uint32\",\"internalType\":\"uint32\"},{\"name\":\"command\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"commandExtra\",\"type\":\"uint64\",\"internalType\":\"uint64\"},{\"name\":\"commandMeta\",\"type\":\"uint8\",\"internalType\":\"uint8\"},{\"name\":\"isPreTicked\",\"type\":\"bool\",\"internalType\":\"bool\"}]}],\"stateMutability\":\"view\"}]",
}

ContractMetaData contains all meta data concerning the Contract contract.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	ContractCaller     // Read-only binding to the contract
	ContractTransactor // Write-only binding to the contract
	ContractFilterer   // Log filterer for contract events
}

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

func NewContract

func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error)

NewContract creates a new instance of Contract, bound to a specific deployed contract.

type ContractCaller

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

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

func NewContractCaller

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

NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.

func (*ContractCaller) GetBoardRow

func (_Contract *ContractCaller) GetBoardRow(opts *bind.CallOpts, x uint16, y uint16) (RowDataBoard, error)

GetBoardRow is a free data retrieval call binding the contract method 0x2f5d0157.

Solidity: function getBoardRow(uint16 x, uint16 y) view returns((uint8,uint8,uint8,uint8,uint8,uint8,uint8))

func (*ContractCaller) GetBuildingPrototypesRow

func (_Contract *ContractCaller) GetBuildingPrototypesRow(opts *bind.CallOpts, buildingType uint8) (RowDataBuildingPrototypes, error)

GetBuildingPrototypesRow is a free data retrieval call binding the contract method 0xad986db0.

Solidity: function getBuildingPrototypesRow(uint8 buildingType) view returns((uint8,uint8,uint16,uint16,uint8,uint8,uint8,uint8,uint8,bool,bool))

func (*ContractCaller) GetBuildingsRow

func (_Contract *ContractCaller) GetBuildingsRow(opts *bind.CallOpts, playerId uint8, buildingId uint8) (RowDataBuildings, error)

GetBuildingsRow is a free data retrieval call binding the contract method 0xeed886d9.

Solidity: function getBuildingsRow(uint8 playerId, uint8 buildingId) view returns((uint16,uint16,uint8,uint8,uint8,uint32))

func (*ContractCaller) GetMetaRow

func (_Contract *ContractCaller) GetMetaRow(opts *bind.CallOpts) (RowDataMeta, error)

GetMetaRow is a free data retrieval call binding the contract method 0x422f7e1d.

Solidity: function getMetaRow() view returns((uint16,uint16,uint8,uint8,uint8,bool,bool,uint32))

func (*ContractCaller) GetPlayersRow

func (_Contract *ContractCaller) GetPlayersRow(opts *bind.CallOpts, playerId uint8) (RowDataPlayers, error)

GetPlayersRow is a free data retrieval call binding the contract method 0x051cfce4.

Solidity: function getPlayersRow(uint8 playerId) view returns((uint16,uint16,uint8,uint8,uint16,uint16,uint16,uint16,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8))

func (*ContractCaller) GetUnitPrototypesRow

func (_Contract *ContractCaller) GetUnitPrototypesRow(opts *bind.CallOpts, unitType uint8) (RowDataUnitPrototypes, error)

GetUnitPrototypesRow is a free data retrieval call binding the contract method 0x1903dc4a.

Solidity: function getUnitPrototypesRow(uint8 unitType) view returns((uint8,uint16,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,bool,bool,bool,bool))

func (*ContractCaller) GetUnitsRow

func (_Contract *ContractCaller) GetUnitsRow(opts *bind.CallOpts, playerId uint8, unitId uint8) (RowDataUnits, error)

GetUnitsRow is a free data retrieval call binding the contract method 0x0077cc5a.

Solidity: function getUnitsRow(uint8 playerId, uint8 unitId) view returns((uint16,uint16,uint8,uint8,uint8,uint8,uint32,uint64,uint64,uint8,bool))

type ContractCallerRaw

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

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

func (*ContractCallerRaw) Call

func (_Contract *ContractCallerRaw) 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 ContractCallerSession

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

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

func (*ContractCallerSession) GetBoardRow

func (_Contract *ContractCallerSession) GetBoardRow(x uint16, y uint16) (RowDataBoard, error)

GetBoardRow is a free data retrieval call binding the contract method 0x2f5d0157.

Solidity: function getBoardRow(uint16 x, uint16 y) view returns((uint8,uint8,uint8,uint8,uint8,uint8,uint8))

func (*ContractCallerSession) GetBuildingPrototypesRow

func (_Contract *ContractCallerSession) GetBuildingPrototypesRow(buildingType uint8) (RowDataBuildingPrototypes, error)

GetBuildingPrototypesRow is a free data retrieval call binding the contract method 0xad986db0.

Solidity: function getBuildingPrototypesRow(uint8 buildingType) view returns((uint8,uint8,uint16,uint16,uint8,uint8,uint8,uint8,uint8,bool,bool))

func (*ContractCallerSession) GetBuildingsRow

func (_Contract *ContractCallerSession) GetBuildingsRow(playerId uint8, buildingId uint8) (RowDataBuildings, error)

GetBuildingsRow is a free data retrieval call binding the contract method 0xeed886d9.

Solidity: function getBuildingsRow(uint8 playerId, uint8 buildingId) view returns((uint16,uint16,uint8,uint8,uint8,uint32))

func (*ContractCallerSession) GetMetaRow

func (_Contract *ContractCallerSession) GetMetaRow() (RowDataMeta, error)

GetMetaRow is a free data retrieval call binding the contract method 0x422f7e1d.

Solidity: function getMetaRow() view returns((uint16,uint16,uint8,uint8,uint8,bool,bool,uint32))

func (*ContractCallerSession) GetPlayersRow

func (_Contract *ContractCallerSession) GetPlayersRow(playerId uint8) (RowDataPlayers, error)

GetPlayersRow is a free data retrieval call binding the contract method 0x051cfce4.

Solidity: function getPlayersRow(uint8 playerId) view returns((uint16,uint16,uint8,uint8,uint16,uint16,uint16,uint16,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8))

func (*ContractCallerSession) GetUnitPrototypesRow

func (_Contract *ContractCallerSession) GetUnitPrototypesRow(unitType uint8) (RowDataUnitPrototypes, error)

GetUnitPrototypesRow is a free data retrieval call binding the contract method 0x1903dc4a.

Solidity: function getUnitPrototypesRow(uint8 unitType) view returns((uint8,uint16,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,bool,bool,bool,bool))

func (*ContractCallerSession) GetUnitsRow

func (_Contract *ContractCallerSession) GetUnitsRow(playerId uint8, unitId uint8) (RowDataUnits, error)

GetUnitsRow is a free data retrieval call binding the contract method 0x0077cc5a.

Solidity: function getUnitsRow(uint8 playerId, uint8 unitId) view returns((uint16,uint16,uint8,uint8,uint8,uint8,uint32,uint64,uint64,uint8,bool))

type ContractFilterer

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

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

func NewContractFilterer

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

NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.

type ContractRaw

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

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

func (*ContractRaw) Call

func (_Contract *ContractRaw) 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 (*ContractRaw) Transact

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

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

func (*ContractRaw) Transfer

func (_Contract *ContractRaw) 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 ContractSession

type ContractSession struct {
	Contract     *Contract         // 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
}

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

func (*ContractSession) GetBoardRow

func (_Contract *ContractSession) GetBoardRow(x uint16, y uint16) (RowDataBoard, error)

GetBoardRow is a free data retrieval call binding the contract method 0x2f5d0157.

Solidity: function getBoardRow(uint16 x, uint16 y) view returns((uint8,uint8,uint8,uint8,uint8,uint8,uint8))

func (*ContractSession) GetBuildingPrototypesRow

func (_Contract *ContractSession) GetBuildingPrototypesRow(buildingType uint8) (RowDataBuildingPrototypes, error)

GetBuildingPrototypesRow is a free data retrieval call binding the contract method 0xad986db0.

Solidity: function getBuildingPrototypesRow(uint8 buildingType) view returns((uint8,uint8,uint16,uint16,uint8,uint8,uint8,uint8,uint8,bool,bool))

func (*ContractSession) GetBuildingsRow

func (_Contract *ContractSession) GetBuildingsRow(playerId uint8, buildingId uint8) (RowDataBuildings, error)

GetBuildingsRow is a free data retrieval call binding the contract method 0xeed886d9.

Solidity: function getBuildingsRow(uint8 playerId, uint8 buildingId) view returns((uint16,uint16,uint8,uint8,uint8,uint32))

func (*ContractSession) GetMetaRow

func (_Contract *ContractSession) GetMetaRow() (RowDataMeta, error)

GetMetaRow is a free data retrieval call binding the contract method 0x422f7e1d.

Solidity: function getMetaRow() view returns((uint16,uint16,uint8,uint8,uint8,bool,bool,uint32))

func (*ContractSession) GetPlayersRow

func (_Contract *ContractSession) GetPlayersRow(playerId uint8) (RowDataPlayers, error)

GetPlayersRow is a free data retrieval call binding the contract method 0x051cfce4.

Solidity: function getPlayersRow(uint8 playerId) view returns((uint16,uint16,uint8,uint8,uint16,uint16,uint16,uint16,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8))

func (*ContractSession) GetUnitPrototypesRow

func (_Contract *ContractSession) GetUnitPrototypesRow(unitType uint8) (RowDataUnitPrototypes, error)

GetUnitPrototypesRow is a free data retrieval call binding the contract method 0x1903dc4a.

Solidity: function getUnitPrototypesRow(uint8 unitType) view returns((uint8,uint16,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,bool,bool,bool,bool))

func (*ContractSession) GetUnitsRow

func (_Contract *ContractSession) GetUnitsRow(playerId uint8, unitId uint8) (RowDataUnits, error)

GetUnitsRow is a free data retrieval call binding the contract method 0x0077cc5a.

Solidity: function getUnitsRow(uint8 playerId, uint8 unitId) view returns((uint16,uint16,uint8,uint8,uint8,uint8,uint32,uint64,uint64,uint8,bool))

type ContractTransactor

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

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

func NewContractTransactor

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

NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.

type ContractTransactorRaw

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

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

func (*ContractTransactorRaw) Transact

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

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

func (*ContractTransactorRaw) Transfer

func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession

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

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

type RowDataBoard

type RowDataBoard struct {
	LandObjectType uint8
	LandPlayerId   uint8
	LandObjectId   uint8
	HoverPlayerId  uint8
	HoverUnitId    uint8
	AirPlayerId    uint8
	AirUnitId      uint8
}

RowDataBoard is an auto generated low-level Go binding around an user-defined struct.

type RowDataBuildingPrototypes

type RowDataBuildingPrototypes struct {
	Width            uint8
	Height           uint8
	ResourceCost     uint16
	ResourceCapacity uint16
	ComputeCapacity  uint8
	ResourceMine     uint8
	MineTime         uint8
	MaxIntegrity     uint8
	BuildingTime     uint8
	IsArmory         bool
	IsEnvironment    bool
}

RowDataBuildingPrototypes is an auto generated low-level Go binding around an user-defined struct.

type RowDataBuildings

type RowDataBuildings struct {
	X            uint16
	Y            uint16
	BuildingType uint8
	State        uint8
	Integrity    uint8
	Timestamp    uint32
}

RowDataBuildings is an auto generated low-level Go binding around an user-defined struct.

type RowDataMeta

type RowDataMeta struct {
	BoardWidth             uint16
	BoardHeight            uint16
	PlayerCount            uint8
	UnitPrototypeCount     uint8
	BuildingPrototypeCount uint8
	IsInitialized          bool
	HasStarted             bool
	CreationBlockNumber    uint32
}

RowDataMeta is an auto generated low-level Go binding around an user-defined struct.

type RowDataPlayers

type RowDataPlayers struct {
	SpawnAreaX                uint16
	SpawnAreaY                uint16
	SpawnAreaWidth            uint8
	SpawnAreaHeight           uint8
	WorkerPortX               uint16
	WorkerPortY               uint16
	CurResource               uint16
	MaxResource               uint16
	CurArmories               uint8
	ComputeSupply             uint8
	ComputeDemand             uint8
	UnitCount                 uint8
	BuildingCount             uint8
	BuildingPayQueuePointer   uint8
	BuildingBuildQueuePointer uint8
	UnitPayQueuePointer       uint8
	UnpurgeableUnitCount      uint8
}

RowDataPlayers is an auto generated low-level Go binding around an user-defined struct.

type RowDataUnitPrototypes

type RowDataUnitPrototypes struct {
	Layer             uint8
	ResourceCost      uint16
	ComputeCost       uint8
	SpawnTime         uint8
	MaxIntegrity      uint8
	LandStrength      uint8
	HoverStrength     uint8
	AirStrength       uint8
	AttackRange       uint8
	AttackCooldown    uint8
	IsAssault         bool
	IsConfrontational bool
	IsWorker          bool
	IsPurgeable       bool
}

RowDataUnitPrototypes is an auto generated low-level Go binding around an user-defined struct.

type RowDataUnits

type RowDataUnits struct {
	X            uint16
	Y            uint16
	UnitType     uint8
	State        uint8
	Load         uint8
	Integrity    uint8
	Timestamp    uint32
	Command      uint64
	CommandExtra uint64
	CommandMeta  uint8
	IsPreTicked  bool
}

RowDataUnits is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL