﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace Rimworld_Animations
{
    public class AnimationStage_Branch : AnimationStage
    {
        public List<GroupAnimationDef> paths;
        public override List<AnimationDef> GetAnimations(int actorNumber, int seed)
        {
            List<AnimationDef> animationDefs = new List<AnimationDef>();

            for (int i = 0; i < loops; i++)
            {
                GroupAnimationDef selectedDef = paths[Rand.RangeSeeded(0, paths.Count, seed + i)];

                animationDefs.AddRange(selectedDef.GetAllAnimationsForActor(actorNumber, seed));

            }

            return animationDefs;
        }
    }
}
