So, I'm completely new to graph and gremlin API so I hope someone here can point me in the right direction.
I`m planning to create a overview map of all events during a FPS game. This means I have a list of players, rounds, and all events that have occured in each round. An event could be;
- Player 1 -> Shot (additional properties like weapon, damage amount, etc would be required) -> Player 2
- Player 2 -> Killed -> Player 3
and so on...
I'm not quite sure in which way this should be structured. Should the event just be an edge, pointing to the other player (vertex)? This means that the edges need additional properties, and needs to be related to the game round, not sure if this is possible..?
Any help would be much appriciated.
To give a bit more details, this is a typical event.
{
"attackId": 587204688,
"attacker": {
"name": "Danielsol13",
"teamId": 10,
"health": 56.031158447265625,
"location": {
"x": 218720.15625,
"y": 467373.53125,
"z": 13599.349609375
},
"ranking": 0,
"accountId": "account.46118b5fe1954e97a6af47cb6e9506af",
"isInBlueZone": false,
"isInRedZone": false,
"zone": []
},
"victim": {
"name": "BUTTZN",
"teamId": 3,
"health": 45.600002288818359,
"location": {
"x": 217836.6875,
"y": 464758.8125,
"z": 13499.73046875
},
"ranking": 0,
"accountId": "account.308db6ede78048d1aa372f6ee7b87eed",
"isInBlueZone": false,
"isInRedZone": false,
"zone": []
},
"damageTypeCategory": "Damage_Gun",
"damageReason": "HeadShot",
"damage": 45.600002288818359,
"damageCauserName": "WeapHK416_C",
"isThroughPenetrableWall": false,
"common": {
"isGame": 1.5
},
"_D": "2021-03-15T20:46:24.063Z",
"_T": "LogPlayerTakeDamage"
}