Riwmorld
RimWorld.Need_Rest Class Reference
Inheritance diagram for RimWorld.Need_Rest:
RimWorld.Need Verse.IExposable

Public Member Functions

 Need_Rest (Pawn pawn)
 
override void ExposeData ()
 
override void NeedInterval ()
 
override void SetInitialLevel ()
 
void TickResting (float restEffectiveness)
 
- Public Member Functions inherited from RimWorld.Need
 Need (Pawn newPawn)
 
virtual void DrawOnGUI (Rect rect, int maxThresholdMarkers=2147483647, float customMargin=-1f, bool drawArrows=true, bool doTooltip=true)
 
void ForceSetLevel (float levelPercent)
 
virtual string GetTipString ()
 

Public Attributes

const float BaseRestGainPerTick = 3.809524E-05f
 
const float ThreshTired = 0.28f
 
const float FallAsleepMaxLevel = 0.75f
 
const float NaturalWakeThreshold = 1f
 
const float CanWakeThreshold = 0.2f
 
- Public Attributes inherited from RimWorld.Need
const float MaxDrawHeight = 70f
 
NeedDef def
 

Properties

RestCategory CurCategory [get]
 
override int GUIChangeArrow [get]
 
float RestFallPerTick [get]
 
int TicksAtZero [get]
 
- Properties inherited from RimWorld.Need
virtual float CurInstantLevel [get]
 
float CurInstantLevelPercentage [get]
 
virtual float CurLevel [get, set]
 
float CurLevelPercentage [get, set]
 
virtual int GUIChangeArrow [get]
 
string LabelCap [get]
 
virtual float MaxLevel [get]
 

Additional Inherited Members

- Protected Member Functions inherited from RimWorld.Need
void DrawBarInstantMarkerAt (Rect barRect, float pct)
 
- Protected Attributes inherited from RimWorld.Need
Pawn pawn
 
float curLevelInt
 
List< float > threshPercents
 

The documentation for this class was generated from the following file: