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

Method AppendChild

entity.go:69–72  ·  view source on GitHub ↗

AppendChild appends a child to the BasicEntity

(child *BasicEntity)

Source from the content-addressed store, hash-verified

67
68// AppendChild appends a child to the BasicEntity
69func (e *BasicEntity) AppendChild(child *BasicEntity) {
70 child.parent = e
71 e.children = append(e.children, child)
72}
73
74func (e *BasicEntity) RemoveChild(child *BasicEntity) {
75 delete := -1

Callers 3

TestParentChildFunction · 0.80
TestRemoveChildFunction · 0.80
TestDescendentsFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestParentChildFunction · 0.64
TestRemoveChildFunction · 0.64
TestDescendentsFunction · 0.64