Documentation ¶
Overview ¶
Package entity contains the objects to manage the Entity objects in a ECS
Index ¶
- type Entity
- func (ent *Entity) Add(component interface{}) *Entity
- func (ent Entity) Contains(rtypes ...reflect.Type) bool
- func (ent Entity) Get(rtype reflect.Type) interface{}
- func (ent Entity) ID() int64
- func (ent Entity) NotContains(rtypes ...reflect.Type) bool
- func (ent *Entity) Remove(typ reflect.Type)
- func (ent *Entity) Set(component interface{}) *Entity
- func (ent Entity) String() string
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
}
Entity represents a instance of an object in a ECS
func New ¶
func New(components ...interface{}) *Entity
New creates a new Entity giving a set of varg components
func (Entity) NotContains ¶
NotContains check that the Entity has not the given varg reflect.Type
Click to show internal directories.
Click to hide internal directories.