Creates an instance of MultiplayerSession with the specified values.
public:
MultiplayerSession(
utility::string_t serviceConfigId,
utility::string_t sessionTemplateName,
utility::string_t sessionName,
std::unordered_map<utility::string_t,web::json::value>& customConstants,
std::unordered_map<utility::string_t,web::json::value>& systemConstants,
std::unordered_map<utility::string_t,web::json::value>& serverConstants,
std::vector<SessionMember>& members
)
serviceConfigId
Type: utility::string_t
[in] The service configuration ID that is specific to the title.
sessionTemplateName
Type: utility::string_t
[in] The name of the template for the session.
sessionName
Type: utility::string_t
[in] The name of the session.
customConstants
Type: std::unordered_map<utility::string_t,web::json::value>&
[in] Collection of custom constants. Each property is keyed by the field name and the value can only be one of these types: string, int32, double, or Windows.Data.Json.JsonObject.
systemConstants
Type: std::unordered_map<utility::string_t,web::json::value>&
[in] Collection of system constants. Each property is keyed by the field name and the value can only be one of these types: string, int32, double, or Windows.Data.Json.JsonObject.
serverConstants
Type: std::unordered_map<utility::string_t,web::json::value>&
[in] Collection of server constants. Each property is keyed by the field name and the value can only be one of these types: string, int32, double, or Windows.Data.Json.JsonObject.
members
Type: std::vector<SessionMember>&
[in] A collection of members that are in the session or entering the session together.
Header: Declared in MultiplayerSession.h.
Library: Use GSDK110.lib (VS 2012) or GSDK100.lib (VS 2010).