Comments cleanup
Signed-off-by: AMZN-Olex <5432499+AMZN-Olex@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ namespace Multiplayer
|
|||||||
//! @class NetworkHierarchyRootComponent
|
//! @class NetworkHierarchyRootComponent
|
||||||
//! @brief Component that declares the top level entity of a network hierarchy.
|
//! @brief Component that declares the top level entity of a network hierarchy.
|
||||||
/*
|
/*
|
||||||
* Call @GetHierarchyChildren to get the list of hierarchical entities.
|
* Call @GetHierarchicalEntities to get the list of hierarchical entities.
|
||||||
* A network hierarchy is meant to be a small group of entities. You can control the maximum supported size of
|
* A network hierarchy is meant to be a small group of entities. You can control the maximum supported size of
|
||||||
* a network hierarchy by modifying CVar @bg_hierarchyEntityMaxLimit.
|
* a network hierarchy by modifying CVar @bg_hierarchyEntityMaxLimit.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ namespace Multiplayer
|
|||||||
if (AZ::EditContext* editContext = serializeContext->GetEditContext())
|
if (AZ::EditContext* editContext = serializeContext->GetEditContext())
|
||||||
{
|
{
|
||||||
editContext->Class<NetworkHierarchyChildComponent>(
|
editContext->Class<NetworkHierarchyChildComponent>(
|
||||||
"Network Hierarchy Child", "declares a network dependency on the root of this hierarchy")
|
"Network Hierarchy Child", "Declares a network dependency on the root of this hierarchy.")
|
||||||
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
||||||
->Attribute(AZ::Edit::Attributes::Category, "Multiplayer")
|
->Attribute(AZ::Edit::Attributes::Category, "Multiplayer")
|
||||||
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
|
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ namespace Multiplayer
|
|||||||
if (AZ::EditContext* editContext = serializeContext->GetEditContext())
|
if (AZ::EditContext* editContext = serializeContext->GetEditContext())
|
||||||
{
|
{
|
||||||
editContext->Class<NetworkHierarchyRootComponent>(
|
editContext->Class<NetworkHierarchyRootComponent>(
|
||||||
"Network Hierarchy Root", "marks the entity as the root of an entity hierarchy")
|
"Network Hierarchy Root", "Marks the entity as the root of an entity hierarchy.")
|
||||||
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
|
||||||
->Attribute(AZ::Edit::Attributes::Category, "Multiplayer")
|
->Attribute(AZ::Edit::Attributes::Category, "Multiplayer")
|
||||||
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
|
->Attribute(AZ::Edit::Attributes::AppearsInAddComponentMenu, AZ_CRC_CE("Game"))
|
||||||
|
|||||||
@@ -287,8 +287,8 @@ namespace Multiplayer
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Parent -> Child
|
* Parent -> Child -> ChildOfChild
|
||||||
*/
|
*/
|
||||||
class ClientDeepHierarchyTests : public ClientSimpleHierarchyTests
|
class ClientDeepHierarchyTests : public ClientSimpleHierarchyTests
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -66,9 +66,6 @@ namespace Multiplayer
|
|||||||
PopulateHierarchicalEntity(child);
|
PopulateHierarchicalEntity(child);
|
||||||
SetupEntity(child.m_entity, child.m_netId, NetEntityRole::Authority);
|
SetupEntity(child.m_entity, child.m_netId, NetEntityRole::Authority);
|
||||||
|
|
||||||
//// we need a parent-id value to be present in NetworkTransformComponent (which is in client mode and doesn't have a controller)
|
|
||||||
//SetParentIdOnNetworkTransform(child.m_entity, root.m_netId);
|
|
||||||
|
|
||||||
// Create an entity replicator for the child entity
|
// Create an entity replicator for the child entity
|
||||||
const NetworkEntityHandle childHandle(&child.m_entity, m_networkEntityTracker.get());
|
const NetworkEntityHandle childHandle(&child.m_entity, m_networkEntityTracker.get());
|
||||||
child.m_replicator = AZStd::make_unique<EntityReplicator>(*m_entityReplicationManager, m_mockConnection.get(), NetEntityRole::Client, childHandle);
|
child.m_replicator = AZStd::make_unique<EntityReplicator>(*m_entityReplicationManager, m_mockConnection.get(), NetEntityRole::Client, childHandle);
|
||||||
|
|||||||
Reference in New Issue
Block a user