Custom scene fields module parameter

This commit is contained in:
2025-06-26 23:25:31 +02:00
parent 02b7d1550f
commit ac7a564f6f
3 changed files with 6 additions and 2 deletions

View File

@@ -61,7 +61,6 @@ Entity :: struct {
enabled: bool = true; enabled: bool = true;
parent: *Entity; @DontSerialize parent: *Entity; @DontSerialize
children: [MAX_CHILDREN] *Entity; @DontSerialize children: [MAX_CHILDREN] *Entity; @DontSerialize
num_children: s64; @DontSerialize num_children: s64; @DontSerialize

View File

@@ -21,6 +21,8 @@ Scene :: struct {
directional_light : Directional_Light; directional_light : Directional_Light;
mode: Engine_Mode; mode: Engine_Mode;
using custom_fields: Custom_Scene_Fields;
} }
Entity_File_Info :: struct { Entity_File_Info :: struct {

View File

@@ -1,6 +1,9 @@
#module_parameters(WITH_EDITOR := true, WITH_NETWORKING := false, action_type : Type, entity_fields: Type); #module_parameters(WITH_EDITOR := true, WITH_NETWORKING := false, action_type : Type, entity_fields: Type, scene_fields: Type);
// TODO: Add a fallback, if none we're specified
Custom_Entity_Fields :: entity_fields; Custom_Entity_Fields :: entity_fields;
Custom_Scene_Fields :: scene_fields;
Action :: action_type; Action :: action_type;
EDITOR :: WITH_EDITOR; EDITOR :: WITH_EDITOR;
DEBUG :: true; DEBUG :: true;