示例#1
0
        public Battler(Avatar avatar)
        {
            this.avatar = avatar;

            float time = 0.0f;

            Skill skill = null;

            foreach (var next in avatar.ActionOrder())
            {
                if (next == null)
                {
                    break;
                }
                if (120f < time)
                {
                    break;
                }

                if (skill != null)
                {
                    CustomSkill cskill = new CustomSkill(skill, next.type);
                    timeline.Add(cskill);
                    var acttime = skill.GetActTime(next.type);
                    time += acttime.interval;
                }

                skill = next;
            }
            CreateBuffline();
        }