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

Method AddByInterface

entity_test.go:126–129  ·  view source on GitHub ↗
(o Identifier)

Source from the content-addressed store, hash-verified

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())
129}
130
131type MyEntity1 struct {
132 BasicEntity

Callers

nothing calls this directly

Calls 3

AddMethod · 0.95
GetBasicEntityMethod · 0.65
GetMyComponent2Method · 0.65

Tested by

no test coverage detected