add example json
This commit is contained in:
		
							parent
							
								
									08068f9354
								
							
						
					
					
						commit
						8632377544
					
				
							
								
								
									
										104
									
								
								static/state.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										104
									
								
								static/state.json
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,104 @@
 | 
			
		||||
{
 | 
			
		||||
    "game": {
 | 
			
		||||
        "player_count": 2,
 | 
			
		||||
        "time_between_ticks": 3600,
 | 
			
		||||
        "ticks_per_cycle": 24,
 | 
			
		||||
        "_comment": "More game specific settings would be here"
 | 
			
		||||
    },
 | 
			
		||||
    "meta": {
 | 
			
		||||
        "player_id": 0,
 | 
			
		||||
        "tick": 5,
 | 
			
		||||
        "cycle": 2,
 | 
			
		||||
        "last_tick": 1548384419
 | 
			
		||||
    },
 | 
			
		||||
    "players": [
 | 
			
		||||
        {
 | 
			
		||||
            "id": 0,
 | 
			
		||||
            "profile": {
 | 
			
		||||
                "name": "Torjus",
 | 
			
		||||
                "race": "Griffin",
 | 
			
		||||
                "race_picture": null,
 | 
			
		||||
                "race_bio": "The griffin, griffon, or gryphon (Greek: γρύφων, grýphōn, or γρύπων, grýpōn, early form γρύψ, grýps; Latin: gryphus) is a legendary creature with the body, tail, and back legs of a lion; the head and wings of an eagle; and sometimes an eagle's talons as its front feet. Because the lion was traditionally considered the king of the beasts and the eagle the king of birds by the Middle Ages the griffin was thought to be an especially powerful and majestic creature. Since classical antiquity, Griffins were known for guarding treasure and priceless possessions."
 | 
			
		||||
            },
 | 
			
		||||
            "color": "#FFFFFF"
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "id": 1,
 | 
			
		||||
            "profile": {
 | 
			
		||||
                "name": "Cyber",
 | 
			
		||||
                "race": "Catte",
 | 
			
		||||
                "race_picture": "images/Cybkatte.png",
 | 
			
		||||
                "race_bio": null
 | 
			
		||||
            },
 | 
			
		||||
            "color": "#0000FF"
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "stars": [
 | 
			
		||||
        {
 | 
			
		||||
            "id": 0,
 | 
			
		||||
            "owner_id": 0,
 | 
			
		||||
            "name": "Furryland",
 | 
			
		||||
            "resources": 160,
 | 
			
		||||
            "location": {
 | 
			
		||||
                "x": 10,
 | 
			
		||||
                "y": 20
 | 
			
		||||
            },
 | 
			
		||||
            "ships": 100,
 | 
			
		||||
            "infrastructure": {
 | 
			
		||||
                "finance": 10,
 | 
			
		||||
                "fabrication": 10,
 | 
			
		||||
                "science": 10
 | 
			
		||||
            },
 | 
			
		||||
            "hypergate": true
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "id": 1,
 | 
			
		||||
            "owner_id": 1,
 | 
			
		||||
            "name": "xXCyberlabXx",
 | 
			
		||||
            "resources": 150,
 | 
			
		||||
            "location": {
 | 
			
		||||
                "x": 50,
 | 
			
		||||
                "y": 200
 | 
			
		||||
            },
 | 
			
		||||
            "ships": 150,
 | 
			
		||||
            "infrastructure": {
 | 
			
		||||
                "finance": 5,
 | 
			
		||||
                "fabrication": 15,
 | 
			
		||||
                "science": 10
 | 
			
		||||
            },
 | 
			
		||||
            "hypergate": true
 | 
			
		||||
        },
 | 
			
		||||
        {
 | 
			
		||||
            "id": 2,
 | 
			
		||||
            "owner_id": null,
 | 
			
		||||
            "name": "Camilla",
 | 
			
		||||
            "resources": 160,
 | 
			
		||||
            "location": {
 | 
			
		||||
                "x": 0,
 | 
			
		||||
                "y": 0
 | 
			
		||||
            },
 | 
			
		||||
            "ships": 0,
 | 
			
		||||
            "infrastructure": {
 | 
			
		||||
                "finance": 0,
 | 
			
		||||
                "fabrication": 0,
 | 
			
		||||
                "science": 0
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ],
 | 
			
		||||
    "carriers": [
 | 
			
		||||
        {
 | 
			
		||||
            "id":0,
 | 
			
		||||
            "owner_id": 0,
 | 
			
		||||
            "name": "KNM Helge Ingstad",
 | 
			
		||||
            "ships": 10,
 | 
			
		||||
            "location": null,
 | 
			
		||||
            "last_location": 1,
 | 
			
		||||
            "orders": [
 | 
			
		||||
                {
 | 
			
		||||
                    "star_id": 1,
 | 
			
		||||
                    "action": "NOTHING"
 | 
			
		||||
                }
 | 
			
		||||
            ]
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user