static void destroy_local_family (entity *en) { destroy_local_entity_children (en, LIST_TYPE_MEMBER); destroy_local_entity (en); }
static void destroy_local_family (entity *en) { destroy_local_entity_children (en, LIST_TYPE_MOVEMENT_DEPENDENT); destroy_local_sound_effects (en); destroy_local_entity (en); }
static void destroy_local_family (entity *en) { destroy_local_entity_children (en, LIST_TYPE_KEYSITE_FORCE); destroy_local_entity_children (en, LIST_TYPE_PILOT); destroy_local_entity_children (en, LIST_TYPE_AIR_REGISTRY); destroy_local_entity_children (en, LIST_TYPE_GROUND_REGISTRY); destroy_local_entity_children (en, LIST_TYPE_SEA_REGISTRY); destroy_local_entity (en); }
static void destroy_server (entity *en) { // // destroy remote entity first (keeping local entity valid) // validate_client_server_remote_fn (); destroy_remote (en); validate_client_server_local_fn (); // // destroy local using 'full' function // destroy_local_entity (en); }
static void destroy_client (entity *en) { if (get_comms_data_flow () == COMMS_DATA_FLOW_TX) { validate_client_server_remote_fn (); destroy_remote (en); } else { validate_client_server_local_fn (); // // destroy local using 'full' function // destroy_local_entity (en); } }
void destroy_local_sound_effects (entity *en) { entity *spec, *next; spec = get_local_entity_first_child (en, LIST_TYPE_SPECIAL_EFFECT); while (spec) { next = get_local_entity_child_succ (spec, LIST_TYPE_SPECIAL_EFFECT); if (get_local_entity_type (spec) == ENTITY_TYPE_SOUND_EFFECT) { destroy_local_entity (spec); } spec = next; } }
static void destroy_local_family (entity *en) { destroy_local_sound_effects (en); destroy_local_entity (en); }
static void destroy_local_family (entity *en) { destroy_local_entity (en); }