Update readme
This commit is contained in:
109
README.md
109
README.md
@ -156,10 +156,11 @@ Response body:
|
|||||||
"position": {
|
"position": {
|
||||||
"x": 50,
|
"x": 50,
|
||||||
"y": 50
|
"y": 50
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
"player": {
|
"player": {
|
||||||
"uuid": "75bba7cd-a4c1-4b50-b0b5-6382c2822a25",
|
"uuid": "75bba7cd-a4c1-4b50-b0b5-6382c2822a25",
|
||||||
|
"name": "Pero",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 0,
|
"x": 0,
|
||||||
"y": 10
|
"y": 10
|
||||||
@ -191,6 +192,7 @@ Response body:
|
|||||||
{
|
{
|
||||||
"player": {
|
"player": {
|
||||||
"uuid": "string",
|
"uuid": "string",
|
||||||
|
"name": "Pero",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 50,
|
"x": 50,
|
||||||
"y": 50
|
"y": 50
|
||||||
@ -212,6 +214,7 @@ Response body:
|
|||||||
{
|
{
|
||||||
"player": {
|
"player": {
|
||||||
"uuid": "string",
|
"uuid": "string",
|
||||||
|
"name": "Pero",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 50,
|
"x": 50,
|
||||||
"y": 50
|
"y": 50
|
||||||
@ -266,29 +269,37 @@ Data:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"board": {
|
"board": {
|
||||||
"width": 101,
|
"width": 21,
|
||||||
"height": 101
|
"height": 21
|
||||||
},
|
},
|
||||||
"destinationPosition": {
|
"destination": {
|
||||||
"x": 50,
|
|
||||||
"y": 50
|
|
||||||
},
|
|
||||||
"players": [
|
|
||||||
{
|
|
||||||
"id": "75bba7cd-a4c1-4b50-b0b5-6382c2822a25",
|
|
||||||
"name": "Pero",
|
|
||||||
"position": {
|
"position": {
|
||||||
"x": 0,
|
"x": 10,
|
||||||
"y": 10
|
"y": 10
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"players": [
|
||||||
{
|
{
|
||||||
"id": "04793b36-0785-4bf3-9396-3585c358cbac",
|
"uuid": "test-player-id",
|
||||||
"name": "Mirko",
|
"name": "Pero",
|
||||||
|
"active": true,
|
||||||
"position": {
|
"position": {
|
||||||
"x": 11,
|
"x": 2,
|
||||||
"y": 12
|
"y": 2
|
||||||
}
|
},
|
||||||
|
"move_count": 3,
|
||||||
|
"move_attempt_count": 3
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"uuid": "95962b49-0003-4bf2-b205-71f2590f2318",
|
||||||
|
"name": "Mirko",
|
||||||
|
"active": true,
|
||||||
|
"position": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
|
},
|
||||||
|
"move_count": 15,
|
||||||
|
"move_attempt_count": 20
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"layers": [
|
"layers": [
|
||||||
@ -296,17 +307,69 @@ Data:
|
|||||||
"name": "obstacles",
|
"name": "obstacles",
|
||||||
"objects": [
|
"objects": [
|
||||||
{
|
{
|
||||||
"type": "obstacle",
|
"type": "OBSTACLE",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 15,
|
"x": 4,
|
||||||
"y": 25
|
"y": 2
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "obstacle",
|
"type": "OBSTACLE",
|
||||||
"position": {
|
"position": {
|
||||||
"x": 33,
|
"x": 4,
|
||||||
"y": 44
|
"y": 13
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "OBSTACLE",
|
||||||
|
"position": {
|
||||||
|
"x": 18,
|
||||||
|
"y": 18
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "OBSTACLE",
|
||||||
|
"position": {
|
||||||
|
"x": 5,
|
||||||
|
"y": 4
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "OBSTACLE",
|
||||||
|
"position": {
|
||||||
|
"x": 7,
|
||||||
|
"y": 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "destination",
|
||||||
|
"objects": [
|
||||||
|
{
|
||||||
|
"type": "DESTINATION",
|
||||||
|
"position": {
|
||||||
|
"x": 10,
|
||||||
|
"y": 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "players",
|
||||||
|
"objects": [
|
||||||
|
{
|
||||||
|
"type": "PLAYER",
|
||||||
|
"position": {
|
||||||
|
"x": 2,
|
||||||
|
"y": 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "PLAYER",
|
||||||
|
"position": {
|
||||||
|
"x": 0,
|
||||||
|
"y": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -24,6 +24,7 @@ class PositionDto(BaseModel):
|
|||||||
|
|
||||||
class PlayerDto(BaseModel):
|
class PlayerDto(BaseModel):
|
||||||
uuid: str
|
uuid: str
|
||||||
|
name: str
|
||||||
active: bool
|
active: bool
|
||||||
position: PositionDto
|
position: PositionDto
|
||||||
move_count: int
|
move_count: int
|
||||||
|
|||||||
Reference in New Issue
Block a user