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

Interface System

system.go:11–18  ·  view source on GitHub ↗

A System implements logic for processing entities possessing components of the same aspects as the system. A System should iterate over its Entities on `Update`, in any way suitable for the current implementation. By convention, systems provide an Add method for adding entities and their associated

Source from the content-addressed store, hash-verified

9//
10// Add(basic *ecs.BasicEntity, collision *CollisionComponent, space *SpaceComponent)
11type System interface {
12 // Update updates the system. It is invoked by the engine once every frame,
13 // with dt being the duration since the previous update.
14 Update(dt float32)
15
16 // Remove removes the given entity from the system.
17 Remove(e BasicEntity)
18}
19
20// SystemAddByInterfacer is a system that also implements the AddByInterface method
21type SystemAddByInterfacer interface {

Callers 2

UpdateMethod · 0.65
RemoveEntityMethod · 0.65

Implementers 8

simpleSystemworld_test.go
SystemPriorityFirstsystem_test.go
SystemPrioritySecondsystem_test.go
SystemAddRemovesystem_test.go
MySystemOneentity_test.go
MySystemOneTwoentity_test.go
MySystemTwoentity_test.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…