SmartFoxServer 2X C++ API
|
This class provides the Room settings that you can pass to a CreateRoomRequest More...
#include <RoomSettings.h>
Public Member Functions | |
RoomSettings (string name) | |
Constructor More... | |
boost::shared_ptr< string > | Name () |
The name of the new Room More... | |
void | Name (string value) |
The name of the new Room More... | |
boost::shared_ptr< string > | Password () |
The password of the Room. If empty the Room will not be password protected More... | |
void | Password (string value) |
The password of the Room. If empty the Room will not be password protected More... | |
bool | IsGame () |
Indicates if this is a Game Room More... | |
void | IsGame (bool value) |
Indicates if this is a Game Room More... | |
short int | MaxUsers () |
The maximum number of users/players allowed in the Room More... | |
void | MaxUsers (short int value) |
The maximum number of users/players allowed in the Room More... | |
short int | MaxVariables () |
The maximum number of Room Variables allowed for this Room More... | |
void | MaxVariables (short int value) |
The maximum number of Room Variables allowed for this Room More... | |
short int | MaxSpectators () |
The maximum number of spectators allowed for this Room (only for Game Rooms) More... | |
void | MaxSpectators (short int value) |
The maximum number of spectators allowed for this Room (only for Game Rooms) More... | |
boost::shared_ptr< vector< boost::shared_ptr< RoomVariable > > > | Variables () |
A list of Room Variables that should be attached to the newly created Room More... | |
void | Variables (boost::shared_ptr< vector< boost::shared_ptr< RoomVariable > > > value) |
A list of Room Variables that should be attached to the newly created Room More... | |
boost::shared_ptr< RoomPermissions > | Permissions () |
The Room Permission settings of the new Room More... | |
void | Permissions (boost::shared_ptr< RoomPermissions > value) |
The Room Permission settings of the new Room More... | |
boost::shared_ptr< RoomEvents > | Events () |
The Room Event settings of the new Room More... | |
void | Events (boost::shared_ptr< RoomEvents > value) |
The Room Event settings of the new Room More... | |
boost::shared_ptr< RoomExtension > | Extension () |
The Extension settings for the new Room More... | |
void | Extension (boost::shared_ptr< RoomExtension > value) |
The Extension settings for the new Room More... | |
boost::shared_ptr< string > | GroupId () |
The id of the Room Group in which the new Room should be created More... | |
void | GroupId (string value) |
The id of the Room Group in which the new Room should be created More... | |
bool | AllowOwnerOnlyInvitation () |
Specifies if the Room allows "Join Room" invitations to be sent by any user or just by its owner. More... | |
void | AllowOwnerOnlyInvitation (bool value) |
Specifies if the Room allows "Join Room" invitations to be sent by any user or just by its owner. More... | |
This class provides the Room settings that you can pass to a CreateRoomRequest
Some of these fields are mandatory and some other are populated by default if you don't specify them.
Sfs2X::Requests::RoomSettings::RoomSettings | ( | string | name | ) |
Constructor
name | the room name |
bool Sfs2X::Requests::RoomSettings::AllowOwnerOnlyInvitation | ( | ) |
Specifies if the Room allows "Join Room" invitations to be sent by any user or just by its owner.
The default value is true.
void Sfs2X::Requests::RoomSettings::AllowOwnerOnlyInvitation | ( | bool | value | ) |
Specifies if the Room allows "Join Room" invitations to be sent by any user or just by its owner.
The default value is true.
boost::shared_ptr< RoomEvents > Sfs2X::Requests::RoomSettings::Events | ( | ) |
The Room Event settings of the new Room
void Sfs2X::Requests::RoomSettings::Events | ( | boost::shared_ptr< RoomEvents > | value | ) |
The Room Event settings of the new Room
boost::shared_ptr< RoomExtension > Sfs2X::Requests::RoomSettings::Extension | ( | ) |
The Extension settings for the new Room
void Sfs2X::Requests::RoomSettings::Extension | ( | boost::shared_ptr< RoomExtension > | value | ) |
The Extension settings for the new Room
boost::shared_ptr< string > Sfs2X::Requests::RoomSettings::GroupId | ( | ) |
The id of the Room Group in which the new Room should be created
void Sfs2X::Requests::RoomSettings::GroupId | ( | string | value | ) |
The id of the Room Group in which the new Room should be created
bool Sfs2X::Requests::RoomSettings::IsGame | ( | ) |
Indicates if this is a Game Room
void Sfs2X::Requests::RoomSettings::IsGame | ( | bool | value | ) |
Indicates if this is a Game Room
short int Sfs2X::Requests::RoomSettings::MaxSpectators | ( | ) |
The maximum number of spectators allowed for this Room (only for Game Rooms)
void Sfs2X::Requests::RoomSettings::MaxSpectators | ( | short int | value | ) |
The maximum number of spectators allowed for this Room (only for Game Rooms)
short int Sfs2X::Requests::RoomSettings::MaxUsers | ( | ) |
The maximum number of users/players allowed in the Room
void Sfs2X::Requests::RoomSettings::MaxUsers | ( | short int | value | ) |
The maximum number of users/players allowed in the Room
short int Sfs2X::Requests::RoomSettings::MaxVariables | ( | ) |
The maximum number of Room Variables allowed for this Room
void Sfs2X::Requests::RoomSettings::MaxVariables | ( | short int | value | ) |
The maximum number of Room Variables allowed for this Room
boost::shared_ptr< string > Sfs2X::Requests::RoomSettings::Name | ( | ) |
The name of the new Room
void Sfs2X::Requests::RoomSettings::Name | ( | string | value | ) |
The name of the new Room
boost::shared_ptr< string > Sfs2X::Requests::RoomSettings::Password | ( | ) |
The password of the Room. If empty the Room will not be password protected
void Sfs2X::Requests::RoomSettings::Password | ( | string | value | ) |
The password of the Room. If empty the Room will not be password protected
boost::shared_ptr< RoomPermissions > Sfs2X::Requests::RoomSettings::Permissions | ( | ) |
The Room Permission settings of the new Room
void Sfs2X::Requests::RoomSettings::Permissions | ( | boost::shared_ptr< RoomPermissions > | value | ) |
The Room Permission settings of the new Room
boost::shared_ptr< vector< boost::shared_ptr< RoomVariable > > > Sfs2X::Requests::RoomSettings::Variables | ( | ) |
A list of Room Variables that should be attached to the newly created Room
void Sfs2X::Requests::RoomSettings::Variables | ( | boost::shared_ptr< vector< boost::shared_ptr< RoomVariable > > > | value | ) |
A list of Room Variables that should be attached to the newly created Room