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: case eGameMessageType::REQUEST_VENDOR_STATUS_UPDATE:
GameMessages::SendVendorStatusUpdate(entity, sysAddr, true); GameMessages::SendVendorStatusUpdate(entity, sysAddr, true);
break; break;
case eGameMessageType::SELECT_SKILL:
GameMessages::HandleSelectSkill(inStream, entity, sysAddr);
break;
default: default:
LOG_DEBUG("Received Unknown GM with ID: %4i, %s", messageID, StringifiedEnum::ToString(messageID).data()); LOG_DEBUG("Received Unknown GM with ID: %4i, %s", messageID, StringifiedEnum::ToString(messageID).data());
break; break;

View File

@ -1215,6 +1215,15 @@ void GameMessages::SendRemoveSkill(Entity* entity, TSkillID skillID) {
SEND_PACKET; 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) { void GameMessages::SendFinishArrangingWithItem(Entity* entity, const LWOOBJID& buildArea) {
CBITSTREAM; CBITSTREAM;
CMSGHEADER; CMSGHEADER;

View File

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