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

Method AddByInterface

world_test.go:97–102  ·  view source on GitHub ↗
(i Identifier)

Source from the content-addressed store, hash-verified

95func (s *priorityChangeSystem) Add(b *BasicEntity) {}
96
97func (s *priorityChangeSystem) AddByInterface(i Identifier) {
98 obj, ok := i.(BasicFace)
99 if ok {
100 s.Add(obj.GetBasicEntity())
101 }
102}
103
104func (s *priorityChangeSystem) Remove(b BasicEntity) {}
105

Callers

nothing calls this directly

Calls 2

AddMethod · 0.95
GetBasicEntityMethod · 0.65

Tested by

no test coverage detected