Rework input

This commit is contained in:
2023-12-05 14:38:11 +01:00
parent 8d01f328f9
commit ae1c21bdfc
6 changed files with 69 additions and 26 deletions

View File

@@ -47,10 +47,11 @@ extern ECS_COMPONENT_DECLARE(Owner);
typedef BzSpatialGridID SpatialGridID;
extern ECS_COMPONENT_DECLARE(SpatialGridID);
typedef Vector2 Position, Size, Velocity;
typedef Vector2 Position, Size, Velocity, Offset;
extern ECS_COMPONENT_DECLARE(Position);
extern ECS_COMPONENT_DECLARE(Size);
extern ECS_COMPONENT_DECLARE(Velocity);
extern ECS_COMPONENT_DECLARE(Offset);
typedef f32 Rotation, AngularVelocity;
extern ECS_COMPONENT_DECLARE(Rotation);
extern ECS_COMPONENT_DECLARE(AngularVelocity);
@@ -94,6 +95,12 @@ typedef struct Path {
} Path;
extern ECS_COMPONENT_DECLARE(Path);
typedef struct EntityArms {
ecs_entity_t left;
ecs_entity_t right;
} EntityArms;
//extern ECS_COMPONENT_DECLARE(EntityArms);
void initComponentIDs(ecs_world_t *ecs);