예제 #1
0
void ChatRoomImplementation::sendTo(CreatureObject* player) {
	ChatRoomList* crl = new ChatRoomList();
	crl->addChannel(_this.get());

	crl->insertChannelListCount();
	player->sendMessage(crl);
}
void ChatManagerImplementation::sendRoomList(CreatureObject* player) {
	ChatRoomList* crl = new ChatRoomList();

	String game = "SWG";
	populateRoomListMessage(gameRooms.get(game), crl);

	crl->insertChannelListCount();
	player->sendMessage(crl);
}