Custom field improvements
This commit is contained in:
@@ -92,7 +92,7 @@ Entity :: struct {
|
||||
_locator: Bucket_Locator; @DontSerialize
|
||||
scene: *Scene; @DontSerialize
|
||||
|
||||
using custom_fields: Custom_Entity_Fields;
|
||||
using custom_fields: _Custom_Entity_Fields;
|
||||
}
|
||||
|
||||
add_child :: (e: *Entity, child: *Entity, node_name: string = "") {
|
||||
|
||||
@@ -22,7 +22,7 @@ Scene :: struct {
|
||||
|
||||
mode: Engine_Mode;
|
||||
|
||||
using custom_fields: Custom_Scene_Fields;
|
||||
using custom_fields: _Custom_Scene_Fields;
|
||||
}
|
||||
|
||||
Entity_File_Info :: struct {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#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;
|
||||
_Custom_Entity_Fields :: entity_fields;
|
||||
_Custom_Scene_Fields :: scene_fields;
|
||||
|
||||
Action :: action_type;
|
||||
EDITOR :: WITH_EDITOR;
|
||||
|
||||
Reference in New Issue
Block a user