Custom scene fields module parameter
This commit is contained in:
@@ -61,7 +61,6 @@ Entity :: struct {
|
||||
|
||||
enabled: bool = true;
|
||||
|
||||
|
||||
parent: *Entity; @DontSerialize
|
||||
children: [MAX_CHILDREN] *Entity; @DontSerialize
|
||||
num_children: s64; @DontSerialize
|
||||
|
||||
@@ -21,6 +21,8 @@ Scene :: struct {
|
||||
directional_light : Directional_Light;
|
||||
|
||||
mode: Engine_Mode;
|
||||
|
||||
using custom_fields: Custom_Scene_Fields;
|
||||
}
|
||||
|
||||
Entity_File_Info :: struct {
|
||||
|
||||
@@ -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_Scene_Fields :: scene_fields;
|
||||
|
||||
Action :: action_type;
|
||||
EDITOR :: WITH_EDITOR;
|
||||
DEBUG :: true;
|
||||
|
||||
Reference in New Issue
Block a user