Example

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2014 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnyNONE    = 0
	AnyMonster = 1
)
View Source
const (
	ColorRed   = 1
	ColorGreen = 2
	ColorBlue  = 8
)

Variables

This section is empty.

Functions

func CreateTest

func CreateTest(builder *flatbuffers.Builder, a int16, b int8) flatbuffers.UOffsetT

func CreateVec3

func CreateVec3(builder *flatbuffers.Builder, x float32, y float32, z float32, test1 float64, test2 int8, Test_a int16, Test_b int8) flatbuffers.UOffsetT

func MonsterAddColor

func MonsterAddColor(builder *flatbuffers.Builder, color int8)

func MonsterAddEnemy

func MonsterAddEnemy(builder *flatbuffers.Builder, enemy flatbuffers.UOffsetT)

func MonsterAddHp

func MonsterAddHp(builder *flatbuffers.Builder, hp int16)

func MonsterAddInventory

func MonsterAddInventory(builder *flatbuffers.Builder, inventory flatbuffers.UOffsetT)

func MonsterAddMana

func MonsterAddMana(builder *flatbuffers.Builder, mana int16)

func MonsterAddName

func MonsterAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)

func MonsterAddPos

func MonsterAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT)

func MonsterAddTest

func MonsterAddTest(builder *flatbuffers.Builder, test flatbuffers.UOffsetT)

func MonsterAddTest4

func MonsterAddTest4(builder *flatbuffers.Builder, test4 flatbuffers.UOffsetT)

func MonsterAddTestType

func MonsterAddTestType(builder *flatbuffers.Builder, testType byte)

func MonsterAddTestarrayofstring

func MonsterAddTestarrayofstring(builder *flatbuffers.Builder, testarrayofstring flatbuffers.UOffsetT)

func MonsterAddTestarrayoftables

func MonsterAddTestarrayoftables(builder *flatbuffers.Builder, testarrayoftables flatbuffers.UOffsetT)

func MonsterAddTestnestedflatbuffer

func MonsterAddTestnestedflatbuffer(builder *flatbuffers.Builder, testnestedflatbuffer flatbuffers.UOffsetT)

func MonsterEnd

func MonsterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT

func MonsterStart

func MonsterStart(builder *flatbuffers.Builder)

func MonsterStartInventoryVector

func MonsterStartInventoryVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func MonsterStartTest4Vector

func MonsterStartTest4Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func MonsterStartTestarrayofstringVector

func MonsterStartTestarrayofstringVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func MonsterStartTestarrayoftablesVector

func MonsterStartTestarrayoftablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

func MonsterStartTestnestedflatbufferVector

func MonsterStartTestnestedflatbufferVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT

Types

type Monster

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

func GetRootAsMonster

func GetRootAsMonster(buf []byte, offset flatbuffers.UOffsetT) *Monster

func (*Monster) Color

func (rcv *Monster) Color() int8

func (*Monster) Enemy

func (rcv *Monster) Enemy(obj *Monster) *Monster

func (*Monster) Hp

func (rcv *Monster) Hp() int16

func (*Monster) Init

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

func (*Monster) Inventory

func (rcv *Monster) Inventory(j int) byte

func (*Monster) InventoryLength

func (rcv *Monster) InventoryLength() int

func (*Monster) Mana

func (rcv *Monster) Mana() int16

func (*Monster) Name

func (rcv *Monster) Name() string

func (*Monster) Pos

func (rcv *Monster) Pos(obj *Vec3) *Vec3

func (*Monster) Test

func (rcv *Monster) Test(obj *flatbuffers.Table) bool

func (*Monster) Test4

func (rcv *Monster) Test4(obj *Test, j int) bool

func (*Monster) Test4Length

func (rcv *Monster) Test4Length() int

func (*Monster) TestType

func (rcv *Monster) TestType() byte

func (*Monster) Testarrayofstring

func (rcv *Monster) Testarrayofstring(j int) string

func (*Monster) TestarrayofstringLength

func (rcv *Monster) TestarrayofstringLength() int

func (*Monster) Testarrayoftables

func (rcv *Monster) Testarrayoftables(obj *Monster, j int) bool

/ an example documentation comment: this will end up in the generated code multiline too

func (*Monster) TestarrayoftablesLength

func (rcv *Monster) TestarrayoftablesLength() int

func (*Monster) Testnestedflatbuffer

func (rcv *Monster) Testnestedflatbuffer(j int) byte

func (*Monster) TestnestedflatbufferLength

func (rcv *Monster) TestnestedflatbufferLength() int

type Test

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

func (*Test) A

func (rcv *Test) A() int16

func (*Test) B

func (rcv *Test) B() int8

func (*Test) Init

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

type Vec3

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

func (*Vec3) Init

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

func (*Vec3) Test1

func (rcv *Vec3) Test1() float64

func (*Vec3) Test2

func (rcv *Vec3) Test2() int8

func (*Vec3) Test3

func (rcv *Vec3) Test3(obj *Test) *Test

func (*Vec3) X

func (rcv *Vec3) X() float32

func (*Vec3) Y

func (rcv *Vec3) Y() float32

func (*Vec3) Z

func (rcv *Vec3) Z() float32

Jump to

Keyboard shortcuts

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