rimworld-animations/1.5/Source/Animations/GroupAnimations/GroupAnimationStages/AnimationStage_Branch.cs
c0ffee 32f3b1522f added:
offsets, dynamically set in animation
animation prop graphics, absolute positioning, changing textures, can be used in animation
2024-04-21 18:49:24 -07:00

26 lines
757 B
C#

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>();
//loop thru the selected groupanimationdef path
foreach (AnimationStage stage in paths[(seed * 59) % paths.Count].animationStages)
{
animationDefs.AddRange(stage.GetAnimations(actorNumber, seed));
}
return animationDefs;
}
}
}