X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_drive.h;h=76c2557c9ea484f2ac3d6564378b10d092bd5449;hb=5fa590f62aa7e62a8b6b07e10556c2ecc54cdca6;hp=46eedba48860cf2eaa584e85aeb12bf8749df216;hpb=46f4e9ee87dc67402166e4c6b05efbe922cd7574;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_drive.h b/player_drive.h index 46eedba..76c2557 100644 --- a/player_drive.h +++ b/player_drive.h @@ -1,40 +1,21 @@ -#ifndef PLAYER_DRIVE_H -#define PLAYER_DRIVE_H - +#pragma once #include "player.h" #include "vehicle.h" -struct player_drive { +struct player_drive +{ drivable_vehicle *vehicle; struct skeleton_anim *anim_drive; } -static player_drive; - -static void player__drive_pre_update(void); -static void player__drive_update(void); -static void player__drive_post_update(void); -static void player__drive_animate(void); -static void player__drive_pose( void *animator, player_pose *pose ); - -static void player__drive_post_animate(void); -static void player__drive_im_gui(void); -static void player__drive_bind(void); -static void player__drive_reset( ent_spawn *rp ); - -struct player_subsystem_interface static player_subsystem_drive = { - .pre_update = player__drive_pre_update, - .update = player__drive_update, - .post_update = player__drive_post_update, - .animate = player__drive_animate, - .pose = player__drive_pose, - .post_animate = player__drive_post_animate, - .im_gui = player__drive_im_gui, - .bind = player__drive_bind, - .reset = player__drive_reset, +extern player_drive; +extern struct player_subsystem_interface player_subsystem_drive; - .animator_data = NULL, - .animator_size = 0, - .name = "Drive" -}; +void player__drive_pre_update(void); +void player__drive_update(void); +void player__drive_post_update(void); +void player__drive_animate(void); +void player__drive_pose( void *animator, player_pose *pose ); -#endif /* PLAYER_DRIVE_H */ +void player__drive_post_animate(void); +void player__drive_im_gui(void); +void player__drive_bind(void);