[ecs] Move ECS core into its own library

While the libraries are probably getting a little out of hand, the
separation into its own directory is probably a good thing as an ECS
should not be tied to scenes. This should make the ECS more generally
useful.
This commit is contained in:
Bill Currie 2022-10-26 15:22:09 +09:00
parent 4df145d76a
commit db7f8a461e
56 changed files with 112 additions and 165 deletions

View file

@ -41,9 +41,7 @@
#include "QF/skin.h"
#include "QF/sys.h"
#include "QF/scene/component.h"
#include "QF/scene/entity.h"
#include "QF/scene/scene.h"
#include "compat.h"
@ -369,7 +367,7 @@ CL_AddFlagModels (entity_t ent, int team, int key)
transform_t ftransform = Entity_Transform (fent);
transform_t transform = Entity_Transform (ent);
if (!Transform_Valid (Transform_GetParent (ftransform))) {
Transform_SetParent (cl_world.scene, ftransform, transform);
Transform_SetParent (ftransform, transform);
}
CL_UpdateFlagModels (ent, key);
@ -391,7 +389,7 @@ CL_RemoveFlagModels (int key)
cl_world.scene->reg);
transform_t transform = Entity_Transform (fent);
*active = 0;
Transform_SetParent (cl_world.scene, transform, nulltransform);
Transform_SetParent (transform, nulltransform);
}
/*