package components import "github.com/mlange-42/arche/ecs" // if the function returns true, the entity will be removed. The // supplied entity is the target entitiy with which the checked one // collided. type Collider struct { CollisionHandler func(*ecs.World, *Position, *Position, *Velocity, ecs.Entity) bool EdgeHandler func(*ecs.World, *Position, *Position, *Velocity, ecs.Entity) bool PassoverHandler func(*ecs.World, *Position, *Velocity, *ecs.Entity) bool PassoverFinishedHandler func(*ecs.World, *Position, *Velocity, *ecs.Entity) bool }