Skip to content

Latest commit

 

History

History
73 lines (68 loc) · 762 Bytes

apis.md

File metadata and controls

73 lines (68 loc) · 762 Bytes

API

Set a up api Msgs that I need to have interaction: Agent -> Server

  • POST Join #TODO
  • Quit #TODO

Server -> Agent

  • GET Move send
{
  "agent":
  {
    "name" : "string"
    "team" : GUID,
    "location" :
    {
      "pos":
      [
        int,
        int,

      ],
      "angle" : int
    }
    "size" : int,
    "score" : int,
    "speed limit":
    {
      "pos":
      [
        int,
        int,

      ],
      "angle" : int
    }
  },
  map:
  {
    objects :
    [
      MapObjects
    ]
  }
}

return

{
   "agent" :
   {
     "location" :
     {
       "pos":
       [
         int,
         int,

       ],
       "angle" : int
     }
     "fire": bool
   }
}

Server -> Observer

  • PUT UpdateState

TODO