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

Method AddByInterface

world_test.go:46–51  ·  view source on GitHub ↗
(i Identifier)

Source from the content-addressed store, hash-verified

44}
45
46func (s *simpleSystem) AddByInterface(i Identifier) {
47 obj, ok := i.(BasicFace)
48 if ok {
49 s.Add(obj.GetBasicEntity())
50 }
51}
52
53func (s *simpleSystem) Remove(b BasicEntity) {}
54

Callers

nothing calls this directly

Calls 2

AddMethod · 0.95
GetBasicEntityMethod · 0.65

Tested by

no test coverage detected