X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.h;h=5ac85d8b01e08290de63231e7ba8bcfb23a1fbd6;hb=dbbdf411d1aaf70cb995c3371cfae37fd0b7dbcc;hp=472ab36a34d9acc46156a891a5185346238d7c49;hpb=14b3d5c13faab36bd37ae27aa8c1501ba7146f89;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.h b/entity.h index 472ab36..5ac85d8 100644 --- a/entity.h +++ b/entity.h @@ -26,8 +26,8 @@ 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; @@ -50,8 +50,8 @@ 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 }; @@ -243,7 +243,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{ @@ -401,21 +401,60 @@ struct ent_ccmd{ u32 pstr_command; }; -struct ent_challenge{ +enum ent_objective_filter{ + k_ent_objective_filter_none = 0x00000000, + k_ent_objective_filter_trick_shuvit = 0x00000001, + k_ent_objective_filter_trick_kickflip = 0x00000002, + k_ent_objective_filter_trick_treflip = 0x00000004, + k_ent_objective_filter_trick_any = + k_ent_objective_filter_trick_shuvit| + k_ent_objective_filter_trick_treflip| + k_ent_objective_filter_trick_kickflip, + k_ent_objective_filter_flip_back = 0x00000008, + k_ent_objective_filter_flip_front = 0x00000010, + k_ent_objective_filter_flip_any = + k_ent_objective_filter_flip_back| + k_ent_objective_filter_flip_front, + k_ent_objective_filter_grind_truck_any = 0x00000020, + k_ent_objective_filter_grind_board_any = 0x00000040, + k_ent_objective_filter_grind_any = + k_ent_objective_filter_grind_truck_any| + k_ent_objective_filter_grind_board_any, + k_ent_objective_filter_footplant = 0x00000080, + k_ent_objective_filter_passthrough = 0x00000100 +}; + +enum ent_objective_flag { + k_ent_objective_hidden = 0x1, + k_ent_objective_passed = 0x2 +}; + +struct ent_objective{ mdl_transform transform; u32 submesh_start, submesh_count, + flags, id_next, - filter, + filter,filter2, id_win, win_event; f32 time_limit; }; -struct ent_unlock{ +enum ent_challenge_flag { + k_ent_challenge_timelimit = 0x1 +}; + +struct ent_challenge{ + mdl_transform transform; u32 pstr_alias, + flags, target, target_event, + reset, + reset_event, + first, + camera, status; };