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

Method AddByInterface

entity_test.go:82–85  ·  view source on GitHub ↗
(o Identifier)

Source from the content-addressed store, hash-verified

80 sys.entities = append(sys.entities, MySystemOneTwoEntity{e, c1, c2})
81}
82func (sys *MySystemOneTwo) AddByInterface(o Identifier) {
83 obj := o.(MySystemOneTwoable)
84 sys.Add(obj.GetBasicEntity(), obj.GetMyComponent1(), obj.GetMyComponent2())
85}
86
87type MySystemTwoEntity struct {
88 e *BasicEntity

Callers

nothing calls this directly

Calls 4

AddMethod · 0.95
GetBasicEntityMethod · 0.65
GetMyComponent1Method · 0.65
GetMyComponent2Method · 0.65

Tested by

no test coverage detected