37 lines
1.0 KiB
C
37 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include "component/action/component_shoot.h"
|
|
#include "component/action/component_return.h"
|
|
#include "component/component_game_object.h"
|
|
#include "component/component_physics.h"
|
|
#include "component/component_sprite.h"
|
|
#include "component/control/component_control_aim.h"
|
|
#include "component/control/component_control_move.h"
|
|
#include "component/control/component_control_shoot.h"
|
|
#include "component/stat/component_ammo.h"
|
|
#include "component/stat/component_health.h"
|
|
#include "component/stat/component_lifetime.h"
|
|
|
|
#include "ecs_component.h"
|
|
|
|
static const ECSComponentInfo ECS_COMPONENT_INFO[ECS_COMPONENT_COUNT] =
|
|
{
|
|
COMPONENT_PHYSICS_INFO,
|
|
COMPONENT_SHOOT_INFO,
|
|
COMPONENT_RETURN_INFO,
|
|
COMPONENT_CONTROL_MOVE_INFO,
|
|
COMPONENT_CONTROL_SHOOT_INFO,
|
|
COMPONENT_CONTROL_AIM_INFO,
|
|
COMPONENT_HEALTH_INFO,
|
|
COMPONENT_AMMO_INFO,
|
|
COMPONENT_SPRITE_INFO,
|
|
COMPONENT_GAME_OBJECT_INFO,
|
|
COMPONENT_LIFETIME_INFO
|
|
};
|
|
|
|
void ecs_tick(ECS* self);
|
|
void ecs_draw(ECS* self);
|
|
void ecs_init(ECS* self, Game* game);
|
|
void ecs_clear(ECS* self);
|
|
void ecs_free(ECS* self);
|