CodingLand/pkg/internal/land/object_interactable.go
2024-07-18 22:59:03 +08:00

16 lines
256 B
Go

package land
type UserEventType = int
const (
UserEventMouseDown = UserEventType(iota)
UserEventMouseUp
UserEventMouseMove
)
type InteractableObject interface {
GetPosition() Vector2D
GetSize() Vector2D
OnEvent(event UserEventType, args ...any)
}