diff options
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -13,6 +13,7 @@ typedef enum { ED_ACTION_RENAME, ED_ACTION_MODEL, ED_ACTION_PHYSICS, + ED_ACTION_TIME, } EditorActionTag; typedef union { @@ -31,6 +32,10 @@ typedef union { char *name; } rename; + struct { + f32 day_cur, day_len; + } time; + ModelCmp model; PhysicsCmp physics; } EditorActionData; @@ -59,6 +64,7 @@ typedef enum { ED_PNL_TYPE_ASSET_PICKER, ED_PNL_TYPE_PHYSICS_ELEMENTS, ED_PNL_TYPE_PHYSICS_PROPERTIES, + ED_PNL_TYPE_TIME, ED_PNL_TYPE_CMD, } EditorPanelType; @@ -91,6 +97,9 @@ typedef struct { CameraInfo scene_cam; bool draw_physics; + f32 time_preview; /* preview phase, 0 inclusive to 1 exclusive */ + bool time_preview_playing; + EditorModeTag mode, prev_mode; EditorInteraction interact; EditorPanelContainer focus; |
