console command dictionary is now automatically filled using reflection

This commit is contained in:
minjaesong
2021-08-29 20:36:11 +09:00
parent 3fc6e28c4d
commit c610bd1ac6
28 changed files with 143 additions and 91 deletions

View File

@@ -34,24 +34,24 @@ The fields are auto-generated by GDX's JSON serialiser.
{
worldName: "New World",
worldIndex: 1,
width: 8192,
height: 2048,
spawnX: 4096,
width: 9000,
height: 2250,
spawnX: 4500,
spawnY: 248,
creationTime: 1629857065,
lastPlayTime: 1629857065,
totalPlayTime: 0,
layerTerrain: {
h: "a441b15fe9a3cf56661190a0b93b9dec7d04127288cc87250967cf3b52894d11",
h: <SHA-256 hash of 'b'>,
b: <Ascii85-encoded gzipped terrain layerdata>,
x: 8192,
y: 2048
x: 9000,
y: 2250
},
layerWall: {
h: <SHA-256 hash of 'b'>,
b: <Ascii85-encoded gzipped wall layerdata>,
x: 8192,
y: 2048
x: 9000,
y: 2250
},
wallDamages:{},
terrainDamages: {},
@@ -69,7 +69,10 @@ The fields are auto-generated by GDX's JSON serialiser.
averageTemperature: 288,
generatorSeed: 0,
worldTime: 27874,
tileNumberToNameMap: {}
tileNumberToNameMap: {},
extraFields: {},
genver: 4
comp: 1
}
```
@@ -78,8 +81,14 @@ The fields are auto-generated by GDX's JSON serialiser.
The fields are auto-generated by GDX's JSON serialiser.
```
{
<actor id>: { actor serialised in JSON },
[
{ /* actor serialised in JSON *
class: "net.torvald.terrarum.modulebasegame.gameactors.IngamePlayer", /* depends on the actor */
referenceID: 1342111743,
actorValue: { /* actorValue serialised in JSON */ },
hitbox: ...,
...
},
...
}
]
```