本文整理汇总了C#中Room.GetRoomType方法的典型用法代码示例。如果您正苦于以下问题:C# Room.GetRoomType方法的具体用法?C# Room.GetRoomType怎么用?C# Room.GetRoomType使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Room
的用法示例。
在下文中一共展示了Room.GetRoomType方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
void Start()
{
m_controller.m_liveController.GetClientUserData(ref m_clientUser);
Room t_room = new Room();
string t_name = "";
ushort t_type = 0;
m_controller.m_liveController.GetRoomStateInfo(ref t_room);
t_name = t_room.GetRoomName();
t_type = t_room.GetRoomType();
m_currentRoom.SetRoomInfo(ref t_name, ref t_type);
m_controller.m_liveController.AddRPCIntrest(this,
(ushort)Function_Codes.FUNCTION_USER_NEWROOM);
}
示例2: StartClient
int StartClient()
{
if(m_controller.m_liveController.CheckDataSaved ())
{
m_controller.m_liveController.GetClientUserData(ref ClientUser);
Room t_room = new Room();
m_controller.m_liveController.GetRoomStateInfo(ref t_room);
string t_roomName = t_room.GetRoomName ();
ushort t_roomType = t_room.GetRoomType ();
m_currentRoom = new ChatRoom();
m_currentRoom.StartNewRoom (ref t_roomName, ref t_roomType);
m_currentRoom.AddUserToWindow(ref ClientUser.m_username);
m_chatClientState = (int)ChatState.CHAT;
return 0;
}
ClientUser.m_id = 0;
ClientUser.m_username = "";
m_chatClientState = (int)ChatState.LOGON;
m_currentRoom = new ChatRoom();
string name = "No Room";
ushort type = 0;
m_currentRoom.StartNewRoom(ref name, ref type);
//debug crap
return 0;
}