Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DestroyComp ¶ added in v0.14.0
func DestroyComp[T Comp](e *CompContainer)
DestroyComp calls Destroy on the component and then removes it from the entities component list
func GetComp ¶
func GetComp[T Comp](e *CompContainer) (out T)
func HasComp ¶ added in v0.14.0
func HasComp[T Comp](e *CompContainer) bool
Types ¶
type CompContainer ¶ added in v0.18.0
type CompContainer struct {
Comps []Comp
}
func NewCompContainer ¶ added in v0.18.0
func NewCompContainer() CompContainer
Click to show internal directories.
Click to hide internal directories.