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

Method Add

common/collision.go:532–534  ·  view source on GitHub ↗

Add adds an entity to the CollisionSystem. To be added, the entity has to have a basic, collision, and space component.

(basic *ecs.BasicEntity, collision *CollisionComponent, space *SpaceComponent)

Source from the content-addressed store, hash-verified

530
531// Add adds an entity to the CollisionSystem. To be added, the entity has to have a basic, collision, and space component.
532func (c *CollisionSystem) Add(basic *ecs.BasicEntity, collision *CollisionComponent, space *SpaceComponent) {
533 c.entities = append(c.entities, collisionEntity{basic, collision, space})
534}
535
536// AddByInterface Provides a simple way to add an entity to the system that satisfies Collisionable. Any entity containing, BasicEntity,CollisionComponent, and SpaceComponent anonymously, automatically does this.
537func (c *CollisionSystem) AddByInterface(i ecs.Identifier) {

Callers 1

AddByInterfaceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected