Reduce compilation problems by moving FindObject fwd decl to be more commonly included

#1040
This commit is contained in:
Wojtek Figat
2023-05-05 16:10:09 +02:00
parent e93eb6aae6
commit 5d2a3482c7
3 changed files with 3 additions and 3 deletions

View File

@@ -267,3 +267,5 @@ API_CLASS(InBuild) class FLAXENGINE_API PersistentScriptingObject : public Scrip
public:
PersistentScriptingObject(const SpawnParams& params);
};
extern FLAXENGINE_API class ScriptingObject* FindObject(const Guid& id, class MClass* type);

View File

@@ -5,8 +5,6 @@
#include "Stream.h"
#include "Engine/Core/Templates.h"
extern FLAXENGINE_API class ScriptingObject* FindObject(const Guid& id, class MClass* type);
/// <summary>
/// Base class for all data read streams
/// </summary>

View File

@@ -456,7 +456,7 @@ namespace Serialization
Guid id;
Deserialize(stream, id, modifier);
modifier->IdsMapping.TryGet(id, id);
v = (T*)FindObject(id, T::GetStaticClass());
v = (T*)::FindObject(id, T::GetStaticClass());
}
// Scripting Object Reference