mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
offsets, dynamically set in animation animation prop graphics, absolute positioning, changing textures, can be used in animation
26 lines
757 B
C#
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;
|
|
}
|
|
}
|
|
}
|