-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
50 lines (42 loc) Β· 805 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package main
import (
"image/color"
rl "github.com/gen2brain/raylib-go/raylib"
)
type Screen struct {
title string
width int32
height int32
fps int32
}
type Style struct {
bg color.RGBA
primary color.RGBA
accent color.RGBA
padding float32
roundness float32
}
type State struct {
camera *Camera
running bool
editMode bool
editFull bool
editFocusedItemUid string
camMode rl.CameraMode
lookDir Direction
currentNode *Node
}
type SceneItem struct {
uid string
model rl.Model
pos rl.Vector3
rot rl.Vector3
scale float32
hidden bool
highlight bool
}
type Scene3D struct {
Items map[string]*SceneItem
Enemies Enemies
}
type Enemies = map[EnemyType]Enemy