internal void DestroyEntities(int[] unit_ids) { Msg_RC_DestroyNpc destroyNpcBuilder = new Msg_RC_DestroyNpc(); for (int i = 0; i < unit_ids.Length; i++) { NpcInfo npc = NpcManager.GetNpcInfoByUnitId(unit_ids[i]); if (npc != null) { destroyNpcBuilder.npc_id = npc.GetId(); NotifyAllUser(destroyNpcBuilder); NpcManager.RemoveNpc(npc.GetId()); } } }