Add NetworkReplicationNode::GetObject

This commit is contained in:
Wiktor Kocielski
2023-06-25 23:39:59 +03:00
parent 9282bcfbbf
commit cbd1e5c837
2 changed files with 19 additions and 0 deletions

View File

@@ -63,6 +63,17 @@ bool NetworkReplicationNode::RemoveObject(ScriptingObject* obj)
return !Objects.Remove(obj);
}
bool NetworkReplicationNode::GetObject(ScriptingObject* obj, NetworkReplicationHierarchyObject& result)
{
const int32 index = Objects.Find(obj);
if (index != -1)
{
result = Objects[index];
return true;
}
return false;
}
bool NetworkReplicationNode::DirtyObject(ScriptingObject* obj)
{
const int32 index = Objects.Find(obj);