X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=ent_miniworld.h;h=278cf75ec6eb50c2912e329b1df93ef9fb5ce313;hb=refs%2Fheads%2Fmaster;hp=693a1571f557488f0530d9108588c0365703bc94;hpb=2c91a71533b4ce86b9e7fd708420ae05c74d8f52;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/ent_miniworld.h b/ent_miniworld.h index 693a157..278cf75 100644 --- a/ent_miniworld.h +++ b/ent_miniworld.h @@ -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);