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; }