Documentation ¶
Index ¶
- func BoardDefaultKey() []byte
- func BuildingPrototypesDefaultKey() []byte
- func BuildingsDefaultKey() []byte
- func MetaDefaultKey() []byte
- func PlayersDefaultKey() []byte
- func UnitPrototypesDefaultKey() []byte
- func UnitsDefaultKey() []byte
- type Board
- type BoardRow
- func (v *BoardRow) Get() (landObjectType uint8, landPlayerId uint8, landObjectId uint8, ...)
- func (v *BoardRow) GetAirPlayerId() uint8
- func (v *BoardRow) GetAirUnitId() uint8
- func (v *BoardRow) GetHoverPlayerId() uint8
- func (v *BoardRow) GetHoverUnitId() uint8
- func (v *BoardRow) GetLandObjectId() uint8
- func (v *BoardRow) GetLandObjectType() uint8
- func (v *BoardRow) GetLandPlayerId() uint8
- func (v *BoardRow) Set(landObjectType uint8, landPlayerId uint8, landObjectId uint8, ...)
- func (v *BoardRow) SetAirPlayerId(value uint8)
- func (v *BoardRow) SetAirUnitId(value uint8)
- func (v *BoardRow) SetHoverPlayerId(value uint8)
- func (v *BoardRow) SetHoverUnitId(value uint8)
- func (v *BoardRow) SetLandObjectId(value uint8)
- func (v *BoardRow) SetLandObjectType(value uint8)
- func (v *BoardRow) SetLandPlayerId(value uint8)
- type BuildingPrototypes
- type BuildingPrototypesRow
- func (v *BuildingPrototypesRow) Get() (width uint8, height uint8, resourceCost uint16, resourceCapacity uint16, ...)
- func (v *BuildingPrototypesRow) GetBuildingTime() uint8
- func (v *BuildingPrototypesRow) GetComputeCapacity() uint8
- func (v *BuildingPrototypesRow) GetHeight() uint8
- func (v *BuildingPrototypesRow) GetIsArmory() bool
- func (v *BuildingPrototypesRow) GetIsEnvironment() bool
- func (v *BuildingPrototypesRow) GetMaxIntegrity() uint8
- func (v *BuildingPrototypesRow) GetMineTime() uint8
- func (v *BuildingPrototypesRow) GetResourceCapacity() uint16
- func (v *BuildingPrototypesRow) GetResourceCost() uint16
- func (v *BuildingPrototypesRow) GetResourceMine() uint8
- func (v *BuildingPrototypesRow) GetWidth() uint8
- func (v *BuildingPrototypesRow) Set(width uint8, height uint8, resourceCost uint16, resourceCapacity uint16, ...)
- func (v *BuildingPrototypesRow) SetBuildingTime(value uint8)
- func (v *BuildingPrototypesRow) SetComputeCapacity(value uint8)
- func (v *BuildingPrototypesRow) SetHeight(value uint8)
- func (v *BuildingPrototypesRow) SetIsArmory(value bool)
- func (v *BuildingPrototypesRow) SetIsEnvironment(value bool)
- func (v *BuildingPrototypesRow) SetMaxIntegrity(value uint8)
- func (v *BuildingPrototypesRow) SetMineTime(value uint8)
- func (v *BuildingPrototypesRow) SetResourceCapacity(value uint16)
- func (v *BuildingPrototypesRow) SetResourceCost(value uint16)
- func (v *BuildingPrototypesRow) SetResourceMine(value uint8)
- func (v *BuildingPrototypesRow) SetWidth(value uint8)
- type Buildings
- type BuildingsRow
- func (v *BuildingsRow) Get() (x uint16, y uint16, buildingType uint8, state uint8, integrity uint8, ...)
- func (v *BuildingsRow) GetBuildingType() uint8
- func (v *BuildingsRow) GetIntegrity() uint8
- func (v *BuildingsRow) GetState() uint8
- func (v *BuildingsRow) GetTimestamp() uint32
- func (v *BuildingsRow) GetX() uint16
- func (v *BuildingsRow) GetY() uint16
- func (v *BuildingsRow) Set(x uint16, y uint16, buildingType uint8, state uint8, integrity uint8, ...)
- func (v *BuildingsRow) SetBuildingType(value uint8)
- func (v *BuildingsRow) SetIntegrity(value uint8)
- func (v *BuildingsRow) SetState(value uint8)
- func (v *BuildingsRow) SetTimestamp(value uint32)
- func (v *BuildingsRow) SetX(value uint16)
- func (v *BuildingsRow) SetY(value uint16)
- type Meta
- type MetaRow
- func (v *MetaRow) Get() (boardWidth uint16, boardHeight uint16, playerCount uint8, ...)
- func (v *MetaRow) GetBoardHeight() uint16
- func (v *MetaRow) GetBoardWidth() uint16
- func (v *MetaRow) GetBuildingPrototypeCount() uint8
- func (v *MetaRow) GetCreationBlockNumber() uint32
- func (v *MetaRow) GetHasStarted() bool
- func (v *MetaRow) GetIsInitialized() bool
- func (v *MetaRow) GetPlayerCount() uint8
- func (v *MetaRow) GetUnitPrototypeCount() uint8
- func (v *MetaRow) Set(boardWidth uint16, boardHeight uint16, playerCount uint8, ...)
- func (v *MetaRow) SetBoardHeight(value uint16)
- func (v *MetaRow) SetBoardWidth(value uint16)
- func (v *MetaRow) SetBuildingPrototypeCount(value uint8)
- func (v *MetaRow) SetCreationBlockNumber(value uint32)
- func (v *MetaRow) SetHasStarted(value bool)
- func (v *MetaRow) SetIsInitialized(value bool)
- func (v *MetaRow) SetPlayerCount(value uint8)
- func (v *MetaRow) SetUnitPrototypeCount(value uint8)
- type Players
- type PlayersRow
- func (v *PlayersRow) Get() (spawnAreaX uint16, spawnAreaY uint16, spawnAreaWidth uint8, ...)
- func (v *PlayersRow) GetBuildingBuildQueuePointer() uint8
- func (v *PlayersRow) GetBuildingCount() uint8
- func (v *PlayersRow) GetBuildingPayQueuePointer() uint8
- func (v *PlayersRow) GetComputeDemand() uint8
- func (v *PlayersRow) GetComputeSupply() uint8
- func (v *PlayersRow) GetCurArmories() uint8
- func (v *PlayersRow) GetCurResource() uint16
- func (v *PlayersRow) GetMaxResource() uint16
- func (v *PlayersRow) GetSpawnAreaHeight() uint8
- func (v *PlayersRow) GetSpawnAreaWidth() uint8
- func (v *PlayersRow) GetSpawnAreaX() uint16
- func (v *PlayersRow) GetSpawnAreaY() uint16
- func (v *PlayersRow) GetUnitCount() uint8
- func (v *PlayersRow) GetUnitPayQueuePointer() uint8
- func (v *PlayersRow) GetUnpurgeableUnitCount() uint8
- func (v *PlayersRow) GetWorkerPortX() uint16
- func (v *PlayersRow) GetWorkerPortY() uint16
- func (v *PlayersRow) Set(spawnAreaX uint16, spawnAreaY uint16, spawnAreaWidth uint8, ...)
- func (v *PlayersRow) SetBuildingBuildQueuePointer(value uint8)
- func (v *PlayersRow) SetBuildingCount(value uint8)
- func (v *PlayersRow) SetBuildingPayQueuePointer(value uint8)
- func (v *PlayersRow) SetComputeDemand(value uint8)
- func (v *PlayersRow) SetComputeSupply(value uint8)
- func (v *PlayersRow) SetCurArmories(value uint8)
- func (v *PlayersRow) SetCurResource(value uint16)
- func (v *PlayersRow) SetMaxResource(value uint16)
- func (v *PlayersRow) SetSpawnAreaHeight(value uint8)
- func (v *PlayersRow) SetSpawnAreaWidth(value uint8)
- func (v *PlayersRow) SetSpawnAreaX(value uint16)
- func (v *PlayersRow) SetSpawnAreaY(value uint16)
- func (v *PlayersRow) SetUnitCount(value uint8)
- func (v *PlayersRow) SetUnitPayQueuePointer(value uint8)
- func (v *PlayersRow) SetUnpurgeableUnitCount(value uint8)
- func (v *PlayersRow) SetWorkerPortX(value uint16)
- func (v *PlayersRow) SetWorkerPortY(value uint16)
- type UnitPrototypes
- type UnitPrototypesRow
- func (v *UnitPrototypesRow) Get() (layer uint8, resourceCost uint16, computeCost uint8, spawnTime uint8, ...)
- func (v *UnitPrototypesRow) GetAirStrength() uint8
- func (v *UnitPrototypesRow) GetAttackCooldown() uint8
- func (v *UnitPrototypesRow) GetAttackRange() uint8
- func (v *UnitPrototypesRow) GetComputeCost() uint8
- func (v *UnitPrototypesRow) GetHoverStrength() uint8
- func (v *UnitPrototypesRow) GetIsAssault() bool
- func (v *UnitPrototypesRow) GetIsConfrontational() bool
- func (v *UnitPrototypesRow) GetIsPurgeable() bool
- func (v *UnitPrototypesRow) GetIsWorker() bool
- func (v *UnitPrototypesRow) GetLandStrength() uint8
- func (v *UnitPrototypesRow) GetLayer() uint8
- func (v *UnitPrototypesRow) GetMaxIntegrity() uint8
- func (v *UnitPrototypesRow) GetResourceCost() uint16
- func (v *UnitPrototypesRow) GetSpawnTime() uint8
- func (v *UnitPrototypesRow) Set(layer uint8, resourceCost uint16, computeCost uint8, spawnTime uint8, ...)
- func (v *UnitPrototypesRow) SetAirStrength(value uint8)
- func (v *UnitPrototypesRow) SetAttackCooldown(value uint8)
- func (v *UnitPrototypesRow) SetAttackRange(value uint8)
- func (v *UnitPrototypesRow) SetComputeCost(value uint8)
- func (v *UnitPrototypesRow) SetHoverStrength(value uint8)
- func (v *UnitPrototypesRow) SetIsAssault(value bool)
- func (v *UnitPrototypesRow) SetIsConfrontational(value bool)
- func (v *UnitPrototypesRow) SetIsPurgeable(value bool)
- func (v *UnitPrototypesRow) SetIsWorker(value bool)
- func (v *UnitPrototypesRow) SetLandStrength(value uint8)
- func (v *UnitPrototypesRow) SetLayer(value uint8)
- func (v *UnitPrototypesRow) SetMaxIntegrity(value uint8)
- func (v *UnitPrototypesRow) SetResourceCost(value uint16)
- func (v *UnitPrototypesRow) SetSpawnTime(value uint8)
- type Units
- type UnitsRow
- func (v *UnitsRow) Get() (x uint16, y uint16, unitType uint8, state uint8, load uint8, integrity uint8, ...)
- func (v *UnitsRow) GetCommand() uint64
- func (v *UnitsRow) GetCommandExtra() uint64
- func (v *UnitsRow) GetCommandMeta() uint8
- func (v *UnitsRow) GetIntegrity() uint8
- func (v *UnitsRow) GetIsPreTicked() bool
- func (v *UnitsRow) GetLoad() uint8
- func (v *UnitsRow) GetState() uint8
- func (v *UnitsRow) GetTimestamp() uint32
- func (v *UnitsRow) GetUnitType() uint8
- func (v *UnitsRow) GetX() uint16
- func (v *UnitsRow) GetY() uint16
- func (v *UnitsRow) Set(x uint16, y uint16, unitType uint8, state uint8, load uint8, integrity uint8, ...)
- func (v *UnitsRow) SetCommand(value uint64)
- func (v *UnitsRow) SetCommandExtra(value uint64)
- func (v *UnitsRow) SetCommandMeta(value uint8)
- func (v *UnitsRow) SetIntegrity(value uint8)
- func (v *UnitsRow) SetIsPreTicked(value bool)
- func (v *UnitsRow) SetLoad(value uint8)
- func (v *UnitsRow) SetState(value uint8)
- func (v *UnitsRow) SetTimestamp(value uint32)
- func (v *UnitsRow) SetUnitType(value uint8)
- func (v *UnitsRow) SetX(value uint16)
- func (v *UnitsRow) SetY(value uint16)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoardDefaultKey ¶
func BoardDefaultKey() []byte
func BuildingPrototypesDefaultKey ¶
func BuildingPrototypesDefaultKey() []byte
func BuildingsDefaultKey ¶
func BuildingsDefaultKey() []byte
func MetaDefaultKey ¶
func MetaDefaultKey() []byte
func PlayersDefaultKey ¶
func PlayersDefaultKey() []byte
func UnitPrototypesDefaultKey ¶
func UnitPrototypesDefaultKey() []byte
func UnitsDefaultKey ¶
func UnitsDefaultKey() []byte
Types ¶
type Board ¶
type Board struct {
// contains filtered or unexported fields
}
func NewBoardFromSlot ¶
func NewBoardFromSlot(dsSlot lib.DatastoreSlot) *Board
func NewBoardWithParent ¶
type BoardRow ¶
type BoardRow struct {
lib.DatastoreStructWithParent
}
func NewBoardRow ¶
func NewBoardRow(dsSlot lib.DatastoreSlot) *BoardRow
func NewBoardRowWithParent ¶
func (*BoardRow) GetAirPlayerId ¶
func (*BoardRow) GetAirUnitId ¶
func (*BoardRow) GetHoverPlayerId ¶
func (*BoardRow) GetHoverUnitId ¶
func (*BoardRow) GetLandObjectId ¶
func (*BoardRow) GetLandObjectType ¶
func (*BoardRow) GetLandPlayerId ¶
func (*BoardRow) SetAirPlayerId ¶
func (*BoardRow) SetAirUnitId ¶
func (*BoardRow) SetHoverPlayerId ¶
func (*BoardRow) SetHoverUnitId ¶
func (*BoardRow) SetLandObjectId ¶
func (*BoardRow) SetLandObjectType ¶
func (*BoardRow) SetLandPlayerId ¶
type BuildingPrototypes ¶
type BuildingPrototypes struct {
// contains filtered or unexported fields
}
func NewBuildingPrototypes ¶
func NewBuildingPrototypes(ds lib.Datastore) *BuildingPrototypes
func NewBuildingPrototypesFromSlot ¶
func NewBuildingPrototypesFromSlot(dsSlot lib.DatastoreSlot) *BuildingPrototypes
func (*BuildingPrototypes) Get ¶
func (m *BuildingPrototypes) Get( buildingType uint8, ) *BuildingPrototypesRow
func (*BuildingPrototypes) SetFieldCallback ¶
type BuildingPrototypesRow ¶
type BuildingPrototypesRow struct {
lib.DatastoreStructWithParent
}
func NewBuildingPrototypesRow ¶
func NewBuildingPrototypesRow(dsSlot lib.DatastoreSlot) *BuildingPrototypesRow
func NewBuildingPrototypesRowWithParent ¶
func NewBuildingPrototypesRowWithParent(dsSlot lib.DatastoreSlot, parent lib.Parent, rowKey lib.RowKey) *BuildingPrototypesRow
func (*BuildingPrototypesRow) GetBuildingTime ¶
func (v *BuildingPrototypesRow) GetBuildingTime() uint8
func (*BuildingPrototypesRow) GetComputeCapacity ¶
func (v *BuildingPrototypesRow) GetComputeCapacity() uint8
func (*BuildingPrototypesRow) GetHeight ¶
func (v *BuildingPrototypesRow) GetHeight() uint8
func (*BuildingPrototypesRow) GetIsArmory ¶
func (v *BuildingPrototypesRow) GetIsArmory() bool
func (*BuildingPrototypesRow) GetIsEnvironment ¶
func (v *BuildingPrototypesRow) GetIsEnvironment() bool
func (*BuildingPrototypesRow) GetMaxIntegrity ¶
func (v *BuildingPrototypesRow) GetMaxIntegrity() uint8
func (*BuildingPrototypesRow) GetMineTime ¶
func (v *BuildingPrototypesRow) GetMineTime() uint8
func (*BuildingPrototypesRow) GetResourceCapacity ¶
func (v *BuildingPrototypesRow) GetResourceCapacity() uint16
func (*BuildingPrototypesRow) GetResourceCost ¶
func (v *BuildingPrototypesRow) GetResourceCost() uint16
func (*BuildingPrototypesRow) GetResourceMine ¶
func (v *BuildingPrototypesRow) GetResourceMine() uint8
func (*BuildingPrototypesRow) GetWidth ¶
func (v *BuildingPrototypesRow) GetWidth() uint8
func (*BuildingPrototypesRow) SetBuildingTime ¶
func (v *BuildingPrototypesRow) SetBuildingTime(value uint8)
func (*BuildingPrototypesRow) SetComputeCapacity ¶
func (v *BuildingPrototypesRow) SetComputeCapacity(value uint8)
func (*BuildingPrototypesRow) SetHeight ¶
func (v *BuildingPrototypesRow) SetHeight(value uint8)
func (*BuildingPrototypesRow) SetIsArmory ¶
func (v *BuildingPrototypesRow) SetIsArmory(value bool)
func (*BuildingPrototypesRow) SetIsEnvironment ¶
func (v *BuildingPrototypesRow) SetIsEnvironment(value bool)
func (*BuildingPrototypesRow) SetMaxIntegrity ¶
func (v *BuildingPrototypesRow) SetMaxIntegrity(value uint8)
func (*BuildingPrototypesRow) SetMineTime ¶
func (v *BuildingPrototypesRow) SetMineTime(value uint8)
func (*BuildingPrototypesRow) SetResourceCapacity ¶
func (v *BuildingPrototypesRow) SetResourceCapacity(value uint16)
func (*BuildingPrototypesRow) SetResourceCost ¶
func (v *BuildingPrototypesRow) SetResourceCost(value uint16)
func (*BuildingPrototypesRow) SetResourceMine ¶
func (v *BuildingPrototypesRow) SetResourceMine(value uint8)
func (*BuildingPrototypesRow) SetWidth ¶
func (v *BuildingPrototypesRow) SetWidth(value uint8)
type Buildings ¶
type Buildings struct {
// contains filtered or unexported fields
}
func NewBuildings ¶
func NewBuildingsFromSlot ¶
func NewBuildingsFromSlot(dsSlot lib.DatastoreSlot) *Buildings
func NewBuildingsWithParent ¶
type BuildingsRow ¶
type BuildingsRow struct {
lib.DatastoreStructWithParent
}
func NewBuildingsRow ¶
func NewBuildingsRow(dsSlot lib.DatastoreSlot) *BuildingsRow
func NewBuildingsRowWithParent ¶
func NewBuildingsRowWithParent(dsSlot lib.DatastoreSlot, parent lib.Parent, rowKey lib.RowKey) *BuildingsRow
func (*BuildingsRow) GetBuildingType ¶
func (v *BuildingsRow) GetBuildingType() uint8
func (*BuildingsRow) GetIntegrity ¶
func (v *BuildingsRow) GetIntegrity() uint8
func (*BuildingsRow) GetState ¶
func (v *BuildingsRow) GetState() uint8
func (*BuildingsRow) GetTimestamp ¶
func (v *BuildingsRow) GetTimestamp() uint32
func (*BuildingsRow) GetX ¶
func (v *BuildingsRow) GetX() uint16
func (*BuildingsRow) GetY ¶
func (v *BuildingsRow) GetY() uint16
func (*BuildingsRow) SetBuildingType ¶
func (v *BuildingsRow) SetBuildingType(value uint8)
func (*BuildingsRow) SetIntegrity ¶
func (v *BuildingsRow) SetIntegrity(value uint8)
func (*BuildingsRow) SetState ¶
func (v *BuildingsRow) SetState(value uint8)
func (*BuildingsRow) SetTimestamp ¶
func (v *BuildingsRow) SetTimestamp(value uint32)
func (*BuildingsRow) SetX ¶
func (v *BuildingsRow) SetX(value uint16)
func (*BuildingsRow) SetY ¶
func (v *BuildingsRow) SetY(value uint16)
type Meta ¶
type Meta struct {
// contains filtered or unexported fields
}
func NewMetaFromSlot ¶
func NewMetaFromSlot(dsSlot lib.DatastoreSlot) *Meta
func NewMetaWithParent ¶
type MetaRow ¶
type MetaRow struct {
lib.DatastoreStructWithParent
}
func NewMetaRow ¶
func NewMetaRow(dsSlot lib.DatastoreSlot) *MetaRow
func NewMetaRowWithParent ¶
func (*MetaRow) GetBoardHeight ¶
func (*MetaRow) GetBoardWidth ¶
func (*MetaRow) GetBuildingPrototypeCount ¶
func (*MetaRow) GetCreationBlockNumber ¶
func (*MetaRow) GetHasStarted ¶
func (*MetaRow) GetIsInitialized ¶
func (*MetaRow) GetPlayerCount ¶
func (*MetaRow) GetUnitPrototypeCount ¶
func (*MetaRow) SetBoardHeight ¶
func (*MetaRow) SetBoardWidth ¶
func (*MetaRow) SetBuildingPrototypeCount ¶
func (*MetaRow) SetCreationBlockNumber ¶
func (*MetaRow) SetHasStarted ¶
func (*MetaRow) SetIsInitialized ¶
func (*MetaRow) SetPlayerCount ¶
func (*MetaRow) SetUnitPrototypeCount ¶
type Players ¶
type Players struct {
// contains filtered or unexported fields
}
func NewPlayers ¶
func NewPlayersFromSlot ¶
func NewPlayersFromSlot(dsSlot lib.DatastoreSlot) *Players
func NewPlayersWithParent ¶
func (*Players) Get ¶
func (m *Players) Get( playerId uint8, ) *PlayersRow
type PlayersRow ¶
type PlayersRow struct {
lib.DatastoreStructWithParent
}
func NewPlayersRow ¶
func NewPlayersRow(dsSlot lib.DatastoreSlot) *PlayersRow
func NewPlayersRowWithParent ¶
func NewPlayersRowWithParent(dsSlot lib.DatastoreSlot, parent lib.Parent, rowKey lib.RowKey) *PlayersRow
func (*PlayersRow) Get ¶
func (v *PlayersRow) Get() ( 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, )
func (*PlayersRow) GetBuildingBuildQueuePointer ¶
func (v *PlayersRow) GetBuildingBuildQueuePointer() uint8
func (*PlayersRow) GetBuildingCount ¶
func (v *PlayersRow) GetBuildingCount() uint8
func (*PlayersRow) GetBuildingPayQueuePointer ¶
func (v *PlayersRow) GetBuildingPayQueuePointer() uint8
func (*PlayersRow) GetComputeDemand ¶
func (v *PlayersRow) GetComputeDemand() uint8
func (*PlayersRow) GetComputeSupply ¶
func (v *PlayersRow) GetComputeSupply() uint8
func (*PlayersRow) GetCurArmories ¶
func (v *PlayersRow) GetCurArmories() uint8
func (*PlayersRow) GetCurResource ¶
func (v *PlayersRow) GetCurResource() uint16
func (*PlayersRow) GetMaxResource ¶
func (v *PlayersRow) GetMaxResource() uint16
func (*PlayersRow) GetSpawnAreaHeight ¶
func (v *PlayersRow) GetSpawnAreaHeight() uint8
func (*PlayersRow) GetSpawnAreaWidth ¶
func (v *PlayersRow) GetSpawnAreaWidth() uint8
func (*PlayersRow) GetSpawnAreaX ¶
func (v *PlayersRow) GetSpawnAreaX() uint16
func (*PlayersRow) GetSpawnAreaY ¶
func (v *PlayersRow) GetSpawnAreaY() uint16
func (*PlayersRow) GetUnitCount ¶
func (v *PlayersRow) GetUnitCount() uint8
func (*PlayersRow) GetUnitPayQueuePointer ¶
func (v *PlayersRow) GetUnitPayQueuePointer() uint8
func (*PlayersRow) GetUnpurgeableUnitCount ¶
func (v *PlayersRow) GetUnpurgeableUnitCount() uint8
func (*PlayersRow) GetWorkerPortX ¶
func (v *PlayersRow) GetWorkerPortX() uint16
func (*PlayersRow) GetWorkerPortY ¶
func (v *PlayersRow) GetWorkerPortY() uint16
func (*PlayersRow) Set ¶
func (v *PlayersRow) Set( 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, )
func (*PlayersRow) SetBuildingBuildQueuePointer ¶
func (v *PlayersRow) SetBuildingBuildQueuePointer(value uint8)
func (*PlayersRow) SetBuildingCount ¶
func (v *PlayersRow) SetBuildingCount(value uint8)
func (*PlayersRow) SetBuildingPayQueuePointer ¶
func (v *PlayersRow) SetBuildingPayQueuePointer(value uint8)
func (*PlayersRow) SetComputeDemand ¶
func (v *PlayersRow) SetComputeDemand(value uint8)
func (*PlayersRow) SetComputeSupply ¶
func (v *PlayersRow) SetComputeSupply(value uint8)
func (*PlayersRow) SetCurArmories ¶
func (v *PlayersRow) SetCurArmories(value uint8)
func (*PlayersRow) SetCurResource ¶
func (v *PlayersRow) SetCurResource(value uint16)
func (*PlayersRow) SetMaxResource ¶
func (v *PlayersRow) SetMaxResource(value uint16)
func (*PlayersRow) SetSpawnAreaHeight ¶
func (v *PlayersRow) SetSpawnAreaHeight(value uint8)
func (*PlayersRow) SetSpawnAreaWidth ¶
func (v *PlayersRow) SetSpawnAreaWidth(value uint8)
func (*PlayersRow) SetSpawnAreaX ¶
func (v *PlayersRow) SetSpawnAreaX(value uint16)
func (*PlayersRow) SetSpawnAreaY ¶
func (v *PlayersRow) SetSpawnAreaY(value uint16)
func (*PlayersRow) SetUnitCount ¶
func (v *PlayersRow) SetUnitCount(value uint8)
func (*PlayersRow) SetUnitPayQueuePointer ¶
func (v *PlayersRow) SetUnitPayQueuePointer(value uint8)
func (*PlayersRow) SetUnpurgeableUnitCount ¶
func (v *PlayersRow) SetUnpurgeableUnitCount(value uint8)
func (*PlayersRow) SetWorkerPortX ¶
func (v *PlayersRow) SetWorkerPortX(value uint16)
func (*PlayersRow) SetWorkerPortY ¶
func (v *PlayersRow) SetWorkerPortY(value uint16)
type UnitPrototypes ¶
type UnitPrototypes struct {
// contains filtered or unexported fields
}
func NewUnitPrototypes ¶
func NewUnitPrototypes(ds lib.Datastore) *UnitPrototypes
func NewUnitPrototypesFromSlot ¶
func NewUnitPrototypesFromSlot(dsSlot lib.DatastoreSlot) *UnitPrototypes
func (*UnitPrototypes) Get ¶
func (m *UnitPrototypes) Get( unitType uint8, ) *UnitPrototypesRow
func (*UnitPrototypes) SetFieldCallback ¶
type UnitPrototypesRow ¶
type UnitPrototypesRow struct {
lib.DatastoreStructWithParent
}
func NewUnitPrototypesRow ¶
func NewUnitPrototypesRow(dsSlot lib.DatastoreSlot) *UnitPrototypesRow
func NewUnitPrototypesRowWithParent ¶
func NewUnitPrototypesRowWithParent(dsSlot lib.DatastoreSlot, parent lib.Parent, rowKey lib.RowKey) *UnitPrototypesRow
func (*UnitPrototypesRow) Get ¶
func (v *UnitPrototypesRow) Get() ( 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, )
func (*UnitPrototypesRow) GetAirStrength ¶
func (v *UnitPrototypesRow) GetAirStrength() uint8
func (*UnitPrototypesRow) GetAttackCooldown ¶
func (v *UnitPrototypesRow) GetAttackCooldown() uint8
func (*UnitPrototypesRow) GetAttackRange ¶
func (v *UnitPrototypesRow) GetAttackRange() uint8
func (*UnitPrototypesRow) GetComputeCost ¶
func (v *UnitPrototypesRow) GetComputeCost() uint8
func (*UnitPrototypesRow) GetHoverStrength ¶
func (v *UnitPrototypesRow) GetHoverStrength() uint8
func (*UnitPrototypesRow) GetIsAssault ¶
func (v *UnitPrototypesRow) GetIsAssault() bool
func (*UnitPrototypesRow) GetIsConfrontational ¶
func (v *UnitPrototypesRow) GetIsConfrontational() bool
func (*UnitPrototypesRow) GetIsPurgeable ¶
func (v *UnitPrototypesRow) GetIsPurgeable() bool
func (*UnitPrototypesRow) GetIsWorker ¶
func (v *UnitPrototypesRow) GetIsWorker() bool
func (*UnitPrototypesRow) GetLandStrength ¶
func (v *UnitPrototypesRow) GetLandStrength() uint8
func (*UnitPrototypesRow) GetLayer ¶
func (v *UnitPrototypesRow) GetLayer() uint8
func (*UnitPrototypesRow) GetMaxIntegrity ¶
func (v *UnitPrototypesRow) GetMaxIntegrity() uint8
func (*UnitPrototypesRow) GetResourceCost ¶
func (v *UnitPrototypesRow) GetResourceCost() uint16
func (*UnitPrototypesRow) GetSpawnTime ¶
func (v *UnitPrototypesRow) GetSpawnTime() uint8
func (*UnitPrototypesRow) SetAirStrength ¶
func (v *UnitPrototypesRow) SetAirStrength(value uint8)
func (*UnitPrototypesRow) SetAttackCooldown ¶
func (v *UnitPrototypesRow) SetAttackCooldown(value uint8)
func (*UnitPrototypesRow) SetAttackRange ¶
func (v *UnitPrototypesRow) SetAttackRange(value uint8)
func (*UnitPrototypesRow) SetComputeCost ¶
func (v *UnitPrototypesRow) SetComputeCost(value uint8)
func (*UnitPrototypesRow) SetHoverStrength ¶
func (v *UnitPrototypesRow) SetHoverStrength(value uint8)
func (*UnitPrototypesRow) SetIsAssault ¶
func (v *UnitPrototypesRow) SetIsAssault(value bool)
func (*UnitPrototypesRow) SetIsConfrontational ¶
func (v *UnitPrototypesRow) SetIsConfrontational(value bool)
func (*UnitPrototypesRow) SetIsPurgeable ¶
func (v *UnitPrototypesRow) SetIsPurgeable(value bool)
func (*UnitPrototypesRow) SetIsWorker ¶
func (v *UnitPrototypesRow) SetIsWorker(value bool)
func (*UnitPrototypesRow) SetLandStrength ¶
func (v *UnitPrototypesRow) SetLandStrength(value uint8)
func (*UnitPrototypesRow) SetLayer ¶
func (v *UnitPrototypesRow) SetLayer(value uint8)
func (*UnitPrototypesRow) SetMaxIntegrity ¶
func (v *UnitPrototypesRow) SetMaxIntegrity(value uint8)
func (*UnitPrototypesRow) SetResourceCost ¶
func (v *UnitPrototypesRow) SetResourceCost(value uint16)
func (*UnitPrototypesRow) SetSpawnTime ¶
func (v *UnitPrototypesRow) SetSpawnTime(value uint8)
type Units ¶
type Units struct {
// contains filtered or unexported fields
}
func NewUnitsFromSlot ¶
func NewUnitsFromSlot(dsSlot lib.DatastoreSlot) *Units
func NewUnitsWithParent ¶
type UnitsRow ¶
type UnitsRow struct {
lib.DatastoreStructWithParent
}
func NewUnitsRow ¶
func NewUnitsRow(dsSlot lib.DatastoreSlot) *UnitsRow
func NewUnitsRowWithParent ¶
func (*UnitsRow) GetCommand ¶
func (*UnitsRow) GetCommandExtra ¶
func (*UnitsRow) GetCommandMeta ¶
func (*UnitsRow) GetIntegrity ¶
func (*UnitsRow) GetIsPreTicked ¶
func (*UnitsRow) GetTimestamp ¶
func (*UnitsRow) GetUnitType ¶
func (*UnitsRow) SetCommand ¶
func (*UnitsRow) SetCommandExtra ¶
func (*UnitsRow) SetCommandMeta ¶
func (*UnitsRow) SetIntegrity ¶
func (*UnitsRow) SetIsPreTicked ¶
func (*UnitsRow) SetTimestamp ¶
func (*UnitsRow) SetUnitType ¶
Click to show internal directories.
Click to hide internal directories.