// Copyright (c) 2024 Codemongous LLC. All Rights Reserved.

#pragma once

#include "ISCW_EngineVersionComparison.h"
#include "ISCW_FProperty.h"
#include "ISCW_UClass.h"
#include <memory>
#include <string>

using std::shared_ptr;
using std::wstring;

namespace Sourcify
{	
	class ISCW_FObjectPropertyBase : public virtual ISCW_FProperty
	{
	public:
		virtual ~ISCW_FObjectPropertyBase() = default;

#if ISCW_UE_VERSION_OLDER_THAN(5, 7, 0)
		virtual wstring GetCPPTypeCustom(wstring* ExtendedTypeText, SCW_EPropertyExportCPPFlags CPPExportFlags, const wstring& InnerNativeTypeName) const = 0;
#endif
		virtual ISCW_UClassPtr GetPropertyClass() const = 0;
		
		virtual shared_ptr<ISCW_FObjectPropertyBase> ToFObjectPropertyBasePtr() = 0;
		virtual shared_ptr<const ISCW_FObjectPropertyBase> ToFObjectPropertyBasePtr() const = 0;
	};

	using ISCW_FObjectPropertyBaseConstPtr = shared_ptr<const ISCW_FObjectPropertyBase>;
	using ISCW_FObjectPropertyBasePtr = shared_ptr<ISCW_FObjectPropertyBase>;
} // namespace Sourcify