MCPcopy Index your code
hub / github.com/EngoEngine/engo / Add

Method Add

common/audio.go:134–136  ·  view source on GitHub ↗

Add adds an entity to the AudioSystem

(basic *ecs.BasicEntity, audio *AudioComponent)

Source from the content-addressed store, hash-verified

132
133// Add adds an entity to the AudioSystem
134func (a *AudioSystem) Add(basic *ecs.BasicEntity, audio *AudioComponent) {
135 a.entities = append(a.entities, audioEntity{basic, audio})
136}
137
138// AddByInterface Allows an Entity to be added directly using the Audioable interface,
139// which every entity containing the BasicEntity and AnimationComponent anonymously,

Callers 1

AddByInterfaceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected