k_ent_glider = 26
};
-static u32 mdl_entity_id_type( u32 entity_id ){
+static inline u32 mdl_entity_id_type( u32 entity_id )
+{
return (entity_id & 0x0fff0000) >> 16;
}
-static u32 mdl_entity_id_id( u32 entity_id ){
+static inline u32 mdl_entity_id_id( u32 entity_id )
+{
return entity_id & 0x0000ffff;
}
-static u32 mdl_entity_id( u32 type, u32 index ){
+static inline u32 mdl_entity_id( u32 type, u32 index )
+{
return (type & 0xfffff)<<16 | (index & 0xfffff);
}
-enum entity_function{
+enum entity_function
+{
k_ent_function_trigger,
k_ent_function_particle_spawn,
k_ent_function_trigger_leave
u32 flags;
};
-static ent_marker *ent_find_marker( mdl_context *mdl,
- mdl_array_ptr *arr, const char *alias )
-{
- for( u32 i=0; i<mdl_arrcount(arr); i++ ){
- ent_marker *marker = mdl_arritm( arr, i );
-
- if( !strcmp( mdl_pstr( mdl, marker->pstr_alias ), alias ) ){
- return marker;
- }
- }
-
- return NULL;
-}
+ent_marker *ent_find_marker( mdl_context *mdl, mdl_array_ptr *arr,
+ const char *alias );
enum channel_behaviour{
k_channel_behaviour_unlimited = 0,
};
#include "world.h"
-static void entity_call( world_instance *world, ent_call *call );
+void entity_call( world_instance *world, ent_call *call );