mygame

package
v0.0.0-...-bfb31ba Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func CreateVec3

func CreateVec3(builder *flatbuffers.Builder, x float32, y float32, z float32) flatbuffers.UOffsetT

func MonsterAddColor

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

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 MonsterAddTestType

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

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 WeaponAddName

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

func WeaponAddX

func WeaponAddX(builder *flatbuffers.Builder, x float32)

func WeaponEnd

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

func WeaponStart

func WeaponStart(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) Color

func (rcv *Monster) Color() int8

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

func (rcv *Monster) InventoryBytes() []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) TestType

func (rcv *Monster) TestType() byte

type Vec3

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

func (*Vec3) Init

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

func (*Vec3) X

func (rcv *Vec3) X() float32

func (*Vec3) Y

func (rcv *Vec3) Y() float32

func (*Vec3) Z

func (rcv *Vec3) Z() float32

type Weapon

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

func (*Weapon) Init

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

func (*Weapon) Name

func (rcv *Weapon) Name() string

func (*Weapon) X

func (rcv *Weapon) X() float32

Jump to

Keyboard shortcuts

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