-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Deprecated old state machine animation sequence stuff - Added "AnimNotifies" class
- Loading branch information
1 parent
9359587
commit 375429c
Showing
6 changed files
with
57 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...in/java/com/trainguy9512/animationoverhaul/animation/pose/sample/notify/AnimNotifies.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.trainguy9512.animationoverhaul.animation.pose.sample.notify; | ||
|
||
import com.trainguy9512.animationoverhaul.animation.data.PoseSamplerKey; | ||
import com.trainguy9512.animationoverhaul.animation.pose.sample.TimeBasedPoseSampler; | ||
|
||
/** | ||
* Class with preset anim notify functions | ||
*/ | ||
public class AnimNotifies { | ||
|
||
/** | ||
* Provides an anim notify that resets the time on the time-based pose sampler associated with the provided key. | ||
* @param poseSamplerKey Time-based pose sampler key to reset the time on. | ||
*/ | ||
public static AnimNotify resetTimeAnimNotify(PoseSamplerKey<TimeBasedPoseSampler> poseSamplerKey){ | ||
return (animationDriverContainer, poseSamplerStateContainer) -> poseSamplerStateContainer.getPoseSampler(poseSamplerKey).resetTime(); | ||
} | ||
} |