2023-12-20 22:39:33 +03:00
|
|
|
package gg
|
|
|
|
|
2024-01-08 06:09:36 +03:00
|
|
|
type contextType int
|
|
|
|
const (
|
|
|
|
startContext contextType = iota
|
|
|
|
updateContext
|
2024-01-16 01:08:21 +03:00
|
|
|
resolveContext
|
2024-01-08 06:09:36 +03:00
|
|
|
eventContext
|
|
|
|
drawContext
|
|
|
|
deleteContext
|
|
|
|
)
|
|
|
|
|
2023-12-20 22:39:33 +03:00
|
|
|
type Context struct {
|
2024-01-08 06:09:36 +03:00
|
|
|
typ contextType
|
2024-01-08 07:12:35 +03:00
|
|
|
Events []any
|
2024-01-16 01:08:21 +03:00
|
|
|
Collisions []Collision
|
2023-12-20 22:39:33 +03:00
|
|
|
*Engine
|
|
|
|
*Image
|
|
|
|
}
|