aboutsummaryrefslogtreecommitdiff
path: root/src/survive.c
diff options
context:
space:
mode:
authordpeter99 <dpeter99@gmail.com>2018-04-01 17:36:08 +0200
committerJustin Berger <j.david.berger@gmail.com>2018-04-02 00:11:42 -0600
commitee3160032cd6a609a490be011019b323fe1c0c02 (patch)
tree101a9d30bfe5677756237c90c8a7f3dccc780d04 /src/survive.c
parentcf4c2c50e75e6b21d7aa65211031417619e4dacd (diff)
downloadlibsurvive-ee3160032cd6a609a490be011019b323fe1c0c02.tar.gz
libsurvive-ee3160032cd6a609a490be011019b323fe1c0c02.tar.bz2
Added new accesors (WIP)
Diffstat (limited to 'src/survive.c')
-rw-r--r--src/survive.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/survive.c b/src/survive.c
index 2a7aad1..e4015de 100644
--- a/src/survive.c
+++ b/src/survive.c
@@ -559,9 +559,19 @@ int survive_simple_inflate(struct SurviveContext *ctx, const char *input, int in
return len;
}
+
+
+#endif
+
+
const char *survive_object_codename(SurviveObject *so) { return so->codename; }
+
+const char *survive_object_drivername(SurviveObject *so) { return so->drivername; }
+const int8_t *survive_object_charge(SurviveObject *so) { return so->charge; }
+const bool *survive_object_charging(SurviveObject *so) { return so->charging; }
+
+const SurvivePose *survive_object_pose(SurviveObject *so) { return &so->OutPose; }
+
int8_t survive_object_sensor_ct(SurviveObject *so) { return so->sensor_ct; }
const FLT *survive_object_sensor_locations(SurviveObject *so) { return so->sensor_locations; }
-const FLT *survive_object_sensor_normals(SurviveObject *so) { return so->sensor_normals; }
-
-#endif
+const FLT *survive_object_sensor_normals(SurviveObject *so) { return so->sensor_normals; } \ No newline at end of file