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

#pragma once
#include "ISCW_UObject.h"

#include <memory>
#include <string>

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

namespace Sourcify
{
	class ISCW_FComponentKey;
	class ISCW_UActorComponent;

	class ISCW_UInheritableComponentHandler : public virtual ISCW_UObject
	{
	public:
		virtual ~ISCW_UInheritableComponentHandler() = default;
		
		virtual shared_ptr<ISCW_UInheritableComponentHandler> ToUInheritableComponentHandlerPtr() = 0;
		virtual shared_ptr<const ISCW_UInheritableComponentHandler> ToUInheritableComponentHandlerPtr() const = 0;

		virtual shared_ptr<ISCW_UActorComponent> CreateOverridenComponentTemplate(shared_ptr<ISCW_FComponentKey> Key) = 0;

		virtual shared_ptr<ISCW_UActorComponent> GetOverridenComponentTemplate(shared_ptr<ISCW_FComponentKey> Key) const = 0;
	};

	using ISCW_UInheritableComponentHandlerConstPtr = shared_ptr<const ISCW_UInheritableComponentHandler>;
	using ISCW_UInheritableComponentHandlerPtr = shared_ptr<ISCW_UInheritableComponentHandler>;
} // namespace Sourcify