sample cfg file

master
bel 2023-03-25 00:43:51 -06:00
parent c83f9d8700
commit b379f1d82c
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,16 @@
users:
bel:
player: 0
message: "hi"
players:
- buttons:
up: "w"
down: "s"
left: "a"
right: "d"
l: "q"
r: "e"
a: "1"
b: "2"
x: "3"
y: "4"

View File

@ -25,6 +25,24 @@ type (
N string
}
v01Cfg struct {
Users map[string]struct {
Player int
Message string
}
Players []struct {
Buttons struct {
Up string
Down string
Left string
Right string
L string
R string
A string
B string
X string
Y string
}
}
}
)