| ... | ... | @@ -26,7 +26,7 @@ Contains two functions and four helper functions |
|
|
|
|
|
|
|
- Players array
|
|
|
|
|
|
|
|
```
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"lng": 25.79088,
|
|
|
|
"lat": 62.20147,
|
| ... | ... | @@ -54,7 +54,7 @@ Contains two functions and four helper functions |
|
|
|
|
|
|
|
- Factions array
|
|
|
|
|
|
|
|
```
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"name": "Verkkotekniikka",
|
|
|
|
"colour": "#f2f23f",
|
| ... | ... | @@ -62,14 +62,95 @@ Contains two functions and four helper functions |
|
|
|
},
|
|
|
|
```
|
|
|
|
|
|
|
|
- Scores
|
|
|
|
- Scores array
|
|
|
|
|
|
|
|
- Drawings
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"score": 4,
|
|
|
|
"timestamp": 1564474742731,
|
|
|
|
"faction": "Verkkotekniikka"
|
|
|
|
},
|
|
|
|
```
|
|
|
|
|
|
|
|
- Drawings array
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"mapDrawingHistoryId": "761fba56-3c3d-4584-b63e-06dd9147d472",
|
|
|
|
"timestamp": 1564474731987,
|
|
|
|
"drawingIsActive": true,
|
|
|
|
"data": {
|
|
|
|
"type": "circle",
|
|
|
|
"coordinates": [62.24393777453902, 25.72328567504883],
|
|
|
|
"radius": 811.3946757486049,
|
|
|
|
"faction": "Ohjelmistotekniikka"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
- Objective Points
|
|
|
|
- Objective Points array
|
|
|
|
|
|
|
|
- Uses two helper functions `returnObjectivePointInfo` and `parseHistory`
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"objectivePointId": "caf0f9ca-b151-4c60-81df-612c2978c6e5",
|
|
|
|
"objectivePointDescription": "7654321",
|
|
|
|
"objectivePointMultiplier": 2,
|
|
|
|
"data": {
|
|
|
|
"type": "flagbox",
|
|
|
|
"coordinates": [62.2484254794272, 25.743713378906254]
|
|
|
|
},
|
|
|
|
"history": [
|
|
|
|
{
|
|
|
|
"timestamp": 1564474729627,
|
|
|
|
"action": {
|
|
|
|
"status": 0,
|
|
|
|
"message": "No capture ongoing"
|
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"factionName": "neutral",
|
|
|
|
"colour": "#000000"
|
|
|
|
},
|
|
|
|
"capture": {
|
|
|
|
"factionName": "neutral",
|
|
|
|
"colour": "#000000"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"timestamp": 1564474733207,
|
|
|
|
"action": {
|
|
|
|
"status": 0,
|
|
|
|
"message": "No capture ongoing"
|
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"factionName": "Ohjelmistotekniikka",
|
|
|
|
"colour": "#4287f5"
|
|
|
|
},
|
|
|
|
"capture": {
|
|
|
|
"factionName": "neutral",
|
|
|
|
"colour": "#000000"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"timestamp": 1564474745183,
|
|
|
|
"action": {
|
|
|
|
"status": 0,
|
|
|
|
"message": "No capture ongoing"
|
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"factionName": "Ohjelmistotekniikka",
|
|
|
|
"colour": "#4287f5"
|
|
|
|
},
|
|
|
|
"capture": {
|
|
|
|
"factionName": "Ohjelmistotekniikka",
|
|
|
|
"colour": "#4287f5"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
### getScores(gameId: GameEntity)
|
|
|
|
|
|
|
|
- Returns all factions' scores and their colour
|
| ... | ... | @@ -95,3 +176,7 @@ Contains two functions and four helper functions |
|
|
|
## score.entity.ts
|
|
|
|
|
|
|
|
Reflects the datababse table for score.
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
``` |