entity_ui_proc generation

This commit is contained in:
2024-11-28 00:15:07 +01:00
parent ff74156d60
commit 80de060002
4 changed files with 170 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
#placeholder serialize_entity;
#placeholder deserialize_entity;
#placeholder duplicate_entity;
#placeholder entity_ui;
MAX_CACHED_PILES :: 8;
last_unnamed_scene_id := 0;
@@ -262,6 +263,14 @@ update_entity_transform :: (e: *Entity, parent_matrix: Matrix4 = Matrix4_Identit
}
}
get_entity_with_id :: (scene: *Scene, id: s64) -> *Entity {
for scene.entities {
if it.id == id return it;
}
return null;
}
#scope_file
next_entity_id: Entity_Id;