Documentation
¶
Index ¶
- type Attributes
- func (a *Attributes) GetAttribute(name interface{}) (value interface{}, exists bool)
- func (a *Attributes) GetBool(name interface{}) bool
- func (a *Attributes) GetFloat64(name interface{}) float64
- func (a *Attributes) GetInt(name interface{}) int
- func (a *Attributes) GetString(name interface{}) string
- func (a *Attributes) GetUint8(name interface{}) uint8
- func (a *Attributes) GetUint32(name interface{}) uint32
- func (a *Attributes) GetUint64(name interface{}) uint64
- func (a *Attributes) RemoveAttribute(name interface{})
- func (a *Attributes) SetAttribute(name, value interface{})
- func (a *Attributes) UpdateAttribute(name, f func(interface{}) interface{})
- type Game
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Attributes struct {
// contains filtered or unexported fields
}
Attributes contains different mutable attributes
func (*Attributes) GetAttribute ¶
func (a *Attributes) GetAttribute(name interface{}) (value interface{}, exists bool)
GetAttribute return raw attribute
func (*Attributes) GetBool ¶
func (a *Attributes) GetBool(name interface{}) bool
GetBool get attribute and cast to bool
func (*Attributes) GetFloat64 ¶
func (a *Attributes) GetFloat64(name interface{}) float64
GetFloat64 get attribute and cast to float64
func (*Attributes) GetInt ¶
func (a *Attributes) GetInt(name interface{}) int
GetInt get attribute and cast to int
func (*Attributes) GetString ¶
func (a *Attributes) GetString(name interface{}) string
GetString get attribute and cast to string
func (*Attributes) GetUint8 ¶
func (a *Attributes) GetUint8(name interface{}) uint8
GetUint8 get attribute and cast to uint8
func (*Attributes) GetUint32 ¶
func (a *Attributes) GetUint32(name interface{}) uint32
GetUint32 get attribute and cast to uint32
func (*Attributes) GetUint64 ¶
func (a *Attributes) GetUint64(name interface{}) uint64
GetUint64 get attribute and cast to uint64
func (*Attributes) RemoveAttribute ¶
func (a *Attributes) RemoveAttribute(name interface{})
RemoveAttribute remove given attribute
func (*Attributes) SetAttribute ¶
func (a *Attributes) SetAttribute(name, value interface{})
SetAttribute set attribute
func (*Attributes) UpdateAttribute ¶
func (a *Attributes) UpdateAttribute(name, f func(interface{}) interface{})
UpdateAttribute update attribute
type Player ¶
type Player interface {
ecs.Entity
communications.Communication
}
Player describe player entity
Click to show internal directories.
Click to hide internal directories.