(50c0271)
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_miniworld.h
index 693a1571f557488f0530d9108588c0365703bc94..278cf75ec6eb50c2912e329b1df93ef9fb5ce313 100644 (file)
@@ -1,13 +1,18 @@
-#ifndef ENT_MINIWORLD_H
-#define ENT_MINIWORLD_H
-
+#pragma once
 #include "entity.h"
 
-struct {
-   u32 active_id; /* TODO: world references in entity ID */
-}
-static global_miniworld;
+struct global_miniworld
+{
+   ent_miniworld *active;
+   int transition;
+   f32 t;
 
-static void ent_miniworld_call( world_instance *world, ent_call *call );
+   m4x3f mmdl;
+   vg_camera cam;
+}
+extern global_miniworld;
 
-#endif /* ENT_MINIWORLD_H */
+entity_call_result 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);