Add FlagComponent and msg handlers

This commit is contained in:
David Markowitz
2025-01-20 02:53:21 -08:00
parent e4c2eecbc7
commit af2ba5b287
53 changed files with 781 additions and 486 deletions

View File

@@ -1044,10 +1044,12 @@ void HandlePacket(Packet* packet) {
switch (version) {
case eCharacterVersion::RELEASE:
// TODO: Implement, super low priority
case eCharacterVersion::LIVE:
case eCharacterVersion::LIVE: {
LOG("Updating Character Flags");
c->SetRetroactiveFlags();
GameMessages::SetRetroactiveFlags flags{};
SEND_ENTITY_MSG(flags);
levelComponent->SetCharacterVersion(eCharacterVersion::PLAYER_FACTION_FLAGS);
}
case eCharacterVersion::PLAYER_FACTION_FLAGS:
LOG("Updating Vault Size");
player->RetroactiveVaultSize();