downstream

package
v0.0.0-...-9c16532 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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) Init

func (rcv *Bullet) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Bullet) Position

func (rcv *Bullet) Position(obj *Vector) *Vector

func (*Bullet) Table

func (rcv *Bullet) Table() flatbuffers.Table

func (*Bullet) Velocity

func (rcv *Bullet) Velocity(obj *Vector) *Vector

type Death

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

func GetRootAsDeath

func GetRootAsDeath(buf []byte, offset flatbuffers.UOffsetT) *Death

func (*Death) Alive

func (rcv *Death) Alive() uint64

func (*Death) Init

func (rcv *Death) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Death) MutateAlive

func (rcv *Death) MutateAlive(n uint64) bool

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) Id

func (rcv *Entity) Id() uint64

func (*Entity) Init

func (rcv *Entity) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Entity) MutateId

func (rcv *Entity) MutateId(n uint64) bool

func (*Entity) MutateSnapshotType

func (rcv *Entity) MutateSnapshotType(n byte) bool

func (*Entity) Snapshot

func (rcv *Entity) Snapshot(obj *flatbuffers.Table) bool

func (*Entity) SnapshotType

func (rcv *Entity) SnapshotType() byte

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) Init

func (rcv *Message) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Message) MutatePacketType

func (rcv *Message) MutatePacketType(n byte) bool

func (*Message) Packet

func (rcv *Message) Packet(obj *flatbuffers.Table) bool

func (*Message) PacketType

func (rcv *Message) PacketType() byte

func (*Message) Table

func (rcv *Message) Table() flatbuffers.Table

type Packet

type Packet = byte
const (
	PacketNONE           Packet = 0
	PacketServerSettings Packet = 1
	PacketSpawn          Packet = 2
	PacketPerception     Packet = 3
	PacketDeath          Packet = 4
)

type Perception

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

func GetRootAsPerception

func GetRootAsPerception(buf []byte, offset flatbuffers.UOffsetT) *Perception

func (*Perception) Entities

func (rcv *Perception) Entities(obj *Entity, j int) bool

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) Init

func (rcv *Pong) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Pong) MutateTimestamp

func (rcv *Pong) MutateTimestamp(n int64) bool

func (*Pong) Table

func (rcv *Pong) Table() flatbuffers.Table

func (*Pong) Timestamp

func (rcv *Pong) Timestamp() int64

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) Angle

func (rcv *Ship) Angle() float32

func (*Ship) AngularVelocity

func (rcv *Ship) AngularVelocity() float32

func (*Ship) Armed

func (rcv *Ship) Armed() bool

func (*Ship) Health

func (rcv *Ship) Health() int16

func (*Ship) Init

func (rcv *Ship) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Ship) MutateAngle

func (rcv *Ship) MutateAngle(n float32) bool

func (*Ship) MutateAngularVelocity

func (rcv *Ship) MutateAngularVelocity(n float32) bool

func (*Ship) MutateArmed

func (rcv *Ship) MutateArmed(n bool) bool

func (*Ship) MutateHealth

func (rcv *Ship) MutateHealth(n int16) bool

func (*Ship) MutateThrusting

func (rcv *Ship) MutateThrusting(n bool) bool

func (*Ship) Name

func (rcv *Ship) Name() []byte

func (*Ship) Position

func (rcv *Ship) Position(obj *Vector) *Vector

func (*Ship) Table

func (rcv *Ship) Table() flatbuffers.Table

func (*Ship) Thrusting

func (rcv *Ship) Thrusting() bool

func (*Ship) Velocity

func (rcv *Ship) Velocity(obj *Vector) *Vector

type Snapshot

type Snapshot = byte
const (
	SnapshotNONE   Snapshot = 0
	SnapshotShip   Snapshot = 1
	SnapshotBullet Snapshot = 2
)

type Spawn

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

func GetRootAsSpawn

func GetRootAsSpawn(buf []byte, offset flatbuffers.UOffsetT) *Spawn

func (*Spawn) Id

func (rcv *Spawn) Id() uint64

func (*Spawn) Init

func (rcv *Spawn) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Spawn) MutateId

func (rcv *Spawn) MutateId(n uint64) bool

func (*Spawn) Table

func (rcv *Spawn) Table() flatbuffers.Table

type Vector

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

func (*Vector) Init

func (rcv *Vector) Init(buf []byte, i flatbuffers.UOffsetT)

func (*Vector) MutateX

func (rcv *Vector) MutateX(n float32) bool

func (*Vector) MutateY

func (rcv *Vector) MutateY(n float32) bool

func (*Vector) Table

func (rcv *Vector) Table() flatbuffers.Table

func (*Vector) X

func (rcv *Vector) X() float32

func (*Vector) Y

func (rcv *Vector) Y() float32

Jump to

Keyboard shortcuts

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