MultiplayerSession 개체에 대한 작업을 위해 전달되는 요청 JSON 개체입니다.MultiplayerSessionRequest JSON 개체는 다음 사양을 가집니다.
멤버
형식
설명
constants
개체
세션 템플릿과 병합되어 세션의 상수를 생성하는 읽기 전용 설정입니다.
properties
개체
세션 속성에 병합될 변경 사항입니다.
members.me
개체
최상위 대응 요소와 매우 유사하게 작동하는 상수와 속성입니다. 모든 PUT 메서드는 사용자가 세션의 멤버여야 하며, 필요한 경우 사용자를 추가합니다. “me”가 null로 지정되면 요청을 만드는 멤버가 세션에서 제거됩니다.
members
개체
0부터 시작하는 인덱스로 키가 지정된, 세션에 추가할 사용자를 나타내는 다른 개체입니다. 세션에 이미 멤버가 포함되어 있더라도 요청의 멤버 수는 항상 0부터 시작합니다. 멤버는 요청에 나타난 순서대로 세션에 추가됩니다. 멤버 속성은 해당 속성이 속한 사용자만 설정할 수 있습니다.
servers
개체
세션의 연결된 서버 참가자 집합에 대한 업데이트 및 추가를 나타내는 값입니다. 서버가 null로 지정되면 해당 서버 항목이 세션에서 제거됩니다.
{ "constants": { /* Property Bag */ }, "properties": { /* Property Bag */ }, "members": { // Requires a service principal. Existing members can be deleted by index. // Not available on large sessions. "5": null, // Reservation requests must start with zero. New users will get added in order to the end of the session's member list. // Large sessions don't support reservations. "reserve_0": { "constants": { /* Property Bag */ } }, "reserve_1": { "constants": { /* Property Bag */ } }, // Requires a user principal with a xuid claim. Can be 'null' to remove myself from the session. "me": { "constants": { /* Property Bag */ }, "properties": { /* Property Bag */ }, } }, // Requires a server principal. "servers": { // Can be any name. The value can be 'null' to remove the server from the session. "name": { "constants": { /* Property Bag */ }, "properties": { /* Property Bag */ } } }}