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

Method Add

entity_test.go:32–34  ·  view source on GitHub ↗
(e *BasicEntity, c1 *MyComponent1)

Source from the content-addressed store, hash-verified

30}
31func (*MySystemOne) Remove(e BasicEntity) {}
32func (sys *MySystemOne) Add(e *BasicEntity, c1 *MyComponent1) {
33 sys.entities = append(sys.entities, MySystemOneEntity{e, c1})
34}
35func (sys *MySystemOne) AddByInterface(o Identifier) {
36 obj := o.(MySystemOneable)
37 sys.Add(obj.GetBasicEntity(), obj.GetMyComponent1())

Callers 2

AddByInterfaceMethod · 0.95
TestChangeableComponentsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected