ECS improvements!

This commit is contained in:
2025-08-21 18:58:34 -05:00
parent 9f5894cdcb
commit 1b4c270ccb
8 changed files with 70 additions and 37 deletions

View File

@@ -6,7 +6,7 @@
*/
#pragma once
#include "ecs/ecsentity.h"
#include "ecs/ecscomponent.h"
#define SCENE_ITEM_CHILD_MAX 16
@@ -16,11 +16,8 @@ typedef struct {
ecsid_t parent;
} scenetreenode_t;
typedef struct scene_s {
scenetreenode_t items[ECS_ENTITY_COUNT_MAX];
} scenetree_t;
extern scenetree_t SCENE_TREE;
extern scenetreenode_t SCENE_TREE_DATA[ECS_ENTITY_COUNT_MAX];
extern ecscomponent_t SCENE_TREE_COMPONENT;
/**
* Initialize the scene tree.