Table of Contents

Class TimbnNpcTrip

Namespace
Timbn.GraveyardKeeperTwo.Core.Framework
Assembly
Timbn.GraveyardKeeperTwo.Core.dll

A trip off a person's origin for the ChainTrips(Func<TimbnNpc, TimbnNpcTrip?, TimbnNpcTrip?>) step, in three parts. Leave runs only when the trip starts from the origin, the body always runs, and Return runs only when no next trip chains on, so trips can follow each other without going back to the origin in between.

public sealed class TimbnNpcTrip
Inheritance
TimbnNpcTrip
Inherited Members

Examples

new TimbnNpcTrip()
    .Leave(steps => steps.WalkNavmesh("npc_sim_village_right_side_road_34"))
    .Body(steps => steps.Walk("npc_sim_village_right_side_03").WaitGameMinutes(45))
    .Return(steps => steps.Walk("npc_sim_village_right_side_road_34").WalkNavmesh("RT_herm_spawn"));

Methods

Body(Func<TimbnNpcSteps, TimbnNpcSteps>)

What the trip is for, such as walking to a bench and sitting there. Write it so it works from any trip's end too.

public TimbnNpcTrip Body(Func<TimbnNpcSteps, TimbnNpcSteps> build)

Parameters

build Func<TimbnNpcSteps, TimbnNpcSteps>

Returns

TimbnNpcTrip

Leave(Func<TimbnNpcSteps, TimbnNpcSteps>)

The steps from the origin to where the trip starts, skipped when it chains on from another trip.

public TimbnNpcTrip Leave(Func<TimbnNpcSteps, TimbnNpcSteps> build)

Parameters

build Func<TimbnNpcSteps, TimbnNpcSteps>

Returns

TimbnNpcTrip

Return(Func<TimbnNpcSteps, TimbnNpcSteps>)

The steps back to the origin, run when no next trip chains on.

public TimbnNpcTrip Return(Func<TimbnNpcSteps, TimbnNpcSteps> build)

Parameters

build Func<TimbnNpcSteps, TimbnNpcSteps>

Returns

TimbnNpcTrip