// Copyright (c) 2012-2022 Wojciech Figat. All rights reserved.
#pragma once
#include "Types.h"
#include "Engine/Scripting/ScriptingObject.h"
#include "Engine/Scripting/ScriptingType.h"
///
/// High-level networking replication system for game objects.
///
API_CLASS(static, Namespace = "FlaxEngine.Networking") class FLAXENGINE_API NetworkReplicator
{
DECLARE_SCRIPTING_TYPE_MINIMAL(NetworkReplicator);
public:
///
/// Adds the object to the network replication system.
///
/// Does nothing if network is offline.
/// The object to replicate.
/// The owner of the object (eg. player that spawned it).
API_FUNCTION() static void AddObject(ScriptingObject* obj, ScriptingObject* owner);
};