X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.h;h=72a666744a4d30bd264b03615e924ac5206a7bf9;hb=2c91a71533b4ce86b9e7fd708420ae05c74d8f52;hp=472ab36a34d9acc46156a891a5185346238d7c49;hpb=14b3d5c13faab36bd37ae27aa8c1501ba7146f89;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.h b/entity.h index 472ab36..72a6667 100644 --- a/entity.h +++ b/entity.h @@ -26,10 +26,11 @@ typedef struct ent_camera ent_camera; typedef struct ent_swspreview ent_swspreview; typedef struct ent_worldinfo ent_worldinfo; typedef struct ent_ccmd ent_ccmd; +typedef struct ent_objective ent_objective; typedef struct ent_challenge ent_challenge; -typedef struct ent_unlock ent_unlock; typedef struct ent_relay ent_relay; typedef struct ent_cubemap ent_cubemap; +typedef struct ent_miniworld ent_miniworld; enum entity_alias{ k_ent_none = 0, @@ -50,10 +51,11 @@ enum entity_alias{ k_ent_menuitem = 15, k_ent_worldinfo = 16, k_ent_ccmd = 17, - k_ent_challenge = 18, - k_ent_unlock = 19, + k_ent_objective = 18, + k_ent_challenge = 19, k_ent_relay = 20, - k_ent_cubemap = 21 + k_ent_cubemap = 21, + k_ent_miniworld = 22 }; static u32 mdl_entity_id_type( u32 entity_id ){ @@ -109,7 +111,7 @@ enum gate_type{ /* v102+ */ enum ent_gate_flag{ k_ent_gate_linked = 0x1, /* this is a working portal */ - k_ent_gate_nonlocal = 0x2, /* use the key string to link this portal. + k_ent_gate_nonlocal_DELETED = 0x2, /* use the key string to link this portal. NOTE: if set, it adds the flip flag. */ k_ent_gate_flip = 0x4, /* flip direction 180* for exiting portal */ k_ent_gate_custom_mesh = 0x8, /* use a custom submesh instead of default */ @@ -161,11 +163,11 @@ struct ent_checkpoint{ }; struct ent_route{ - union{ mdl_transform transform; u32 official_track_id; - }; + } + anon; u32 pstr_name; u16 checkpoints_start, @@ -177,10 +179,12 @@ struct ent_route{ u16 active_checkpoint, valid_checkpoints; - float factive; + f32 factive; m4x3f board_transform; mdl_submesh sm; - double timing_base; + f64 timing_base; + + u32 id_camera; /* v103+ */ }; struct ent_water{ @@ -243,7 +247,7 @@ struct ent_marker{ enum skateshop_type{ k_skateshop_type_boardshop, k_skateshop_type_charshop, - k_skateshop_type_worldshop + k_skateshop_type_worldshop, }; struct ent_skateshop{ @@ -298,7 +302,15 @@ enum ent_menuitem_type{ k_ent_menuitem_type_page_button = 2, k_ent_menuitem_type_toggle = 3, k_ent_menuitem_type_slider = 4, - k_ent_menuitem_type_page = 5 + k_ent_menuitem_type_page = 5, + k_ent_menuitem_type_binding = 6, + k_ent_menuitem_type_visual_nocol = 7, + k_ent_menuitem_type_disabled = 90 +}; + +enum ent_menuitem_stack_behaviour{ + k_ent_menuitem_stack_append = 0, + k_ent_menuitem_stack_replace = 1 }; typedef struct ent_menuitem ent_menuitem; @@ -317,6 +329,11 @@ struct ent_menuitem{ }; union{ + struct{ + u32 pstr_name; + } + visual; + struct{ u32 id_min, /* ent_marker */ id_max, /* . */ @@ -326,7 +343,8 @@ struct ent_menuitem{ slider; struct{ - u32 pstr; + u32 pstr, + stack_behaviour; } button; @@ -343,6 +361,12 @@ struct ent_menuitem{ id_viewpoint; /* ent_camera */ } page; + + struct{ + u32 pstr_bind, + font_variant; + } + binding; }; }; @@ -351,7 +375,7 @@ struct ent_worldinfo{ f32 timezone; }; -VG_STATIC ent_marker *ent_find_marker( mdl_context *mdl, +static ent_marker *ent_find_marker( mdl_context *mdl, mdl_array_ptr *arr, const char *alias ) { for( u32 i=0; i