Class WorkWithBreaksAnimator
A simple helper class that allows changing a PersonLike's CurrentPose to and from a working variety in set intervals. This animator is used for actions like ComputerBehavior to indicate a typing action.
public class WorkWithBreaksAnimator : StepAnimator<PersonLike>, IGenericDataHolder
- Inheritance
-
GenericDataHolderStepAnimator<PersonLike>WorkWithBreaksAnimator
- Implements
-
IGenericDataHolder
- Inherited Members
-
StepAnimator<PersonLike>.StepsStepAnimator<PersonLike>.LoopStepAnimator<PersonLike>.Reset(PersonLike)StepAnimator<PersonLike>.CurrentStepIndexStepAnimator<PersonLike>.CurrentStepStepAnimator<PersonLike>.CurrentStepTimeStepAnimator<PersonLike>.CurrentStepTotalTimeGenericDataHolder.GetDataKeys()
- Extension Methods
Constructors
WorkWithBreaksAnimator()
Creates a new work with breaks animator with default settings, which causes it to animate constantly (ie a work time of MaxValue and a break time of Zero).
public WorkWithBreaksAnimator()
WorkWithBreaksAnimator(TimeSpan, TimeSpan, float)
Creates a new work with breaks animator with the given settings.
public WorkWithBreaksAnimator(TimeSpan workTime, TimeSpan breakTime, float varianceFactor = 0)
Parameters
workTimeTimeSpanThe amount of in-game time the working animation should be displayed for.
breakTimeTimeSpanThe amount of in-game time the working animation should be paused after being displayed for.
varianceFactorfloat
WorkWithBreaksAnimator(TimeSpan, TimeSpan, TimeSpan, TimeSpan)
public WorkWithBreaksAnimator(TimeSpan minWorkTime, TimeSpan maxWorkTime, TimeSpan minBreakTime, TimeSpan maxBreakTime)
Parameters
Properties
IsWorking
Returns whether this animator's person currently looks to be working, which is displayed by the person's Pose being changed in Update(TObject, TimeSpan).
public bool IsWorking { get; }