mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
29 lines
854 B
C#
29 lines
854 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Rimworld_Animations {
|
|
public class AnimationStage
|
|
{
|
|
public string stageName;
|
|
public int stageIndex;
|
|
public int playTimeTicks = 0;
|
|
public int playTimeTicksQuick = -1;
|
|
public bool isLooping;
|
|
public List<BaseAnimationClip> animationClips;
|
|
public List<string> tags = new List<string>();
|
|
|
|
public void initialize() {
|
|
foreach (BaseAnimationClip clip in animationClips) {
|
|
clip.buildSimpleCurves();
|
|
//select playTimeTicks as longest playtime of all the animations
|
|
if(clip.duration > playTimeTicks) {
|
|
playTimeTicks = clip.duration;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|