addRoomGame - Addition of a game room to the domain
When defining a game room, a new room is created, as in addRoom with the difference that it is private, it means isPrivate=true. Together with the room creation variables used during a game are defined. The game room is always created by the user who sends an invitation appeal for the game.
XML request, sent by the client to the server
<protocol>
      <addRoomGame name="d25" password="a22" userMax="0"  sid="2">
          <variables>
               <a1>27</a1>   
               <f1>179</f1>
               <c1>John</c1>          
          </variables>
      </addRoomGame>
</protocol>
                    
Attribute
Meaning
name
Name of the game room we want to add to the domain.
password
Password for entry to the game room.
maxUsers
Number of players playing the game.
variables
In the section variables we define the variables used for the game. They are defined in the shape for example <a1>27</a1>.
Note: Rooms can only be added to the domains where this action is enabled. Such a domain has to have maxRoomsPerUser>0 and maxRooms>0.
XML response of the server to the client
<protocol>
      <response action="addRoomGame" errorCode="0" [sid="2"]/>
 </protocol> 
                    
errorCode
Error description
101
To create new rooms is not allowed in the domain.
102
The value of maxRoomsPerUser or maxRooms was exceeded.
103
The variable name is not defined.
104
A room with this name already exists in the domain.
231
To create new variables is not allowed in the room.
232
The value of maxVariablesPerUser or maxVariables was exceeded.
233
The variable name is not defined.
234
A variable with this name already exists in the room.