Documentation ¶
Index ¶
- Constants
- func CreateTest(builder *flatbuffers.Builder, a int16, b int8) flatbuffers.UOffsetT
- func CreateVec3(builder *flatbuffers.Builder, x float32, y float32, z float32, test1 float64, ...) flatbuffers.UOffsetT
- func MonsterAddColor(builder *flatbuffers.Builder, color int8)
- func MonsterAddEnemy(builder *flatbuffers.Builder, enemy flatbuffers.UOffsetT)
- func MonsterAddHp(builder *flatbuffers.Builder, hp int16)
- func MonsterAddInventory(builder *flatbuffers.Builder, inventory flatbuffers.UOffsetT)
- func MonsterAddMana(builder *flatbuffers.Builder, mana int16)
- func MonsterAddName(builder *flatbuffers.Builder, name flatbuffers.UOffsetT)
- func MonsterAddPos(builder *flatbuffers.Builder, pos flatbuffers.UOffsetT)
- func MonsterAddTest(builder *flatbuffers.Builder, test flatbuffers.UOffsetT)
- func MonsterAddTest4(builder *flatbuffers.Builder, test4 flatbuffers.UOffsetT)
- func MonsterAddTestType(builder *flatbuffers.Builder, testType byte)
- func MonsterAddTestarrayofstring(builder *flatbuffers.Builder, testarrayofstring flatbuffers.UOffsetT)
- func MonsterAddTestarrayoftables(builder *flatbuffers.Builder, testarrayoftables flatbuffers.UOffsetT)
- func MonsterAddTestbool(builder *flatbuffers.Builder, testbool byte)
- func MonsterAddTestempty(builder *flatbuffers.Builder, testempty flatbuffers.UOffsetT)
- func MonsterAddTesthashs32Fnv1(builder *flatbuffers.Builder, testhashs32Fnv1 int32)
- func MonsterAddTesthashs32Fnv1a(builder *flatbuffers.Builder, testhashs32Fnv1a int32)
- func MonsterAddTesthashs64Fnv1(builder *flatbuffers.Builder, testhashs64Fnv1 int64)
- func MonsterAddTesthashs64Fnv1a(builder *flatbuffers.Builder, testhashs64Fnv1a int64)
- func MonsterAddTesthashu32Fnv1(builder *flatbuffers.Builder, testhashu32Fnv1 uint32)
- func MonsterAddTesthashu32Fnv1a(builder *flatbuffers.Builder, testhashu32Fnv1a uint32)
- func MonsterAddTesthashu64Fnv1(builder *flatbuffers.Builder, testhashu64Fnv1 uint64)
- func MonsterAddTesthashu64Fnv1a(builder *flatbuffers.Builder, testhashu64Fnv1a uint64)
- func MonsterAddTestnestedflatbuffer(builder *flatbuffers.Builder, testnestedflatbuffer flatbuffers.UOffsetT)
- func MonsterEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func MonsterStart(builder *flatbuffers.Builder)
- func MonsterStartInventoryVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- func MonsterStartTest4Vector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- func MonsterStartTestarrayofstringVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- func MonsterStartTestarrayoftablesVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- func MonsterStartTestnestedflatbufferVector(builder *flatbuffers.Builder, numElems int) flatbuffers.UOffsetT
- func StatAddCount(builder *flatbuffers.Builder, count uint16)
- func StatAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT)
- func StatAddVal(builder *flatbuffers.Builder, val int64)
- func StatEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
- func StatStart(builder *flatbuffers.Builder)
- type Monster
- func (rcv *Monster) Color() int8
- func (rcv *Monster) Enemy(obj *Monster) *Monster
- func (rcv *Monster) Hp() int16
- func (rcv *Monster) Init(buf []byte, i flatbuffers.UOffsetT)
- func (rcv *Monster) Inventory(j int) byte
- func (rcv *Monster) InventoryLength() int
- func (rcv *Monster) Mana() int16
- func (rcv *Monster) Name() string
- func (rcv *Monster) Pos(obj *Vec3) *Vec3
- func (rcv *Monster) Test(obj *flatbuffers.Table) bool
- func (rcv *Monster) Test4(obj *Test, j int) bool
- func (rcv *Monster) Test4Length() int
- func (rcv *Monster) TestType() byte
- func (rcv *Monster) Testarrayofstring(j int) string
- func (rcv *Monster) TestarrayofstringLength() int
- func (rcv *Monster) Testarrayoftables(obj *Monster, j int) bool
- func (rcv *Monster) TestarrayoftablesLength() int
- func (rcv *Monster) Testbool() byte
- func (rcv *Monster) Testempty(obj *Stat) *Stat
- func (rcv *Monster) Testhashs32Fnv1() int32
- func (rcv *Monster) Testhashs32Fnv1a() int32
- func (rcv *Monster) Testhashs64Fnv1() int64
- func (rcv *Monster) Testhashs64Fnv1a() int64
- func (rcv *Monster) Testhashu32Fnv1() uint32
- func (rcv *Monster) Testhashu32Fnv1a() uint32
- func (rcv *Monster) Testhashu64Fnv1() uint64
- func (rcv *Monster) Testhashu64Fnv1a() uint64
- func (rcv *Monster) Testnestedflatbuffer(j int) byte
- func (rcv *Monster) TestnestedflatbufferLength() int
- type Stat
- type Test
- type Vec3
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 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 MonsterAddTestbool ¶ added in v1.1.0
func MonsterAddTestbool(builder *flatbuffers.Builder, testbool byte)
func MonsterAddTestempty ¶ added in v1.0.3
func MonsterAddTestempty(builder *flatbuffers.Builder, testempty flatbuffers.UOffsetT)
func MonsterAddTesthashs32Fnv1 ¶ added in v1.1.0
func MonsterAddTesthashs32Fnv1(builder *flatbuffers.Builder, testhashs32Fnv1 int32)
func MonsterAddTesthashs32Fnv1a ¶ added in v1.1.0
func MonsterAddTesthashs32Fnv1a(builder *flatbuffers.Builder, testhashs32Fnv1a int32)
func MonsterAddTesthashs64Fnv1 ¶ added in v1.1.0
func MonsterAddTesthashs64Fnv1(builder *flatbuffers.Builder, testhashs64Fnv1 int64)
func MonsterAddTesthashs64Fnv1a ¶ added in v1.1.0
func MonsterAddTesthashs64Fnv1a(builder *flatbuffers.Builder, testhashs64Fnv1a int64)
func MonsterAddTesthashu32Fnv1 ¶ added in v1.1.0
func MonsterAddTesthashu32Fnv1(builder *flatbuffers.Builder, testhashu32Fnv1 uint32)
func MonsterAddTesthashu32Fnv1a ¶ added in v1.1.0
func MonsterAddTesthashu32Fnv1a(builder *flatbuffers.Builder, testhashu32Fnv1a uint32)
func MonsterAddTesthashu64Fnv1 ¶ added in v1.1.0
func MonsterAddTesthashu64Fnv1(builder *flatbuffers.Builder, testhashu64Fnv1 uint64)
func MonsterAddTesthashu64Fnv1a ¶ added in v1.1.0
func MonsterAddTesthashu64Fnv1a(builder *flatbuffers.Builder, testhashu64Fnv1a uint64)
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
func StatAddCount ¶ added in v1.1.0
func StatAddCount(builder *flatbuffers.Builder, count uint16)
func StatAddId ¶ added in v1.0.3
func StatAddId(builder *flatbuffers.Builder, id flatbuffers.UOffsetT)
func StatAddVal ¶ added in v1.0.3
func StatAddVal(builder *flatbuffers.Builder, val int64)
func StatEnd ¶ added in v1.0.3
func StatEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT
func StatStart ¶ added in v1.0.3
func StatStart(builder *flatbuffers.Builder)
Types ¶
type Monster ¶
type Monster struct {
// contains filtered or unexported fields
}
func GetRootAsMonster ¶
func GetRootAsMonster(buf []byte, offset flatbuffers.UOffsetT) *Monster
func (*Monster) InventoryLength ¶
func (*Monster) Test4Length ¶
func (*Monster) Testarrayofstring ¶
func (*Monster) TestarrayofstringLength ¶
func (*Monster) Testarrayoftables ¶
/ an example documentation comment: this will end up in the generated code / multiline too
func (*Monster) TestarrayoftablesLength ¶
func (*Monster) Testhashs32Fnv1 ¶ added in v1.1.0
func (*Monster) Testhashs32Fnv1a ¶ added in v1.1.0
func (*Monster) Testhashs64Fnv1 ¶ added in v1.1.0
func (*Monster) Testhashs64Fnv1a ¶ added in v1.1.0
func (*Monster) Testhashu32Fnv1 ¶ added in v1.1.0
func (*Monster) Testhashu32Fnv1a ¶ added in v1.1.0
func (*Monster) Testhashu64Fnv1 ¶ added in v1.1.0
func (*Monster) Testhashu64Fnv1a ¶ added in v1.1.0
func (*Monster) Testnestedflatbuffer ¶
func (*Monster) TestnestedflatbufferLength ¶
Click to show internal directories.
Click to hide internal directories.