Skip to content
mkoengeter edited this page Apr 10, 2013 · 3 revisions

This IQ is used for creating a new game instance on the server. The Request part is sent by the client and contains all the details the user is allowed to configure, while the Response is just an acknowledgement.

Request from Client to Service:

 <iq id="mobilis_44" to="[email protected]/MobilisXHunt_v3#1" from="[email protected]/MXA" type="set">
    <CreateGameRequest>
       <AreaId>1</areaid>
       <GameName>Gamex</gamename>
       <GamePassword>null</gamepassword>
       <CountRounds>10</countrounds>
       <MinPlayers>1</minplayers>
       <MaxPlayers>6</maxplayers>
       <StartTimer>15000</starttimer>
       <TicketsMrX>
          <TicketAmount>
             <ID>4</id>
             <Amount>1000</amount>
          </ticketamount>
          <TicketAmount>
             <ID>1</id>
             <Amount>1000</amount>
          </ticketamount>
          <TicketAmount>
             <ID>2</id>
             <Amount>1000</amount>
          </ticketamount>
          <TicketAmount>
             <ID>3</id>
             <Amount>1000</amount>
          </ticketamount>
       </ticketsmrx>
       <TicketsAgents>
          <TicketAmount>
             <ID>4</id>
             <Amount>1000</amount>
          </ticketamount>
          <TicketAmount>
             <ID>1</id>
             <Amount>1000</amount>
          </ticketamount>
          <TicketAmount>
             <ID>2</id>
             <Amount>1000</amount>
          </ticketamount>
          <TicketAmount>
             <ID>3</id>
             <Amount>1000</amount>
          </ticketamount>
       </ticketsagents>
    </creategamerequest>
 </iq>

Response from Service to Client:

 <iq id="mobilis_53" from="[email protected]/MobilisXHunt_v3#2" to="[email protected]/MXA" type="2">
    <CreateGameResponse></creategameresponse>
 </iq>

Up: XHunt Communication Structure

Clone this wiki locally