217 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			217 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "outputPath" : "./src/main/java/electrosphere/net/parser/",
 | |
|     "packageName" : "electrosphere.net.parser",
 | |
|     "categories":[
 | |
|         {
 | |
|             "categoryName" : "Terrain",
 | |
|             "data" : [
 | |
|                 {
 | |
|                     "name" : "worldSizeDiscrete",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "dynamicInterpolationRatio",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "randomDampener",
 | |
|                     "type" : "FIXED_FLOAT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "worldMinX",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "worldMinY",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "worldMaxX",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "worldMaxY",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
| 
 | |
| 
 | |
|                 {
 | |
|                     "name" : "value",
 | |
|                     "type" : "FIXED_FLOAT"
 | |
|                 },
 | |
| 
 | |
| 
 | |
|                 {
 | |
|                     "name" : "worldX",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "worldY",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "worldZ",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
| 
 | |
|                 {
 | |
|                     "name" : "voxelX",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "voxelY",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "voxelZ",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 },
 | |
| 
 | |
|                 
 | |
| 
 | |
| 
 | |
|                 {
 | |
|                     "name" : "realLocationX",
 | |
|                     "type" : "FIXED_DOUBLE"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "realLocationY",
 | |
|                     "type" : "FIXED_DOUBLE"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "realLocationZ",
 | |
|                     "type" : "FIXED_DOUBLE"
 | |
|                 },
 | |
| 
 | |
| 
 | |
| 
 | |
|                 {
 | |
|                     "name" : "chunkData",
 | |
|                     "type" : "BYTE_ARRAY"
 | |
|                 },
 | |
| 
 | |
|                 {
 | |
|                     "name" : "terrainWeight",
 | |
|                     "type" : "FIXED_FLOAT"
 | |
|                 },
 | |
|                 {
 | |
|                     "name" : "terrainValue",
 | |
|                     "type" : "FIXED_INT"
 | |
|                 }
 | |
|             ],
 | |
|             "messageTypes" : [
 | |
|                 {
 | |
|                     "messageName" : "RequestMetadata",
 | |
|                     "data" : []
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "ResponseMetadata",
 | |
|                     "data" : [
 | |
|                         "worldSizeDiscrete",
 | |
|                         "dynamicInterpolationRatio",
 | |
|                         "randomDampener",
 | |
|                         "worldMinX",
 | |
|                         "worldMinY",
 | |
|                         "worldMaxX",
 | |
|                         "worldMaxY"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "RequestChunk",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "RequestEditVoxel",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY",
 | |
|                         "worldZ",
 | |
|                         "voxelX",
 | |
|                         "voxelY",
 | |
|                         "voxelZ",
 | |
|                         "terrainWeight",
 | |
|                         "terrainValue"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "UpdateVoxel",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY",
 | |
|                         "worldZ",
 | |
|                         "voxelX",
 | |
|                         "voxelY",
 | |
|                         "voxelZ",
 | |
|                         "terrainWeight",
 | |
|                         "terrainValue"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "RequestUseTerrainPalette",
 | |
|                     "data" : [
 | |
|                         "realLocationX",
 | |
|                         "realLocationY",
 | |
|                         "realLocationZ",
 | |
|                         "value",
 | |
|                         "terrainWeight",
 | |
|                         "terrainValue"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "SpawnPosition",
 | |
|                     "data" : [
 | |
|                         "realLocationX",
 | |
|                         "realLocationY",
 | |
|                         "realLocationZ"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "RequestChunkData",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY",
 | |
|                         "worldZ"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "sendChunkData",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY",
 | |
|                         "worldZ",
 | |
|                         "chunkData"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "RequestFluidData",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY",
 | |
|                         "worldZ"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "sendFluidData",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY",
 | |
|                         "worldZ",
 | |
|                         "chunkData"
 | |
|                     ]
 | |
|                 },
 | |
|                 {
 | |
|                     "messageName" : "updateFluidData",
 | |
|                     "data" : [
 | |
|                         "worldX",
 | |
|                         "worldY",
 | |
|                         "worldZ",
 | |
|                         "chunkData"
 | |
|                     ]
 | |
|                 }
 | |
|             ]
 | |
|         }
 | |
|     ]
 | |
| } |