Example #1
0
        public WorkFavourite( Pawn pawn, string label, string iconpath, bool dwarfTherapistMode )
            : this()
        {
            this.label = label;
            this._icon = ContentFinder<Texture2D>.Get( iconpath );
            this._iconpath = iconpath;
            this.dwarfTherapistMode = dwarfTherapistMode;

            if ( dwarfTherapistMode )
                workgiverPriorities = pawn.workgiverPriorities();
            else
                worktypePriorities = pawn.worktypePriorities();
        }