CampfireParty.JobDriver_Dance.MakeNewToils C# (CSharp) Méthode

MakeNewToils() protected méthode

protected MakeNewToils ( ) : IEnumerable
Résultat 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(GetToilDance());
            // Release cell.
            toilsList.Add(base.ToilReleaseCell());

            return toilsList;
        }