#pragma once

#include "GenericContainer.h"

namespace Jazz2::Actors::Solid
{
	/** @brief Gem barrel */
	class GemBarrel : public GenericContainer
	{
		DEATH_RUNTIME_OBJECT(GenericContainer);

	public:
		GemBarrel();

		bool OnHandleCollision(std::shared_ptr<ActorBase> other) override;

		static void Preload(const ActorActivationDetails& details);

	protected:
		Task<bool> OnActivatedAsync(const ActorActivationDetails& details) override;
		bool OnPerish(ActorBase* collider) override;
	};
}