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

Method AddByInterface

entity_test.go:35–38  ·  view source on GitHub ↗
(o Identifier)

Source from the content-addressed store, hash-verified

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())
38}
39
40type MySystemOneTwoEntity struct {
41 e *BasicEntity

Callers

nothing calls this directly

Calls 3

AddMethod · 0.95
GetBasicEntityMethod · 0.65
GetMyComponent1Method · 0.65

Tested by

no test coverage detected