mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
console command dictionary is now automatically filled using reflection
This commit is contained in:
@@ -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: ...,
|
||||
...
|
||||
},
|
||||
...
|
||||
}
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user