Fix a comment and minor optimization to the server to client replication window
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user