648f44775db3a729cfad4bff10558604c12bc286
[carveJwlIkooP6JGAAIwe30JlM.git] / ent_npc.h
1 #pragma once
2 #include "player_render.h"
3 #include "entity.h"
4
5 struct npc
6 {
7 glmesh mesh;
8 GLuint texture;
9
10 mdl_context meta;
11 struct skeleton skeleton;
12
13 m4x3f *final_mtx;
14 }
15 extern npc_gumpa;
16
17 enum npc_id
18 {
19 k_npc_id_none = 0,
20 k_npc_id_gumpa = 1
21 };
22
23 void npc_load_model( struct npc *npc, const char *path );
24 void ent_npc_preupdate( ent_npc *ent, int active );
25 entity_call_result ent_npc_call( world_instance *world, ent_call *call );
26 void npc_update( ent_npc *ent );
27 void npc_render( ent_npc *ent, world_instance *world, vg_camera *cam );
28 void npc_init(void);