summaryrefslogtreecommitdiff
path: root/content/encyclopediae/base.json
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-09-27 15:33:09 +0200
committertroido <troido@protonmail.com>2020-09-27 15:33:09 +0200
commita20bcfed7d3b6aacc3211514d9804651a458e725 (patch)
treed4d4aaab553a3a9065e9dba8ef4fdec9ccf45778 /content/encyclopediae/base.json
parentc3a282d04f1fd5c7cc4cf5ebb478129c2b1c42fa (diff)
better serialisation structure for encyclopediae
["list", [1, 2, 3]] is now just [1, 2, 3] and {"type": builtwall", "kwargs": {"health": 50}} is now {":template": "builtwall", "health": 50}
Diffstat (limited to 'content/encyclopediae/base.json')
-rw-r--r--content/encyclopediae/base.json14
1 files changed, 7 insertions, 7 deletions
diff --git a/content/encyclopediae/base.json b/content/encyclopediae/base.json
index e6806b5..1964579 100644
--- a/content/encyclopediae/base.json
+++ b/content/encyclopediae/base.json
@@ -23,7 +23,7 @@
"grass": {
"components": [
["Visible", {
- "sprite": ["random", [
+ "sprite": {"$random": [
"grass1",
"grass2",
"grass3",
@@ -31,7 +31,7 @@
"grass2",
"grass3",
"ground"
- ]],
+ ]},
"height": 0.1,
"name": "grass"
}]
@@ -41,11 +41,11 @@
"greengrass": {
"components": [
["Visible", {
- "sprite": ["random", [
+ "sprite": {"$random": [
"grass1",
"grass2",
"grass3"
- ]],
+ ]},
"height": 0.1,
"name": "grass"
}]
@@ -76,14 +76,14 @@
"img": {
"arguments": [["sprite", "string", ""], ["height", "float", 1.0]],
"components": [
- ["Visible", {"name": ["arg", "sprite"], "sprite": ["arg", "sprite"], "height": ["arg", "height"]}]
+ ["Visible", {"name": {"$arg": "sprite"}, "sprite": {"$arg": "sprite"}, "height": {"$arg": "height"}}]
]
},
"letter": {
"arguments": [["char", "string"]],
"components": [["Visible", {
- "name": ["concat", ["letter_", ["arg", "char"]]],
- "sprite": ["concat", ["emptyletter-", ["arg", "char"]]],
+ "name": {"$concat": ["letter_", {"$arg": "char"}]},
+ "sprite": {"$concat": ["emptyletter-", {"$arg": "char"}]},
"height": 1.0
}]]
}