CampfireParty.JobDriver_PlayTheGuitar.MakeNewToils C# (CSharp) Method

MakeNewToils() protected method

protected MakeNewToils ( ) : IEnumerable
return IEnumerable
        protected override IEnumerable<Toil> MakeNewToils()
        {
            List<Toil> toilsList = new List<Toil>();
            Building_Pyre pyre = this.TargetThingA as Building_Pyre;

            // Get a valid cell to wander on.
            toilsList.Add(base.ToilGetWanderCell(pyre.Position));
            Find.PawnDestinationManager.ReserveDestinationFor(this.pawn, this.CurJob.targetB.Cell);
            toilsList.Add(Toils_Goto.GotoCell(TargetIndex.B, PathEndMode.OnCell));
            // Speak/dance with nearby pawn.
            toilsList.Add(GetToilPlayTheGuitar());
            // Release cell.
            toilsList.Add(base.ToilReleaseCell());

            return toilsList;
        }