Add NetworkReplicationNode::SetObject to customize object replication settings at runtime
This commit is contained in:
@@ -74,6 +74,17 @@ bool NetworkReplicationNode::GetObject(ScriptingObject* obj, NetworkReplicationH
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NetworkReplicationNode::SetObject(const NetworkReplicationHierarchyObject& value)
|
||||
{
|
||||
const int32 index = Objects.Find(value.Object);
|
||||
if (index != -1)
|
||||
{
|
||||
Objects[index] = value;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool NetworkReplicationNode::DirtyObject(ScriptingObject* obj)
|
||||
{
|
||||
const int32 index = Objects.Find(obj);
|
||||
|
||||
Reference in New Issue
Block a user