Exemple #1
0
        public void RemoveNpc(string roomId)
        {
            var dict = Npcs;

            if (dict.ContainsKey(roomId))
            {
                if (!dict[roomId].IsEmpty)
                {
                    RemoveMapNpc(roomId);
                    NpcData targetData = dict[roomId].Data;
                    npcs[roomId].RemoveNpc();
                    RavenhillEvents.OnNpcRemoved(roomId, targetData);
                }
            }
        }