-
Notifications
You must be signed in to change notification settings - Fork 1
Entities
Lordmordevil edited this page Apr 24, 2014
·
7 revisions
player.gophie: {
"Username": "gophie",
"Color": {
"R": 200,
"G": 180,
"B": 140
},
TwitterID: "17413016",
HomePlanet: "planet.200_300",
ScreenSize: [800,600],
ScreenPosition: [640, 320]
}
- The username is part of the key and in "Username": string (In the example is "gophie")
- TwitterID is the... well Twitter ID: string
- Color is an object in the RGB format: object{int, int, int}
- HomePlanet contains a key of the user's home planet. This planet can't be conquered: string
- ScreenSize is the size of client's playable canvas: []int
- ScreenPosition is the coordinates of client's current position in the galaxy: []int
"planet.DEN9080": {
"Name": "DEN9080",
"Color": {
"R": 0.5921569,
"G": 0.031372547,
"B": 0.05490196
},
"Position": {
"X": -3949,
"Y": -8056
},
"IsHome": false,
"Texture": 2,
"Size": 4,
"LastShipCountUpdate": 1398377041,
"ShipCount": -1,
"MaxShipCount": 0,
"Owner": "Mordevil"
}
- Name is the NASA-style name of the planet: string
- Coordinates are part of the key -
__x_y__
(In this example:x: 250, y: 180
) and in theCoords
attr - Color is an object in the RGB format: object{int, int, int}
- IsHome is telling us if this planet is someone's home planet
- Textures tells the client how to draw this planet(predefined textures): int(1-10)
- Size tells how big the planet should be: int(1-10)
- LastShipCountUpdate contains the timestamp (in miliseconds) of the last ship count update: int
- ShipCount contains the current ships on this planet: int
- MaxShipCount is intended to be used in the future: int
- Owner is the username of the planet's owner: string
"mission.1398377668593_USE9073": {
"Color": {
"R": 0.28235295,
"G": 0.54901963,
"B": 0.07450981
},
"Source": {
"Name": "USE9073",
"Owner": "User1",
"Position": {
"X": 2929,
"Y": -7441
}
},
"Target": {
"Name": "DEN9084",
"Owner": "Mordevil",
"Position": {
"X": -4705,
"Y": -9633
}
},
"Type": "Attack",
"StartTime": 1398377668593,
"TravelTime": 79424,
"Player": "User1",
"ShipCount": 99
}
- The exact time when the mission has been started is the first part of the key after
.
(1357341110): int - Coordinates of the start planet are second part of the key(250_180) and in Source attribute: int, int
- Color is an object in the RGB format: object{int, int, int}
- Target is the key of the targeted planet: string
- Type of the mission: string
- StartTime contains the timestamp (in miliseconds) of when the mission has started: int
- TravelTime contains how many miliseconds the mission will be long: int
- Player is the username of the player started this mission: string
- ShipCounts is how many ships were sent on this mission: int
For some reason we have suns, too. They don't have an actual role in the game logic. It's an object, containing the user who spawned there.
"sun.DES904": {
"Username": "Desislava",
"Name": "DES904",
"Position": {
"X": -4500,
"Y": 7794
},
"SunTextureId": 0
}
- Username contains the player's name born in this solar system: string
- Name is the NASA-style name of the sun: string
- Position is... well the position: [int, int]