Fix a comment and minor optimization to the server to client replication window

This commit is contained in:
karlberg
2021-05-06 17:35:48 -07:00
parent e7f0bc9ee2
commit 4b1fe9b10b
3 changed files with 13 additions and 14 deletions
@@ -27,7 +27,6 @@ namespace Multiplayer
class ServerToClientReplicationWindow
: public IReplicationWindow
, public AZ::EntitySystemBus::Handler
{
public:
@@ -56,11 +55,8 @@ namespace Multiplayer
//! @}
private:
//! EntitySystemBus interface
//! @{
void OnEntityActivated(const AZ::EntityId&) override;
void OnEntityDeactivated(const AZ::EntityId&) override;
//! @}
void OnEntityActivated(AZ::Entity* entity);
void OnEntityDeactivated(AZ::Entity* entity);
//void CollectControlledEntitiesRecursive(ReplicationSet& replicationSet, EntityHierarchyComponent::Authority& hierarchyController);
//void OnAddFilteredEntity(NetEntityId filteredEntityId);
@@ -79,6 +75,9 @@ namespace Multiplayer
NetworkEntityHandle m_controlledEntity;
AZ::TransformInterface* m_controlledEntityTransform = nullptr;
AZ::EntityActivatedEvent::Handler m_entityActivatedEventHandler;
AZ::EntityDeactivatedEvent::Handler m_entityDeactivatedEventHandler;
//FilteredEntityComponent::Authority* m_controlledFilteredEntityComponent = nullptr;
//NetBindComponent* m_controlledNetBindComponent = nullptr;