mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
[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:
parent
4df145d76a
commit
db7f8a461e
56 changed files with 112 additions and 165 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue