formatting
This commit is contained in:
parent
75c9ff4dbd
commit
d4387a873a
29
src/entity.h
29
src/entity.h
@ -104,6 +104,20 @@ struct entity {
|
|||||||
struct entity_handle first;
|
struct entity_handle first;
|
||||||
struct entity_handle last;
|
struct entity_handle last;
|
||||||
|
|
||||||
|
/* ====================================================================== */
|
||||||
|
/* Position */
|
||||||
|
|
||||||
|
/* Access with xform getters/setters */
|
||||||
|
struct xform local_xform; /* Transform in relation to parent entity (or the world if entity has no parent) */
|
||||||
|
struct xform cached_global_xform; /* Calculated from entity tree */
|
||||||
|
b32 cached_global_xform_dirty;
|
||||||
|
|
||||||
|
/* ====================================================================== */
|
||||||
|
/* Activation */
|
||||||
|
|
||||||
|
/* If 0, the entity will auto activate at start of next tick if not already active. */
|
||||||
|
u64 activation_tick;
|
||||||
|
|
||||||
/* ====================================================================== */
|
/* ====================================================================== */
|
||||||
/* Layer */
|
/* Layer */
|
||||||
|
|
||||||
@ -137,20 +151,6 @@ struct entity {
|
|||||||
/* ENTITY_PROP_MOUSE_JOINT */
|
/* ENTITY_PROP_MOUSE_JOINT */
|
||||||
struct phys_mouse_joint mouse_joint_data;
|
struct phys_mouse_joint mouse_joint_data;
|
||||||
|
|
||||||
/* ====================================================================== */
|
|
||||||
/* Activation */
|
|
||||||
|
|
||||||
/* If 0, the entity will auto activate at start of next tick if not already active. */
|
|
||||||
u64 activation_tick;
|
|
||||||
|
|
||||||
/* ====================================================================== */
|
|
||||||
/* Position */
|
|
||||||
|
|
||||||
/* Access with xform getters/setters */
|
|
||||||
struct xform local_xform; /* Transform in relation to parent entity (or the world if entity has no parent) */
|
|
||||||
struct xform cached_global_xform; /* Calculated from entity tree */
|
|
||||||
b32 cached_global_xform_dirty;
|
|
||||||
|
|
||||||
/* ====================================================================== */
|
/* ====================================================================== */
|
||||||
/* Control */
|
/* Control */
|
||||||
|
|
||||||
@ -277,6 +277,7 @@ struct entity {
|
|||||||
struct mixer_track_handle sound_handle;
|
struct mixer_track_handle sound_handle;
|
||||||
|
|
||||||
/* ====================================================================== */
|
/* ====================================================================== */
|
||||||
|
/* Camera */
|
||||||
|
|
||||||
/* ENTITY_PROP_CAMERA */
|
/* ENTITY_PROP_CAMERA */
|
||||||
struct entity_handle camera_follow;
|
struct entity_handle camera_follow;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user