gameserver optimisations
[carveJwlIkooP6JGAAIwe30JlM.git] / player_basic_info.h
diff --git a/player_basic_info.h b/player_basic_info.h
new file mode 100644 (file)
index 0000000..12f46c9
--- /dev/null
@@ -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 */