Comment cleanup
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Multiplayer
|
|||||||
virtual void OnNetworkHierarchyUpdated([[maybe_unused]] const AZ::EntityId& rootEntityId) {}
|
virtual void OnNetworkHierarchyUpdated([[maybe_unused]] const AZ::EntityId& rootEntityId) {}
|
||||||
|
|
||||||
//! Called when an entity has left a hierarchy
|
//! Called when an entity has left a hierarchy
|
||||||
virtual void OnLeavingNetworkHierarchy() {}
|
virtual void OnNetworkHierarchyLeave() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef AZ::EBus<NetworkHierarchyNotifications> NetworkHierarchyNotificationBus;
|
typedef AZ::EBus<NetworkHierarchyNotifications> NetworkHierarchyNotificationBus;
|
||||||
|
|||||||
+2
-1
@@ -39,13 +39,14 @@ namespace Multiplayer
|
|||||||
|
|
||||||
NetworkHierarchyChildComponent();
|
NetworkHierarchyChildComponent();
|
||||||
|
|
||||||
|
//! NetworkHierarchyChildComponentBase overrides.
|
||||||
//! @{
|
//! @{
|
||||||
void OnInit() override;
|
void OnInit() override;
|
||||||
void OnActivate(Multiplayer::EntityIsMigrating entityIsMigrating) override;
|
void OnActivate(Multiplayer::EntityIsMigrating entityIsMigrating) override;
|
||||||
void OnDeactivate(Multiplayer::EntityIsMigrating entityIsMigrating) override;
|
void OnDeactivate(Multiplayer::EntityIsMigrating entityIsMigrating) override;
|
||||||
//! @}
|
//! @}
|
||||||
|
|
||||||
//! NetworkHierarchyRequestBus overrides
|
//! NetworkHierarchyRequestBus overrides.
|
||||||
//! @{
|
//! @{
|
||||||
bool IsHierarchicalChild() const override;
|
bool IsHierarchicalChild() const override;
|
||||||
bool IsHierarchicalRoot() const override { return false; }
|
bool IsHierarchicalRoot() const override { return false; }
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ namespace Multiplayer
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
controller->SetHierarchyRoot(InvalidNetEntityId);
|
controller->SetHierarchyRoot(InvalidNetEntityId);
|
||||||
NetworkHierarchyNotificationBus::Event(GetEntityId(), &NetworkHierarchyNotificationBus::Events::OnLeavingNetworkHierarchy);
|
NetworkHierarchyNotificationBus::Event(GetEntityId(), &NetworkHierarchyNotificationBus::Events::OnNetworkHierarchyLeave);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user