This commit is contained in:
Aaron Kimbre 2023-12-27 17:44:38 -06:00
parent 46ac039a3b
commit 0d08d6e471
3 changed files with 13 additions and 0 deletions

View File

@ -693,6 +693,9 @@ void GameMessageHandler::HandleMessage(RakNet::BitStream* inStream, const System
case eGameMessageType::REQUEST_VENDOR_STATUS_UPDATE:
GameMessages::SendVendorStatusUpdate(entity, sysAddr, true);
break;
case eGameMessageType::SELECT_SKILL:
GameMessages::HandleSelectSkill(inStream, entity, sysAddr);
break;
default:
LOG_DEBUG("Received Unknown GM with ID: %4i, %s", messageID, StringifiedEnum::ToString(messageID).data());
break;

View File

@ -1215,6 +1215,15 @@ void GameMessages::SendRemoveSkill(Entity* entity, TSkillID skillID) {
SEND_PACKET;
}
void GameMessages::HandleSelectSkill(RakNet::BitStream* inStream, Entity* entity, const SystemAddress& sysAddr){
bool bFromSkillSet = false;
TSkillID skillID = 0;
inStream->Read(bFromSkillSet);
inStream->Read(skillID);
LOG("skill set: %i, skillID: %i", bFromSkillSet, skillID);
}
void GameMessages::SendFinishArrangingWithItem(Entity* entity, const LWOOBJID& buildArea) {
CBITSTREAM;
CMSGHEADER;

View File

@ -125,6 +125,7 @@ namespace GameMessages {
void SendAddSkill(Entity* entity, TSkillID skillID, BehaviorSlot slotID);
void SendRemoveSkill(Entity* entity, TSkillID skillID);
void HandleSelectSkill(RakNet::BitStream* inStream, Entity* entity, const SystemAddress& sysAddr);
void SendFinishArrangingWithItem(Entity* entity, const LWOOBJID& buildAreaID);
void SendModularBuildEnd(Entity* entity);