Beispiel #1
0
        public void FixNpcs()
        {
            DispatcherHelper.CheckBeginInvokeOnUI(
                () =>
                {
                    int[] npcids = {17, 18, 19, 20, 22, 54, 38, 107, 108, 124, 160, 178, 207, 208, 209, 227, 228, 229};

                    foreach (int npcid in npcids)
                    {
                        if (CharacterNames.All(c => c.Id != npcid))
                            CharacterNames.Add(GetNewNpc(npcid));
                    }
                });
        }
Beispiel #2
0
        public void FixNpcs()
        {
            TEdit.MvvmLight.Threading.DispatcherHelper.CheckBeginInvokeOnUI(
                () =>
            {
                int[] npcids = { 17, 18, 19, 20, 22, 54, 38, 107, 108, 124, 160, 178, 207, 208, 209, 227, 228, 229, 353, 369, 441 };

                foreach (int npcid in npcids)
                {
                    if (CharacterNames.All(c => c.Id != npcid))
                    {
                        CharacterNames.Add(GetNewNpc(npcid));
                    }
                }
            });
        }