X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=player_basic_info.h;fp=player_basic_info.h;h=12f46c9b532ea8dde6d353ce7a20558203e3aef5;hb=15c0b8cb57ed5d10814103eaa0b5c06e8ae117e4;hp=0000000000000000000000000000000000000000;hpb=bdd98e4458be4a143cd415e5077b373129b1b0d9;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_basic_info.h b/player_basic_info.h new file mode 100644 index 0000000..12f46c9 --- /dev/null +++ b/player_basic_info.h @@ -0,0 +1,25 @@ +#ifndef PLAYER_BASIC_INFO_H +#define PLAYER_BASIC_INFO_H + +#include "player.h" +#include "player_api.h" + +struct player_basic_info { + struct player_basic_info_animator { + v3f root_co; + } + animator; +} +static player_basic_info; +static void player__basic_info_animator_exchange(bitpack_ctx *ctx, void *data); +static void player__basic_info_pose( void *_animator, player_pose *pose ); + +struct player_subsystem_interface static player_subsystem_basic_info = { + .pose = player__basic_info_pose, + .network_animator_exchange = player__basic_info_animator_exchange, + .animator_data = &player_basic_info.animator, + .animator_size = sizeof(player_basic_info.animator), + .name = "Basic Info" +}; + +#endif /* PLAYER_BASIC_INFO_H */