#pragma once

#include "../../../GAME_COMMON.h"
#include "../../ecs_entity.h"

#include "../../../input/input.h"

#include "../component_physics.h"
#include "../action/component_action_redirect.h"
#include "../action/component_action_return.h"
#include "../action/component_action_lock.h"
#include "../stat/component_redirect.h"

typedef struct ComponentControlRedirect
{
	ECSComponent component;
	u32 cooldown;
	u32 cooldownMax;
} ComponentControlRedirect;

void component_control_redirect_init(ComponentControlRedirect* self, u32 cooldown);
void component_control_redirect_tick(ComponentControlRedirect* self, ECS* ecs);

static const ECSComponentInfo COMPONENT_CONTROL_REDIRECT_INFO = 
{
	.system = 
	{
		.functions = 
		{ 
			NULL,
			NULL, 
			(ECSFunction)component_control_redirect_tick,
			NULL
		}
	},
	.type = ECS_COMPONENT_CONTROL_REDIRECT,
	.size = sizeof(ComponentControlRedirect)
};
