X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=entity.h;h=5ac85d8b01e08290de63231e7ba8bcfb23a1fbd6;hb=1d06671f87a9d24596fc6808d8e0db889a818750;hp=ae9d63bd45f7aa442b41779d7d1d6d919792c648;hpb=44459e0aa734b6a090d60a309e29a9a2a232c731;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/entity.h b/entity.h index ae9d63b..5ac85d8 100644 --- a/entity.h +++ b/entity.h @@ -26,9 +26,10 @@ 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; enum entity_alias{ k_ent_none = 0, @@ -49,9 +50,10 @@ 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_relay = 20 + k_ent_objective = 18, + k_ent_challenge = 19, + k_ent_relay = 20, + k_ent_cubemap = 21 }; static u32 mdl_entity_id_type( u32 entity_id ){ @@ -241,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{ @@ -399,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; }; @@ -421,6 +462,12 @@ struct ent_relay { u32 targets[4][2]; }; +struct ent_cubemap { + v3f co; + u32 resolution, live, texture_id, + framebuffer_id, renderbuffer_id, placeholder[2]; +}; + typedef struct ent_call ent_call; struct ent_call{ u32 id, function;