entity_ui_proc generation
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user