Table of Contents

Class WorkWithBreaksAnimator

Namespace
TinyLife.Actions.Behaviors
Assembly
TinyLife.dll

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
GenericDataHolder
StepAnimator<PersonLike>
WorkWithBreaksAnimator
Implements
IGenericDataHolder
Inherited Members
StepAnimator<PersonLike>.Steps
StepAnimator<PersonLike>.Loop
StepAnimator<PersonLike>.Reset(PersonLike)
StepAnimator<PersonLike>.CurrentStepIndex
StepAnimator<PersonLike>.CurrentStep
StepAnimator<PersonLike>.CurrentStepTime
StepAnimator<PersonLike>.CurrentStepTotalTime
GenericDataHolder.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

workTime TimeSpan

The amount of in-game time the working animation should be displayed for.

breakTime TimeSpan

The amount of in-game time the working animation should be paused after being displayed for.

varianceFactor float

WorkWithBreaksAnimator(TimeSpan, TimeSpan, TimeSpan, TimeSpan)

public WorkWithBreaksAnimator(TimeSpan minWorkTime, TimeSpan maxWorkTime, TimeSpan minBreakTime, TimeSpan maxBreakTime)

Parameters

minWorkTime TimeSpan
maxWorkTime TimeSpan
minBreakTime TimeSpan
maxBreakTime TimeSpan

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; }

Property Value

bool