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

Method Add

entity_test.go:79–81  ·  view source on GitHub ↗
(e *BasicEntity, c1 *MyComponent1, c2 *MyComponent2)

Source from the content-addressed store, hash-verified

77 }
78}
79func (sys *MySystemOneTwo) Add(e *BasicEntity, c1 *MyComponent1, c2 *MyComponent2) {
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())

Callers 4

AddByInterfaceMethod · 0.95
TestDeleteFunction · 0.95
BenchmarkIdiomaticFunction · 0.95
BenchmarkIdiomaticDoubleFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected