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

Method Add

entity_test.go:123–125  ·  view source on GitHub ↗
(e *BasicEntity, c2 *MyComponent2)

Source from the content-addressed store, hash-verified

121 }
122}
123func (sys *MySystemTwo) Add(e *BasicEntity, c2 *MyComponent2) {
124 sys.entities = append(sys.entities, MySystemTwoEntity{e, c2})
125}
126func (sys *MySystemTwo) AddByInterface(o Identifier) {
127 obj := o.(MySystemTwoable)
128 sys.Add(obj.GetBasicEntity(), obj.GetMyComponent2())

Callers 1

AddByInterfaceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected