basic npc
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_miniworld.h
index 2be614187f2f42b94ab23af0832f5ae71b89ab81..b1aed55bf12d73b2717e8ff51d35e6ab827fb66e 100644 (file)
@@ -1,19 +1,18 @@
-#ifndef ENT_MINIWORLD_H
-#define ENT_MINIWORLD_H
-
+#pragma once
 #include "entity.h"
 
-struct {
+struct global_miniworld
+{
    ent_miniworld *active;
    int transition;
    f32 t;
 
    m4x3f mmdl;
-   camera cam;
+   vg_camera cam;
 }
-static global_miniworld;
-
-static void ent_miniworld_call( world_instance *world, ent_call *call );
-static void ent_miniworld_render( world_instance *host_world, camera *cam );
+extern global_miniworld;
 
-#endif /* ENT_MINIWORLD_H */
+void ent_miniworld_call( world_instance *world, ent_call *call );
+void ent_miniworld_render( world_instance *host_world, vg_camera *cam );
+void ent_miniworld_goback(void);
+void ent_miniworld_preupdate(void);