コード例 #1
0
        private static void InitializeKeyActions(KeyActions keyActions, params KeyAction[] listKeyAction)
        {
            var list = listKeyAction.ToList();

            keyActions.Sequence.ForEach(a =>
            {
                list.ForEach(l =>
                {
                    if (a.Name == l.Name)
                    {
                        a.Key = l.Key;
                    }
                });
            });
        }
コード例 #2
0
        private static void InitializeKeyActions(KeyActions keyActions, params KeyAction[] listKeyAction)
        {
            var list = listKeyAction.ToList();

            keyActions.Sequence.ForEach(a =>
            {
                list.ForEach(l =>
                {
                    if (a.Name == l.Name)
                    {
                        a.Key            = l.Key;
                        a.DelayAfterCast = l.DelayAfterCast;
                        a.WaitForGCD     = l.WaitForGCD;
                        a.PressDuration  = l.PressDuration;
                        a.Cooldown       = l.Cooldown;
                    }
                });
            });
        }