MCPcopy Create free account
hub / github.com/EngoEngine/ecs / Children

Method Children

entity.go:88–94  ·  view source on GitHub ↗

Children returns the children of the BasicEntity

()

Source from the content-addressed store, hash-verified

86
87// Children returns the children of the BasicEntity
88func (e *BasicEntity) Children() []BasicEntity {
89 ret := []BasicEntity{}
90 for _, child := range e.children {
91 ret = append(ret, *child)
92 }
93 return ret
94}
95
96// var visited map[uint64]struct{}
97// var descs []*BasicEntity

Callers 2

TestParentChildFunction · 0.80
TestRemoveChildFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestParentChildFunction · 0.64
TestRemoveChildFunction · 0.64