engine

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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 NewAttributes

func NewAttributes() *Attributes

NewAttributes return new 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 Game

type Game interface {
	Initialize() error
	Tick(ctx context.Context)
}

Game describe game object

type Player

type Player interface {
	ecs.Entity
	communications.Communication
}

Player describe player entity

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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