sample cfg file
parent
c83f9d8700
commit
b379f1d82c
|
|
@ -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"
|
||||||
|
|
@ -25,6 +25,24 @@ type (
|
||||||
N string
|
N string
|
||||||
}
|
}
|
||||||
v01Cfg struct {
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue