Server state query works, client doesn't use the result yet

Both sides of this message uses QUERY_CHARACTER_EXISTS because I'm just
trying to push forward, without worrying about mistakes I might be making.
I just want to merge this back into the main branch so I can say that I've
actually done something over the last few months.
This commit is contained in:
Kayne Ruse
2014-12-11 08:02:38 +11:00
parent 72f641bf63
commit ae046977f0
6 changed files with 33 additions and 70 deletions
+10
View File
@@ -71,6 +71,16 @@ void ServerApplication::HandleRegionRequest(RegionPacket* const argPacket) {
network.SendTo(argPacket->srcAddress, static_cast<SerialPacket*>(&newPacket));
}
void ServerApplication::HandleCharacterExists(CharacterPacket* const argPacket) {
//respond with all character data
CharacterPacket newPacket;
for (auto& it : *characterMgr.GetContainer()) {
CopyCharacterToPacket(&newPacket, it.first);
newPacket.type = SerialPacketType::QUERY_CHARACTER_EXISTS;
network.SendTo(argPacket->srcAddress, static_cast<SerialPacket*>(&newPacket));
}
}
//-------------------------
//Character Management
//-------------------------