Documentation ¶
Overview ¶
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Copyright (c) 2021 Vladislav Fedotov (Falldot) License: MIT License MIT License web page: https://opensource.org/licenses/MIT
Index ¶
- type Cleaner
- type Collector
- type Component
- type Contexts
- type Entity
- func (e *Entity) Add(tp int, component Component)
- 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) Has(tp ...int) bool
- func (e *Entity) ID() int
- func (e *Entity) Off(tp int)
- 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) OnEntityDestroy(action func(*Entity))
- func (e *Entity) OnEntityReleased(action func(*Entity))
- func (e *Entity) Remove(tp int)
- func (e *Entity) Replace(tp int, component Component)
- type EntityBase
- type Executer
- type Exiter
- type Group
- type Initer
- type Matcher
- type Reactive
- type Systems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contexts ¶
type Contexts []interface{}
func SetContexts ¶
func SetContexts(ebs ...interface{}) Contexts
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) OnComponentAdd ¶
func (*Entity) OnComponentOff ¶
func (*Entity) OnComponentRemoved ¶
func (*Entity) OnComponentReplaced ¶
func (*Entity) OnEntityDestroy ¶
func (*Entity) OnEntityReleased ¶
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