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

Method Update

entity_test.go:26–30  ·  view source on GitHub ↗
(dt float32)

Source from the content-addressed store, hash-verified

24func (*MySystemOne) Priority() int { return 0 }
25func (*MySystemOne) New(*World) {}
26func (sys *MySystemOne) Update(dt float32) {
27 for _, e := range sys.entities {
28 e.c1.A++
29 }
30}
31func (*MySystemOne) Remove(e BasicEntity) {}
32func (sys *MySystemOne) Add(e *BasicEntity, c1 *MyComponent1) {
33 sys.entities = append(sys.entities, MySystemOneEntity{e, c1})

Callers 1

TestChangeableComponentsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected