Documentation ¶
Index ¶
- Variables
- func BulletAddPosition(builder *flatbuffers.Builder, position flatbuffers.UOffsetT)
- func BulletAddVelocity(builder *flatbuffers.Builder, velocity flatbuffers.UOffsetT)
- func BulletEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func BulletStart(builder *flatbuffers.Builder)
- func CreateVector(builder *flatbuffers.Builder, x float32, y float32) flatbuffers.UOffsetT
- func DeathAddAlive(builder *flatbuffers.Builder, alive uint64)
- func DeathEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func DeathStart(builder *flatbuffers.Builder)
- func EntityAddId(builder *flatbuffers.Builder, id uint64)
- func EntityAddSnapshot(builder *flatbuffers.Builder, snapshot flatbuffers.UOffsetT)
- func EntityAddSnapshotType(builder *flatbuffers.Builder, snapshotType byte)
- func EntityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func EntityStart(builder *flatbuffers.Builder)
- func MessageAddPacket(builder *flatbuffers.Builder, packet flatbuffers.UOffsetT)
- func MessageAddPacketType(builder *flatbuffers.Builder, packetType byte)
- func MessageEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func MessageStart(builder *flatbuffers.Builder)
- func PerceptionAddEntities(builder *flatbuffers.Builder, entities flatbuffers.UOffsetT)
- func PerceptionAddTimestamp(builder *flatbuffers.Builder, timestamp int64)
- func PerceptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func PerceptionStart(builder *flatbuffers.Builder)
- func PerceptionStartEntitiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- func PongAddTimestamp(builder *flatbuffers.Builder, timestamp int64)
- func PongEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func PongStart(builder *flatbuffers.Builder)
- func ServerSettingsAddWorldRadius(builder *flatbuffers.Builder, worldRadius float64)
- func ServerSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func ServerSettingsStart(builder *flatbuffers.Builder)
- func ShipAddAngle(builder *flatbuffers.Builder, angle float32)
- func ShipAddAngularVelocity(builder *flatbuffers.Builder, angularVelocity float32)
- func ShipAddArmed(builder *flatbuffers.Builder, armed bool)
- func ShipAddHealth(builder *flatbuffers.Builder, health int16)
- func ShipAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)
- func ShipAddPosition(builder *flatbuffers.Builder, position flatbuffers.UOffsetT)
- func ShipAddThrusting(builder *flatbuffers.Builder, thrusting bool)
- func ShipAddVelocity(builder *flatbuffers.Builder, velocity flatbuffers.UOffsetT)
- func ShipEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func ShipStart(builder *flatbuffers.Builder)
- func SpawnAddId(builder *flatbuffers.Builder, id uint64)
- func SpawnEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func SpawnStart(builder *flatbuffers.Builder)
- type Bullet
- type Death
- type Entity
- func (rcv *Entity) Id() uint64
- func (rcv *Entity) Init(buf []byte, i flatbuffers.UOffsetT)
- func (rcv *Entity) MutateId(n uint64) bool
- func (rcv *Entity) MutateSnapshotType(n byte) bool
- func (rcv *Entity) Snapshot(obj *flatbuffers.Table) bool
- func (rcv *Entity) SnapshotType() byte
- func (rcv *Entity) Table() flatbuffers.Table
- type Message
- type Packet
- type Perception
- func (rcv *Perception) Entities(obj *Entity, j int) bool
- func (rcv *Perception) EntitiesLength() int
- func (rcv *Perception) Init(buf []byte, i flatbuffers.UOffsetT)
- func (rcv *Perception) MutateTimestamp(n int64) bool
- func (rcv *Perception) Table() flatbuffers.Table
- func (rcv *Perception) Timestamp() int64
- type Pong
- type ServerSettings
- type Ship
- func (rcv *Ship) Angle() float32
- func (rcv *Ship) AngularVelocity() float32
- func (rcv *Ship) Armed() bool
- func (rcv *Ship) Health() int16
- func (rcv *Ship) Init(buf []byte, i flatbuffers.UOffsetT)
- func (rcv *Ship) MutateAngle(n float32) bool
- func (rcv *Ship) MutateAngularVelocity(n float32) bool
- func (rcv *Ship) MutateArmed(n bool) bool
- func (rcv *Ship) MutateHealth(n int16) bool
- func (rcv *Ship) MutateThrusting(n bool) bool
- func (rcv *Ship) Name() []byte
- func (rcv *Ship) Position(obj *Vector) *Vector
- func (rcv *Ship) Table() flatbuffers.Table
- func (rcv *Ship) Thrusting() bool
- func (rcv *Ship) Velocity(obj *Vector) *Vector
- type Snapshot
- type Spawn
- type Vector
Constants ¶
This section is empty.
Variables ¶
View Source
var EnumNamesPacket = map[Packet]string{ PacketNONE: "NONE", PacketServerSettings: "ServerSettings", PacketSpawn: "Spawn", PacketPerception: "Perception", PacketDeath: "Death", }
View Source
var EnumNamesSnapshot = map[Snapshot]string{ SnapshotNONE: "NONE", SnapshotShip: "Ship", SnapshotBullet: "Bullet", }
Functions ¶
func BulletAddPosition ¶
func BulletAddPosition(builder *flatbuffers.Builder, position flatbuffers.UOffsetT)
func BulletAddVelocity ¶
func BulletAddVelocity(builder *flatbuffers.Builder, velocity flatbuffers.UOffsetT)
func BulletEnd ¶
func BulletEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func BulletStart ¶
func BulletStart(builder *flatbuffers.Builder)
func CreateVector ¶
func CreateVector(builder *flatbuffers.Builder, x float32, y float32) flatbuffers.UOffsetT
func DeathAddAlive ¶
func DeathAddAlive(builder *flatbuffers.Builder, alive uint64)
func DeathEnd ¶
func DeathEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func DeathStart ¶
func DeathStart(builder *flatbuffers.Builder)
func EntityAddId ¶
func EntityAddId(builder *flatbuffers.Builder, id uint64)
func EntityAddSnapshot ¶
func EntityAddSnapshot(builder *flatbuffers.Builder, snapshot flatbuffers.UOffsetT)
func EntityAddSnapshotType ¶
func EntityAddSnapshotType(builder *flatbuffers.Builder, snapshotType byte)
func EntityEnd ¶
func EntityEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func EntityStart ¶
func EntityStart(builder *flatbuffers.Builder)
func MessageAddPacket ¶
func MessageAddPacket(builder *flatbuffers.Builder, packet flatbuffers.UOffsetT)
func MessageAddPacketType ¶
func MessageAddPacketType(builder *flatbuffers.Builder, packetType byte)
func MessageEnd ¶
func MessageEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func MessageStart ¶
func MessageStart(builder *flatbuffers.Builder)
func PerceptionAddEntities ¶
func PerceptionAddEntities(builder *flatbuffers.Builder, entities flatbuffers.UOffsetT)
func PerceptionAddTimestamp ¶
func PerceptionAddTimestamp(builder *flatbuffers.Builder, timestamp int64)
func PerceptionEnd ¶
func PerceptionEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func PerceptionStart ¶
func PerceptionStart(builder *flatbuffers.Builder)
func PerceptionStartEntitiesVector ¶
func PerceptionStartEntitiesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
func PongAddTimestamp ¶
func PongAddTimestamp(builder *flatbuffers.Builder, timestamp int64)
func PongEnd ¶
func PongEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func PongStart ¶
func PongStart(builder *flatbuffers.Builder)
func ServerSettingsAddWorldRadius ¶
func ServerSettingsAddWorldRadius(builder *flatbuffers.Builder, worldRadius float64)
func ServerSettingsEnd ¶
func ServerSettingsEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func ServerSettingsStart ¶
func ServerSettingsStart(builder *flatbuffers.Builder)
func ShipAddAngle ¶
func ShipAddAngle(builder *flatbuffers.Builder, angle float32)
func ShipAddAngularVelocity ¶
func ShipAddAngularVelocity(builder *flatbuffers.Builder, angularVelocity float32)
func ShipAddArmed ¶
func ShipAddArmed(builder *flatbuffers.Builder, armed bool)
func ShipAddHealth ¶
func ShipAddHealth(builder *flatbuffers.Builder, health int16)
func ShipAddName ¶
func ShipAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)
func ShipAddPosition ¶
func ShipAddPosition(builder *flatbuffers.Builder, position flatbuffers.UOffsetT)
func ShipAddThrusting ¶
func ShipAddThrusting(builder *flatbuffers.Builder, thrusting bool)
func ShipAddVelocity ¶
func ShipAddVelocity(builder *flatbuffers.Builder, velocity flatbuffers.UOffsetT)
func ShipEnd ¶
func ShipEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func ShipStart ¶
func ShipStart(builder *flatbuffers.Builder)
func SpawnAddId ¶
func SpawnAddId(builder *flatbuffers.Builder, id uint64)
func SpawnEnd ¶
func SpawnEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func SpawnStart ¶
func SpawnStart(builder *flatbuffers.Builder)
Types ¶
type Bullet ¶
type Bullet struct {
// contains filtered or unexported fields
}
func GetRootAsBullet ¶
func GetRootAsBullet(buf []byte, offset flatbuffers.UOffsetT) *Bullet
func (*Bullet) Table ¶
func (rcv *Bullet) Table() flatbuffers.Table
type Death ¶
type Death struct {
// contains filtered or unexported fields
}
func GetRootAsDeath ¶
func GetRootAsDeath(buf []byte, offset flatbuffers.UOffsetT) *Death
func (*Death) MutateAlive ¶
func (*Death) Table ¶
func (rcv *Death) Table() flatbuffers.Table
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func GetRootAsEntity ¶
func GetRootAsEntity(buf []byte, offset flatbuffers.UOffsetT) *Entity
func (*Entity) MutateSnapshotType ¶
func (*Entity) SnapshotType ¶
func (*Entity) Table ¶
func (rcv *Entity) Table() flatbuffers.Table
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
func GetRootAsMessage ¶
func GetRootAsMessage(buf []byte, offset flatbuffers.UOffsetT) *Message
func (*Message) MutatePacketType ¶
func (*Message) PacketType ¶
func (*Message) Table ¶
func (rcv *Message) Table() flatbuffers.Table
type Perception ¶
type Perception struct {
// contains filtered or unexported fields
}
func GetRootAsPerception ¶
func GetRootAsPerception(buf []byte, offset flatbuffers.UOffsetT) *Perception
func (*Perception) EntitiesLength ¶
func (rcv *Perception) EntitiesLength() int
func (*Perception) Init ¶
func (rcv *Perception) Init(buf []byte, i flatbuffers.UOffsetT)
func (*Perception) MutateTimestamp ¶
func (rcv *Perception) MutateTimestamp(n int64) bool
func (*Perception) Table ¶
func (rcv *Perception) Table() flatbuffers.Table
func (*Perception) Timestamp ¶
func (rcv *Perception) Timestamp() int64
type Pong ¶
type Pong struct {
// contains filtered or unexported fields
}
func GetRootAsPong ¶
func GetRootAsPong(buf []byte, offset flatbuffers.UOffsetT) *Pong
func (*Pong) MutateTimestamp ¶
func (*Pong) Table ¶
func (rcv *Pong) Table() flatbuffers.Table
type ServerSettings ¶
type ServerSettings struct {
// contains filtered or unexported fields
}
func GetRootAsServerSettings ¶
func GetRootAsServerSettings(buf []byte, offset flatbuffers.UOffsetT) *ServerSettings
func (*ServerSettings) Init ¶
func (rcv *ServerSettings) Init(buf []byte, i flatbuffers.UOffsetT)
func (*ServerSettings) MutateWorldRadius ¶
func (rcv *ServerSettings) MutateWorldRadius(n float64) bool
func (*ServerSettings) Table ¶
func (rcv *ServerSettings) Table() flatbuffers.Table
func (*ServerSettings) WorldRadius ¶
func (rcv *ServerSettings) WorldRadius() float64
type Ship ¶
type Ship struct {
// contains filtered or unexported fields
}
func GetRootAsShip ¶
func GetRootAsShip(buf []byte, offset flatbuffers.UOffsetT) *Ship
func (*Ship) AngularVelocity ¶
func (*Ship) MutateAngle ¶
func (*Ship) MutateAngularVelocity ¶
func (*Ship) MutateArmed ¶
func (*Ship) MutateHealth ¶
func (*Ship) MutateThrusting ¶
func (*Ship) Table ¶
func (rcv *Ship) Table() flatbuffers.Table
type Spawn ¶
type Spawn struct {
// contains filtered or unexported fields
}
func GetRootAsSpawn ¶
func GetRootAsSpawn(buf []byte, offset flatbuffers.UOffsetT) *Spawn
func (*Spawn) Table ¶
func (rcv *Spawn) Table() flatbuffers.Table
Click to show internal directories.
Click to hide internal directories.