private void StartAckEvent(string reqData, Hashtable roomList, Hashtable roomClassList) { //"StartReq"+roomNo+validUid roomData = reqData.Split(':'); try { /*roomClassList: key = room title, value = room class *roomList: key = host id, value = room title */ room = (RoomHandler)roomClassList[roomData[1]]; if (room.isFull == false) Send("GuestNotArriveNoti"); else if (room.isReady == true) { room.isStart = true; //call start game function to allocate a game class instance room.startGame(); room.SendToClient(roomData[1] + ":StartAck"); //remove a room number from a list, so that it doesn't appear on the lobby roomList.Remove(roomData[2]); } else Send("GuestNotReadyNoti"); } //Handle Exception catch (Exception ex) { Console.WriteLine(ex); return; } }