mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-06 10:44:08 +00:00
Possessor and possessable additions (#619)
* possessor-fixup and possessable additions * comment and docstring fixes * fix possessable initialization * split animation flags into it's own header remove unnecessary checks
This commit is contained in:
@@ -95,14 +95,6 @@ void SGCannon::OnActivityStateChangeRequest(Entity *self, LWOOBJID senderID, int
|
||||
Game::logger->Log("SGCannon", "Shooting gallery component is null\n");
|
||||
}
|
||||
|
||||
auto* possessorComponent = player->GetComponent<PossessorComponent>();
|
||||
|
||||
/*if (possessorComponent != nullptr) {
|
||||
possessorComponent->SetPossessable(self->GetObjectID());
|
||||
|
||||
EntityManager::Instance()->SerializeEntity(player);
|
||||
}*/
|
||||
|
||||
auto* characterComponent = player->GetComponent<CharacterComponent>();
|
||||
|
||||
if (characterComponent != nullptr) {
|
||||
@@ -111,7 +103,7 @@ void SGCannon::OnActivityStateChangeRequest(Entity *self, LWOOBJID senderID, int
|
||||
auto possessor = player->GetComponent<PossessorComponent>();
|
||||
if(possessor) {
|
||||
possessor->SetPossessable(self->GetObjectID());
|
||||
possessor->SetPossessableType(0);
|
||||
possessor->SetPossessableType(ePossessionType::NO_POSSESSION);
|
||||
}
|
||||
|
||||
EntityManager::Instance()->SerializeEntity(player);
|
||||
|
Reference in New Issue
Block a user