doodle/pkg/uix/actor_events.go

11 lines
254 B
Go
Raw Normal View History

package uix
import "git.kirsle.net/apps/doodle/lib/render"
// CollideEvent holds data sent to an actor's Collide handler.
type CollideEvent struct {
Actor *Actor
Overlap render.Rect
InHitbox bool // If the two elected hitboxes are overlapping
}