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