We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GET /game/{game_pk}/status/
This call return everycontents of game that is near player. You can look at more info here (https://github.com/wadobo/socializa/blob/dev/backend/player/views.py#L47)
data = { 'position': { 'longitude': 37.201421, 'latitude': -6.9447224 } }
return: list of contents, similar to this:
{ 'players': [ { 'username': 'test', 'description': '' 'position': { 'longitude': 37.201421, 'latitude': -6.9447224 } } ], 'npcs': [ { 'username': 'test', 'description': '' 'position': { 'longitude': 37.201421, 'latitude': -6.9447224 } } ], 'items': [ { 'name': 'key', 'description': 'key number 1', 'position': { 'longitude': 37.201421, 'latitude': -6.9447224 } }, { 'name': 'Confidential information', 'description': 'This information is private and important.', 'position': { 'longitude': 37.201421, 'latitude': -6.9447224 } } ], }
Create several test for check near and far position. Far position shouldn't appear.
The text was updated successfully, but these errors were encountered:
Merge pull request #23 from wadobo/#17-game-status-for-player
a19c4be
Implements game status for a player distance
rarellano
No branches or pull requests
GET /game/{game_pk}/status/
This call return everycontents of game that is near player. You can look at more info here (https://github.com/wadobo/socializa/blob/dev/backend/player/views.py#L47)
return: list of contents, similar to this:
Create several test for check near and far position. Far position shouldn't appear.
The text was updated successfully, but these errors were encountered: