aboutsummaryrefslogtreecommitdiff
path: root/src/poser.c
blob: ec7865e9e82884b0aaef04dbe0381982e7e763a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdint.h>

#include "poser.h"
#include "survive_internal.h"

void PoserData_poser_raw_pose_func(PoserData *poser_data, SurviveObject *so, uint8_t lighthouse, SurvivePose *pose) {
	if (poser_data->rawposeproc) {
		poser_data->rawposeproc(so, lighthouse, pose, poser_data->userdata);
	} else {
		so->ctx->rawposeproc(so, lighthouse, pose);
	}
}

void PoserData_lighthouse_pose_func(PoserData *poser_data, SurviveObject *so, uint8_t lighthouse, SurvivePose *pose) {
	if (poser_data->lighthouseposeproc) {
		poser_data->lighthouseposeproc(so, lighthouse, pose, poser_data->userdata);
	} else {
		so->ctx->lighthouseposeproc(so->ctx, lighthouse, pose);
	}
}