mirror of
https://gitgud.io/c0ffeeeeeeee/rimworld-animations.git
synced 2024-08-15 00:43:45 +00:00
Further debug logging for animations
This commit is contained in:
parent
7596fe86c6
commit
e639ae8fb8
3 changed files with 6 additions and 5 deletions
Binary file not shown.
|
@ -19,11 +19,6 @@ namespace Rimworld_Animations
|
||||||
public bool canAnimationBeUsed(List<Pawn> actors)
|
public bool canAnimationBeUsed(List<Pawn> actors)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (RJWAnimationSettings.debugMode)
|
|
||||||
{
|
|
||||||
Log.Message("[anims] Checking if " + defName + " is valid animation");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!contexts.NullOrEmpty())
|
if (!contexts.NullOrEmpty())
|
||||||
{
|
{
|
||||||
foreach (BaseGroupAnimationContext context in contexts)
|
foreach (BaseGroupAnimationContext context in contexts)
|
||||||
|
|
|
@ -44,6 +44,12 @@ namespace Rimworld_Animations {
|
||||||
//each participant gets their own unique extendedanimatoranchor, important for scribe_deep saving
|
//each participant gets their own unique extendedanimatoranchor, important for scribe_deep saving
|
||||||
List<AnimationDef> allAnimationsForPawn = groupAnimationDef.GetAllAnimationsForActor(i, seed, reorder);
|
List<AnimationDef> allAnimationsForPawn = groupAnimationDef.GetAllAnimationsForActor(i, seed, reorder);
|
||||||
BaseExtendedAnimatorAnchor animatorAnchor = new ExtendedAnimatorAnchor_Thing(anchor);
|
BaseExtendedAnimatorAnchor animatorAnchor = new ExtendedAnimatorAnchor_Thing(anchor);
|
||||||
|
|
||||||
|
if (RJWAnimationSettings.debugMode)
|
||||||
|
{
|
||||||
|
Log.Message("Now playing animation: " + groupAnimationDef.defName);
|
||||||
|
}
|
||||||
|
|
||||||
participants[i].TryGetComp<CompExtendedAnimator>().PlayGroupAnimation(allAnimationsForPawn, position, rotation, animatorAnchor);
|
participants[i].TryGetComp<CompExtendedAnimator>().PlayGroupAnimation(allAnimationsForPawn, position, rotation, animatorAnchor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue