Monobit Unity Networking ver.2.8.0 Server API Reference (C++)
STREAM::RoomInfo Class Reference

ルーム情報. More...

#include <MunStream.hpp>

Collaboration diagram for STREAM::RoomInfo:

Public Member Functions

 RoomInfo ()
 コンストラクタ.
 
 RoomInfo (Text &_name, uint32 _maxPlayers, uint8 _isVisible, uint8 _isOpen, int32 _hostId, uint32 _playersLen, KeyValue *_roomParameters, uint16 _roomParametersLen, Text *_lobbyParameters, uint16 _lobbyParametersLen)
 コンストラクタ. More...
 
RoomInfooperator= (const RoomInfo &rRef)
 代入処理. More...
 
uint32 Size ()
 データサイズの取得. More...
 
bool Pack (MunBuffer &buffer)
 MunBufferへのパッキング. More...
 
bool Unpack (MunBuffer &buffer)
 MunBufferからのアンパッキング. More...
 

Public Attributes

Text name
 ルーム名. More...
 
uint32 maxPlayers
 ルーム内プレイヤー人数の上限. More...
 
uint8 isVisible
 ルーム情報をロビーに通知するかどうかのフラグ. More...
 
uint8 isOpen
 他プレイヤーのルーム入室を許可するかどうかのフラグ. More...
 
int32 hostId
 ホストID. More...
 
uint32 playersLen
 プレイヤーの登録数. More...
 
KeyValue roomParameters [ROOM_PARAMETERS_MAX]
 ルームパラメータ. More...
 
uint16 roomParametersLen
 ルームパラメータの登録数. More...
 
Text lobbyParameters [LOBBY_PARAMETERS_MAX]
 ロビー通知パラメータ. More...
 
uint16 lobbyParametersLen
 ロビー通知パラメータの登録数. More...
 

Detailed Description

ルーム情報.

Constructor & Destructor Documentation

STREAM::RoomInfo::RoomInfo ( Text _name,
uint32  _maxPlayers,
uint8  _isVisible,
uint8  _isOpen,
int32  _hostId,
uint32  _playersLen,
KeyValue _roomParameters,
uint16  _roomParametersLen,
Text _lobbyParameters,
uint16  _lobbyParametersLen 
)

コンストラクタ.

Parameters
_nameルーム名.
_maxPlayersルーム内プレイヤー人数の上限.
_isVisibleルーム情報をロビーに通知するかどうかのフラグ.
_isOpen他プレイヤーのルーム入室を許可するかどうかのフラグ.
_hostIdホストID.
_playersLenプレイヤーの登録数.
_roomParametersルームパラメータの先頭アドレス.
_roomParametersLen_roomParametersの登録数.
_lobbyParametersロビー通知パラメータの先頭アドレス.
_lobbyParametersLen_lobbyParametersの登録数.

Member Function Documentation

RoomInfo& STREAM::RoomInfo::operator= ( const RoomInfo rRef)

代入処理.

Parameters
rRef代入値.
bool STREAM::RoomInfo::Pack ( MunBuffer buffer)

MunBufferへのパッキング.

Parameters
bufferMunBufferクラスオブジェクト.

Here is the call graph for this function:

Here is the caller graph for this function:

uint32 STREAM::RoomInfo::Size ( )

データサイズの取得.

Returns
uint32 データサイズを返す.

Here is the call graph for this function:

Here is the caller graph for this function:

bool STREAM::RoomInfo::Unpack ( MunBuffer buffer)

MunBufferからのアンパッキング.

Parameters
bufferMunBufferクラスオブジェクト.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int32 STREAM::RoomInfo::hostId

ホストID.

uint8 STREAM::RoomInfo::isOpen

他プレイヤーのルーム入室を許可するかどうかのフラグ.

uint8 STREAM::RoomInfo::isVisible

ルーム情報をロビーに通知するかどうかのフラグ.

Text STREAM::RoomInfo::lobbyParameters[LOBBY_PARAMETERS_MAX]

ロビー通知パラメータ.

uint16 STREAM::RoomInfo::lobbyParametersLen

ロビー通知パラメータの登録数.

uint32 STREAM::RoomInfo::maxPlayers

ルーム内プレイヤー人数の上限.

Text STREAM::RoomInfo::name

ルーム名.

uint32 STREAM::RoomInfo::playersLen

プレイヤーの登録数.

KeyValue STREAM::RoomInfo::roomParameters[ROOM_PARAMETERS_MAX]

ルームパラメータ.

uint16 STREAM::RoomInfo::roomParametersLen

ルームパラメータの登録数.


The documentation for this class was generated from the following file: