Documentation
¶
Overview ¶
////////////////////////////////////////////////////////////////////////
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
////////////////////////////////////////////////////////////////////////
This file generated by Entitas-Go generator. PLEASE DO NOT EDIT IT.
Entitas-Go: github.com/Falldot/Entitas-Go
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
////////////////////////////////////////////////////////////////////////
This file generated by Entitas-Go generator. PLEASE DO NOT EDIT IT.
Entitas-Go: github.com/Falldot/Entitas-Go
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
////////////////////////////////////////////////////////////////////////
This file generated by Entitas-Go generator. PLEASE DO NOT EDIT IT.
Entitas-Go: github.com/Falldot/Entitas-Go
////////////////////////////////////////////////////////////////////////
Index ¶
- Constants
- type Cleaner
- type Collector
- type Component
- type Contexts
- type EPhysics2DComponent
- type EScriptComponent
- type ETransform2DComponent
- type EUIDesignComponent
- type Entity
- func (e *Entity) Add(tp int, component Component)
- func (e *Entity) AddEPhysics2D(accely float32, velx float32, vely float32, angularaccel float32, ...)
- func (e *Entity) AddEScript(handle int)
- func (e *Entity) AddETransform2D(x float32, y float32, rotation float32)
- func (e *Entity) AddEUIDesign(name string, flags uint64)
- func (e *Entity) Any(tp ...int) bool
- func (e *Entity) Create(tp int) (Component, bool)
- func (e *Entity) Destroy()
- func (e *Entity) Get(tp int) Component
- func (e *Entity) GetEPhysics2D() *EPhysics2DComponent
- func (e *Entity) GetEScript() *EScriptComponent
- func (e *Entity) GetETransform2D() *ETransform2DComponent
- func (e *Entity) GetEUIDesign() *EUIDesignComponent
- func (e *Entity) Has(tp ...int) bool
- func (e *Entity) ID() int
- func (e *Entity) Off(tp int)
- func (e *Entity) OffEPhysics2D()
- func (e *Entity) OffEScript()
- func (e *Entity) OffETransform2D()
- func (e *Entity) OffEUIDesign()
- func (e *Entity) On(tp int)
- func (e *Entity) OnComponentAdd(action func(*Entity, int, Component))
- func (e *Entity) OnComponentOff(action func(*Entity, int, Component))
- func (e *Entity) OnComponentRemoved(action func(*Entity, int, Component))
- func (e *Entity) OnComponentReplaced(action func(*Entity, int, Component))
- func (e *Entity) OnEPhysics2D()
- func (e *Entity) OnEScript()
- func (e *Entity) OnETransform2D()
- func (e *Entity) OnEUIDesign()
- func (e *Entity) OnEntityDestroy(action func(*Entity))
- func (e *Entity) OnEntityReleased(action func(*Entity))
- func (e *Entity) Remove(tp int)
- func (e *Entity) RemoveEPhysics2D()
- func (e *Entity) RemoveEScript()
- func (e *Entity) RemoveETransform2D()
- func (e *Entity) RemoveEUIDesign()
- func (e *Entity) Replace(tp int, component Component)
- func (e *Entity) ReplaceEPhysics2D(accely float32, velx float32, vely float32, angularaccel float32, ...)
- func (e *Entity) ReplaceEScript(handle int)
- func (e *Entity) ReplaceETransform2D(x float32, y float32, rotation float32)
- func (e *Entity) ReplaceEUIDesign(name string, flags uint64)
- type EntityBase
- type Executer
- type Exiter
- type Group
- type Initer
- type Matcher
- type Reactive
- type Systems
Constants ¶
const ( EUIDesign = iota ETransform2D EPhysics2D EScript //next )
const (
Entitas = iota
)
const EntitasComponentTotal = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contexts ¶
type Contexts []interface{}
func CreateContexts ¶
func CreateContexts() Contexts
func SetContexts ¶
func SetContexts(ebs ...interface{}) Contexts
func (*Contexts) Entitas ¶
func (c *Contexts) Entitas() EntityBase
type EPhysics2DComponent ¶
type EScriptComponent ¶
type EScriptComponent struct {
Handle int
}
type ETransform2DComponent ¶
type EUIDesignComponent ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) AddEPhysics2D ¶
func (*Entity) AddEScript ¶
func (*Entity) AddETransform2D ¶
func (*Entity) AddEUIDesign ¶
func (*Entity) GetEPhysics2D ¶
func (e *Entity) GetEPhysics2D() *EPhysics2DComponent
func (*Entity) GetEScript ¶
func (e *Entity) GetEScript() *EScriptComponent
func (*Entity) GetETransform2D ¶
func (e *Entity) GetETransform2D() *ETransform2DComponent
func (*Entity) GetEUIDesign ¶
func (e *Entity) GetEUIDesign() *EUIDesignComponent
func (*Entity) OffEPhysics2D ¶
func (e *Entity) OffEPhysics2D()
func (*Entity) OffEScript ¶
func (e *Entity) OffEScript()
func (*Entity) OffETransform2D ¶
func (e *Entity) OffETransform2D()
func (*Entity) OffEUIDesign ¶
func (e *Entity) OffEUIDesign()
func (*Entity) OnComponentAdd ¶
func (*Entity) OnComponentOff ¶
func (*Entity) OnComponentRemoved ¶
func (*Entity) OnComponentReplaced ¶
func (*Entity) OnEPhysics2D ¶
func (e *Entity) OnEPhysics2D()
func (*Entity) OnETransform2D ¶
func (e *Entity) OnETransform2D()
func (*Entity) OnEUIDesign ¶
func (e *Entity) OnEUIDesign()
func (*Entity) OnEntityDestroy ¶
func (*Entity) OnEntityReleased ¶
func (*Entity) RemoveEPhysics2D ¶
func (e *Entity) RemoveEPhysics2D()
func (*Entity) RemoveEScript ¶
func (e *Entity) RemoveEScript()
func (*Entity) RemoveETransform2D ¶
func (e *Entity) RemoveETransform2D()
func (*Entity) RemoveEUIDesign ¶
func (e *Entity) RemoveEUIDesign()
func (*Entity) ReplaceEPhysics2D ¶
func (*Entity) ReplaceEScript ¶
func (*Entity) ReplaceETransform2D ¶
func (*Entity) ReplaceEUIDesign ¶
type EntityBase ¶
type EntityBase interface {
CreateEntity() *Entity
Group(Matcher) Group
Collector(Matcher) Collector
OnGroupCreated(func(Group))
OnEntityCreated(func(*Entity))
OnEntityWillBeDestroyed(func(*Entity))
OnEntityDestroyed(func(*Entity))
// contains filtered or unexported methods
}
func CreateEntityBase ¶
func CreateEntityBase(componentTotal int) EntityBase
type Matcher ¶
type Matcher interface {
/////////////////////////////////////////////////////
//Public:
AllOf(indices ...int) Matcher
AnyOf(indices ...int) Matcher
NoneOf(indices ...int) Matcher
// contains filtered or unexported methods
}
func NewMatcher ¶
func NewMatcher() Matcher