#pragma once

#include "RE/B/BSExtraData.h"
#include "RE/E/ExtraDataTypes.h"
#include "RE/N/NiPoint3.h"

namespace RE
{
	class BGSLocation;
	class TESObjectREFR;

	struct FILE_POS_ROT
	{
		NiPoint3 pos;  // 00
		NiPoint3 rot;  // 0C
	};
	static_assert(sizeof(FILE_POS_ROT) == 0x18);

	class ExtraStartingPosition : public BSExtraData
	{
	public:
		inline static constexpr auto RTTI = RTTI_ExtraStartingPosition;
		inline static constexpr auto VTABLE = VTABLE_ExtraStartingPosition;
		inline static constexpr auto EXTRADATATYPE = ExtraDataType::kStartingPosition;

		~ExtraStartingPosition() override;  // 00

		// override (BSExtraData)
		ExtraDataType GetType() const override;                             // 01 - { return kStartingPosition; }
		bool          IsNotEqual(const BSExtraData* a_rhs) const override;  // 02 - { return location != a_rhs->location || startPosition.pos != a_rhs->startPosition.pos || startPosition.rot != a_rhs->startPosition.rot; }

		// members
		FILE_POS_ROT startPosition;  // 10
		BGSLocation* location;       // 28
	};
	static_assert(sizeof(ExtraStartingPosition) == 0x30);
}
