Fixed #308 and added foundation work for chat channels

This commit is contained in:
Waverunner
2014-03-29 16:47:05 -04:00
parent ac2f2e1e17
commit dfab6ac265
17 changed files with 668 additions and 17 deletions
+5 -2
View File
@@ -61,6 +61,7 @@ import com.sleepycat.persist.model.PrimaryKey;
import protocol.swg.ChatFriendsListUpdate;
import protocol.swg.ChatOnChangeFriendStatus;
import protocol.swg.ChatOnGetFriendsList;
import protocol.swg.ChatRoomList;
import protocol.swg.CmdSceneReady;
import protocol.swg.CmdStartScene;
import protocol.swg.HeartBeatMessage;
@@ -168,9 +169,9 @@ public class ObjectService implements INetworkDispatch {
object.getContainerInfo(object.getTemplate());
}
});
});
}
cursor.close();
}
public void loadServerTemplates() {
@@ -661,6 +662,8 @@ public class ObjectService implements INetworkDispatch {
core.simulationService.handleZoneIn(client);
creature.makeAware(creature);
ChatRoomList chatRooms = new ChatRoomList(core.chatService.getChatRooms());
creature.getClient().getSession().write(chatRooms.serialize());
//ChatOnGetFriendsList friendsListMessage = new ChatOnGetFriendsList(ghost);
//client.getSession().write(friendsListMessage.serialize());