entitiy

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

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

func New

func New(components ...interface{}) *Entity

func (*Entity) Add

func (ent *Entity) Add(component interface{}) *Entity

func (Entity) Contains

func (ent Entity) Contains(rtypes ...reflect.Type) bool

func (Entity) Get

func (ent Entity) Get(rtype reflect.Type) interface{}

func (*Entity) Set

func (ent *Entity) Set(component interface{}) *Entity

func (*Entity) String

func (ent *Entity) String() string

Jump to

Keyboard shortcuts

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