76 player.fullRotation = 0f;
93 Point coords = (player.Bottom +
new Vector2(0f, -2f)).ToTileCoordinates();
158 flag &=
Main.
sleepingManager.GetNextPlayerStackIndexInCoords((anchorPosition +
new Vector2(0f, -2f)).ToTileCoordinates()) < 2;
176 player.Bottom = anchorPosition;
195 anchorPosition =
default(
Vector2);
196 visualoffset =
default(
Vector2);
200 int num2 = x - tileSafely.frameX % 72 / 18;
201 if (tileSafely.
frameY % 36 != 0)
206 int num3 = tileSafely.frameX / 72;
211 targetDirection = -1;
218 anchorPosition =
new Point(num4, num + 1).ToWorldCoordinates(8f, 16f);
static Tile GetTileSafely(Vector2 position)
static ? bool[] ForcesBreaksSleeping
static bool[] CanBeSleptIn
static AnchoredEntitiesCollection sleepingManager
void Dismount(Player mountedPlayer)
static bool AnyDanger(bool quickBossNPCCheck=false, bool ignorePillarsAndMoonlordCountdown=false)
static void SendData(int msgType, int remoteClient=-1, int ignoreClient=-1, NetworkText text=null, int number=0, float number2=0f, float number3=0f, float number4=0f, int number5=0, int number6=0, int number7=0)
bool CanSnapToPosition(Vector2 offset)
void RemoveAllFishingBobbers()
void RemoveAllGrapplingHooks()
void StopVanityActions(bool multiplayerBroadcast=true)
void StartSleeping(Player player, int x, int y)
static bool GetSleepingTargetInfo(int x, int y, out int targetDirection, out Vector2 anchorPosition, out Vector2 visualoffset)
const int BedSleepingMaxDistance
const int TimeToFullyFallAsleep
Vector2 visualOffsetOfBedBase
void UpdateState(Player player)
void StopSleeping(Player player, bool multiplayerBroadcast=true)
static Vector2 SetOffsetbyBed(int bedStyle)
bool DoesPlayerHaveReasonToActUpInBed(Player player)
void SetIsSleepingAndAdjustPlayerRotation(Player player, bool state)
void GetSleepingOffsetInfo(Player player, out Vector2 posOffset)