ecs: code reduction

isolation_bkp/dynres
Dominik Madarász 2021-07-27 14:47:05 +02:00
parent 022f3870b8
commit 498fa25e36
2 changed files with 2 additions and 15 deletions

View File

@ -2,16 +2,9 @@
#include "flecs/flecs.h"
typedef struct {
ECS_DECLARE_ENTITY(MoveWalk);
ECS_DECLARE_ENTITY(UpdateTrackerPos);
ECS_DECLARE_ENTITY(IntegratePositions);
ECS_DECLARE_ENTITY(PushOutOverlappingEntities);
// NOTE(zaklaus): Public systems are exposed here
} Systems;
#define SystemsImportHandles(handles)\
ECS_IMPORT_ENTITY(handles, MoveWalk);\
ECS_IMPORT_ENTITY(handles, UpdateTrackerPos);\
ECS_IMPORT_ENTITY(handles, IntegratePositions);\
ECS_IMPORT_ENTITY(handles, PushOutOverlappingEntities);\
#define SystemsImportHandles(handles) (void)(handles)
void SystemsImport(ecs_world_t *ecs);

View File

@ -184,10 +184,4 @@ void SystemsImport(ecs_world_t *ecs) {
//ECS_SYSTEM(ecs, PushOutOverlappingEntities, EcsOnValidate, components.Position, Velocity);
ECS_SYSTEM(ecs, UpdateTrackerPos, EcsPostUpdate, components.Position);
ECS_SET_ENTITY(MoveWalk);
ECS_SET_ENTITY(UpdateTrackerPos);
ECS_SET_ENTITY(IntegratePositions);
//ECS_SET_ENTITY(PushOutOverlappingEntities);
}