.
This commit is contained in:
parent
13ced30434
commit
a9b7f47494
35 changed files with 1024 additions and 123 deletions
40
buildserver/configurator/README.md
Normal file
40
buildserver/configurator/README.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# configurator
|
||||
|
||||
helper for generating json configs interactively.
|
||||
Plugins that hook into this plugin can register configuration nodes like "lobby.spawnpoint" with type Location.
|
||||
server operators can then go ingame and do `/cfg key lobby.spawnpoint` to set a spawn location and then
|
||||
`/cfg export` ig
|
||||
|
||||
## TODO
|
||||
|
||||
- lists
|
||||
- exporting
|
||||
- proper namespaces
|
||||
- split into api and impl
|
||||
- more types(region pickers especially; also itemstacks)
|
||||
- type variants like location without yaw/pitch
|
||||
|
||||
## design
|
||||
|
||||
in json we have primitives(like "hi", 1, false"), structures(like {"foo":"bar}) and lists(like []).
|
||||
everything consists of primitives eventually so we can go from
|
||||
|
||||
```json
|
||||
{
|
||||
"arenas": [
|
||||
{
|
||||
"name": "skyfall",
|
||||
"minPlayers": 3,
|
||||
"maxPlayers": 8
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
to
|
||||
```text
|
||||
arenas.0.name = Primitive("skyfall")
|
||||
arenas.0.minPlayers = Primitive(3)
|
||||
arenas.0.maxPlayers = Primitive(8)
|
||||
```
|
||||
|
||||
We can define a complex type as "type has a string field called name" and it will just use
|
||||
Loading…
Add table
Add a link
Reference in a new issue