server loopback tool
[carveJwlIkooP6JGAAIwe30JlM.git] / player_api.h
1 #pragma once
2 #include "model.h"
3 #include "camera.h"
4
5 typedef struct player_instance player_instance;
6 typedef struct player_pose player_pose;
7
8 struct player_pose{
9 enum player_pose_type {
10 k_player_pose_type_ik, /* regular IK animation */
11 k_player_pose_type_fk_2,
12 }
13 type;
14
15 v3f root_co;
16 v4f root_q;
17
18 mdl_keyframe keyframes[32];
19
20 struct player_board_pose {
21 f32 lean;
22 }
23 board;
24 };
25
26 enum player_subsystem{
27 k_player_subsystem_walk = 0,
28 k_player_subsystem_skate = 1,
29 k_player_subsystem_dead = 2,
30 k_player_subsystem_drive = 3,
31 k_player_subsystem_basic_info = 4,
32 k_player_subsystem_glide = 5,
33 k_player_subsystem_max,
34 k_player_subsystem_invalid = 255
35 };