sig/network - bugfix - removal of player prefabs on disconnect

sig/network - bugfix - removal of player prefabs on disconnect
This commit is contained in:
Olex Lozitskiy
2021-06-24 15:01:41 -05:00
committed by GitHub
6 changed files with 30 additions and 22 deletions
@@ -1673,12 +1673,18 @@ namespace {{ Component.attrib['Namespace'] }}
void {{ ComponentBaseName }}::ActivateController(Multiplayer::EntityIsMigrating entityIsMigrating)
{
m_controller.get()->Activate(entityIsMigrating);
if (m_controller)
{
m_controller->Activate(entityIsMigrating);
}
}
void {{ ComponentBaseName }}::DeactivateController(Multiplayer::EntityIsMigrating entityIsMigrating)
{
m_controller.get()->Deactivate(entityIsMigrating);
if (m_controller)
{
m_controller->Deactivate(entityIsMigrating);
}
}
void {{ ComponentBaseName }}::NetworkAttach(Multiplayer::NetBindComponent* netBindComponent, Multiplayer::ReplicationRecord& currentEntityRecord, Multiplayer::ReplicationRecord& predictableEntityRecord)