|
Terraria v1.4.4.9
Terraria source code documentation
|
Public Member Functions | |
| void | GetSleepingOffsetInfo (Player player, out Vector2 posOffset) |
| void | SetIsSleepingAndAdjustPlayerRotation (Player player, bool state) |
| void | UpdateState (Player player) |
| void | StopSleeping (Player player, bool multiplayerBroadcast=true) |
| void | StartSleeping (Player player, int x, int y) |
Static Public Member Functions | |
| static bool | GetSleepingTargetInfo (int x, int y, out int targetDirection, out Vector2 anchorPosition, out Vector2 visualoffset) |
Public Attributes | |
| bool | isSleeping |
| int | sleepingIndex |
| int | timeSleeping |
| Vector2 | visualOffsetOfBedBase |
Static Public Attributes | |
| const int | BedSleepingMaxDistance = 96 |
| const int | TimeToFullyFallAsleep = 120 |
Properties | |
| bool | FullyFallenAsleep [get] |
Private Member Functions | |
| bool | DoesPlayerHaveReasonToActUpInBed (Player player) |
Static Private Member Functions | |
| static Vector2 | SetOffsetbyBed (int bedStyle) |
Definition at line 7 of file PlayerSleepingHelper.cs.