2020-04-09 00:43:01 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using RimWorld;
|
|
|
|
|
using Verse;
|
|
|
|
|
|
|
|
|
|
namespace Rimworld_Animations {
|
|
|
|
|
public class AnimationDef : Def
|
|
|
|
|
{
|
|
|
|
|
public List<AnimationStage> animationStages;
|
|
|
|
|
public List<Actor> actors;
|
|
|
|
|
public int animationTimeTicks = 0; //do not set manually
|
|
|
|
|
public bool sounds = false;
|
2021-02-19 20:52:15 +00:00
|
|
|
|
public List<rjw.xxx.rjwSextype> sexTypes = null;
|
2021-01-30 18:25:46 +00:00
|
|
|
|
public List<InteractionDef> interactionDefTypes = null;
|
2020-04-09 00:43:01 +00:00
|
|
|
|
|
|
|
|
|
public override void PostLoad() {
|
|
|
|
|
base.PostLoad();
|
|
|
|
|
foreach(AnimationStage stage in animationStages) {
|
|
|
|
|
stage.initialize();
|
|
|
|
|
animationTimeTicks += stage.playTimeTicks;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|