예제 #1
0
        public virtual bool TryStart(Pawn pawn, string reason, bool causedByMood)
        {
            MentalStateHandler arg_21_0    = pawn.mindState.mentalStateHandler;
            MentalStateDef     mentalState = this.def.mentalState;

            return(arg_21_0.TryStartMentalState(mentalState, reason, false, causedByMood, null, false));
        }
예제 #2
0
 public Pawn_MindState(Pawn pawn)
 {
     this.pawn = pawn;
     this.mentalStateHandler = new MentalStateHandler(pawn);
     this.mentalBreaker      = new MentalBreaker(pawn);
     this.inspirationHandler = new InspirationHandler(pawn);
     this.priorityWork       = new PriorityWork(pawn);
 }
예제 #3
0
        public virtual bool TryStart(Pawn pawn, string reason, bool causedByMood)
        {
            MentalStateHandler mentalStateHandler = pawn.mindState.mentalStateHandler;
            MentalStateDef     mentalState        = def.mentalState;
            bool causedByMood2 = causedByMood;

            return(mentalStateHandler.TryStartMentalState(mentalState, reason, forceWake: false, causedByMood2));
        }
예제 #4
0
        public virtual bool TryStart(Pawn pawn, Thought reason, bool causedByMood)
        {
            string             text        = (reason == null) ? null : reason.LabelCap;
            MentalStateHandler arg_33_0    = pawn.mindState.mentalStateHandler;
            MentalStateDef     mentalState = this.def.mentalState;
            string             reason2     = text;

            return(arg_33_0.TryStartMentalState(mentalState, reason2, false, causedByMood, null));
        }