Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Main Class Reference

Classes

class  CurrentFrameFlags
 
struct  InfoToSetBackColor
 
struct  MouseTextCache
 
class  NativeMethods
 
struct  SceneArea
 
class  TextDisplayCache
 

Public Types

enum  WorldPreparationState { AwaitingData , ProcessingData , Ready }
 

Public Member Functions

delegate void OnPlayerSelected (PlayerFileData player)
 
void SetMouseNPC (int index, int type)
 
void SetMouseNPC_ToHousingQuery ()
 
static IntPtr LoadLibrary (string dllToLoad)
 
void UpdateParticleSystems ()
 
void setServerWorldRollbacks (string rollBacksToKeep)
 
void autoCreate (string worldSize)
 
void NewMOTD (string newMOTD)
 
void LoadDedConfig (string configPath)
 
void SetNetPlayers (int mPlayers)
 
void SetWorld (string world, bool cloud)
 
void SetWorldName (string world)
 
void EnableAutoShutdown ()
 
static IntPtr FindWindow (string lpClassName, string lpWindowName)
 
void AutoPass ()
 
void AutoJoin (string IP)
 
void AutoHost ()
 
void loadLib (string path)
 
void NeverSleep ()
 
void YouCanSleepNow ()
 
void DedServ ()
 
 Main ()
 
void updateCloudLayer ()
 
void UpdateViewZoomKeys ()
 
bool ShouldUpdateEntities ()
 
static short GetKeyState (int keyCode)
 
void MouseTextHackZoom (string text, string buffTooltip=null)
 
void MouseTextHackZoom (string text, int itemRarity, byte diff=0, string buffTooltip=null)
 
void MouseTextNoOverride (string cursorText, int rare=0, byte diff=0, int hackedMouseX=-1, int hackedMouseY=-1, int hackedScreenWidth=-1, int hackedScreenHeight=-1, int pushWidthX=0)
 
void MouseText (string cursorText, int rare=0, byte diff=0, int hackedMouseX=-1, int hackedMouseY=-1, int hackedScreenWidth=-1, int hackedScreenHeight=-1, int pushWidthX=0)
 
void MouseText (string cursorText, string buffTooltip, int rare=0, byte diff=0, int hackedMouseX=-1, int hackedMouseY=-1, int hackedScreenWidth=-1, int hackedScreenHeight=-1, int pushWidthX=0, bool noOverride=false)
 
void ClearCachedTileDraws ()
 
void ResetAllContentBasedRenderTargets ()
 
void DrawHealthBar (float X, float Y, int Health, int MaxHealth, float alpha, float scale=1f, bool noFlip=false)
 
void DrawNPCDirect_QueenSlimeWings (NPC rCurrentNPC, SpriteBatch mySpriteBatch, Vector2 screenPos, Vector2 drawCenter, Microsoft.Xna.Framework.Color originColor)
 
void DrawNPCDirect (SpriteBatch mySpriteBatch, NPC rCurrentNPC, bool behindTiles, Vector2 screenPos)
 
void DrawProj (int i)
 
void DrawProjDirect (Projectile proj)
 
void PrepareDrawnProjectileDrawing (Projectile proj)
 
void PrepareDrawnEntityDrawing (Entity entity, int intendedShader, Matrix? overrideMatrix)
 
void DrawItems ()
 
void DrawWindowsIMEPanel (Vector2 position, float xAnchor=0f)
 
void HandleIME ()
 
void DrawMouseOver ()
 
void GUIBarsDraw ()
 
void DrawInterface_Resources_Buffs ()
 
void GUIChatDraw ()
 
void DrawSimpleSurfaceBackground (Vector2 areaPosition, int areaWidth, int areaHeight)
 
void DrawCapture (Microsoft.Xna.Framework.Rectangle area, CaptureSettings settings)
 
void oldDrawWater (bool bg=false, int Style=0, float Alpha=1f)
 
void UpdateWeather (GameTime gameTime, int currentDayRateIteration)
 
void LoadBackground (int i)
 
void LoadItem (int i)
 
void LoadNPC (int i)
 
void LoadProjectile (int i)
 
void LoadGore (int i)
 
void LoadWall (int i)
 
void LoadTiles (int i)
 
void LoadItemFlames (int i)
 
void LoadWings (int i)
 
void LoadHair (int i)
 
void LoadArmorHead (int i)
 
void LoadArmorBody (int i)
 
void LoadArmorLegs (int i)
 
void LoadAccHandsOn (int i)
 
void LoadAccHandsOff (int i)
 
void LoadAccBack (int i)
 
void LoadAccFront (int i)
 
void LoadAccShoes (int i)
 
void LoadAccWaist (int i)
 
void LoadAccShield (int i)
 
void LoadAccNeck (int i)
 
void LoadAccFace (int i)
 
void LoadAccBalloon (int i)
 
void LoadAccBeard (int i)
 
void LoadFlameRing ()
 
void DrawTileCracks (int crackType, HitTile hitter)
 
void DrawInfernoRings ()
 
void OnTileChangeEvent (int x, int y, int count, TileChangeType eventType)
 
void FullscreenStartup ()
 
void UpdateDisplaySettings ()
 

Static Public Member Functions

static void ToggleGameplayUpdates (bool state)
 
static void SetRecommendedZoomContext (Matrix matrix)
 
static void FindAnnouncementBoxStatus ()
 
static bool CanPlayCreditsRoll ()
 
static void SetCameraLerp (float lerp, int time)
 
static void SetCameraGamepadLerp (float lerp)
 
static Vector2 ReverseGravitySupport (Vector2 pos, float height=0f)
 
static Microsoft.Xna.Framework.Point ReverseGravitySupport (Microsoft.Xna.Framework.Point pos, int height=0)
 
static Microsoft.Xna.Framework.Rectangle ReverseGravitySupport (Microsoft.Xna.Framework.Rectangle box)
 
static MoonPhase GetMoonPhase ()
 
static Vector2 DrawPlayerItemPos (float gravdir, int itemtype)
 
static void SetupTileMerge ()
 
static void RegisterItemAnimation (int index, DrawAnimation animation)
 
static void InitializeItemAnimations ()
 
static void SetGraphicsProfile (GraphicsProfile profile, bool forceSet)
 
static void AnglerQuestSwap ()
 
static void TrySetPreparationState (WorldPreparationState state)
 
static void UpdateWorldPreparationState ()
 
static bool InSmartCursorHighlightArea (int x, int y, out bool actuallySelected)
 
static void LoadWorlds ()
 
static void LoadPlayers ()
 
static void SaveRecent ()
 
static bool SaveSettings ()
 
static string GetPlayerPathFromName (string playerName, bool cloudSave)
 
static string GetWorldPathFromName (string worldName, bool cloudSave)
 
static string ConvertToSafeArgument (string arg)
 
static string ConvertFromSafeArgument (string arg)
 
static void startDedInput ()
 
static void startDedInputCallBack ()
 
static bool IsFastForwardingTime ()
 
static void Sundialing ()
 
static void Moondialing ()
 
static void UpdateTimeRate ()
 
static void LoadTestLog (string logname)
 
static void CheckForMoonEventsStartingTemporarySeasons ()
 
static void CheckForMoonEventsScoreDisplay ()
 
static void stopMoonEvent ()
 
static void startPumpkinMoon ()
 
static void startSnowMoon ()
 
static void snowing ()
 
static void checkXMas ()
 
static void checkHalloween ()
 
static void TeleportEffect (Microsoft.Xna.Framework.Rectangle effectRect, int Style, int extraInfo=0, float dustCountMult=1f, TeleportationSide side=TeleportationSide.Entry, Vector2 otherPosition=default(Vector2))
 
static void Ambience ()
 
static void AnimateTiles_CritterCages ()
 
static void DoUpdate_AnimateItemIcons ()
 
static void QueueMainThreadAction (Action action)
 
static void NotifyOfEvent (GameNotificationType type)
 
static bool IsNPCActiveAndOneOfTypes (int npcIndex, params int[] types)
 
static void OpenPlayerChat ()
 
static void ClosePlayerChat ()
 
static void InputTextSign ()
 
static void InputTextChest ()
 
static void InputTextSignCancel ()
 
static void clrInput ()
 
static string GetInputText (string oldString, bool allowMultiLine=false)
 
static void MouseText_DrawItemTooltip_GetLinesInfo (Item item, ref int yoyoLogo, ref int researchLine, float oldKB, ref int numLines, string[] toolTipLine, bool[] preFixLine, bool[] badPreFixLine)
 
static void DrawGamepadInstructions ()
 
static Microsoft.Xna.Framework.Color shine (Microsoft.Xna.Framework.Color newColor, int type)
 
static void shine (ref Vector3 newColor, int type)
 
static bool IsTileSpelunkable (Tile t)
 
static bool IsTileSpelunkable (ushort typeCache, short tileFrameX, short tileFrameY)
 
static bool IsTileBiomeSightable (ushort type, short tileFrameX, short tileFrameY, ref Microsoft.Xna.Framework.Color sightColor)
 
static float NPCAddHeight (NPC theNPC)
 
static int GetProjectileDesiredShader (Projectile proj)
 
static void GetItemDrawFrame (int item, out Texture2D itemTexture, out Microsoft.Xna.Framework.Rectangle itemFrame)
 
static Vector2 DrawWhip_BoneWhip (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_CoolWhip (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_FireWhip (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_RainbowWhip (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_ThornWhip (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_WhipSword (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_WhipMace (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_WhipScythe (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 DrawWhip_WhipBland (Projectile proj, List< Vector2 > controlPoints)
 
static Vector2 GetPlayerArmPosition (Projectile proj)
 
static void PlayInteractiveProjectileOpenCloseSound (int projType, bool open)
 
static void PrintTimedMessage (string message, params object[] arguments)
 
static void EntitySpriteDraw (Texture2D texture, Vector2 position, Microsoft.Xna.Framework.Rectangle? sourceRectangle, Microsoft.Xna.Framework.Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects, float worthless=0f)
 
static void EntitySpriteDraw (Texture2D texture, Vector2 position, Microsoft.Xna.Framework.Rectangle? sourceRectangle, Microsoft.Xna.Framework.Color color, float rotation, Vector2 origin, Vector2 scale, SpriteEffects effects, float worthless=0f)
 
static void EntitySpriteDraw (DrawData data)
 
static Microsoft.Xna.Framework.Color buffColor (Microsoft.Xna.Framework.Color newColor, float R, float G, float B, float A)
 
static Microsoft.Xna.Framework.Color quickAlpha (Microsoft.Xna.Framework.Color oldColor, float Alpha)
 
static bool CanDryadPlayStardewAnimation (Player player, NPC npc)
 
static void SetNPCShopIndex (int index)
 
static void CloseNPCChatOrSign ()
 
static void SubmitSignText ()
 
static void LockCraftingForThisCraftClickDuration ()
 
static void CraftItem (Recipe r)
 
static void DrawInterface_Resources_ClearBuffs ()
 
static string GetBuffTooltip (Player player, int buffType)
 
static bool TryGetBuffTime (int buffSlotOnPlayer, out int buffTimeValue)
 
static int DrawBuffIcon (int drawBuffText, int buffSlotOnPlayer, int x, int y)
 
static void TryRemovingBuff (int i, int b)
 
static void TryRemovingBuff_CheckBuffHideMisc (int slot, int buffID)
 
static void OpenHairWindow ()
 
static void CancelHairWindow ()
 
static void BuyHairWindow ()
 
static int UnlockedMaxHair ()
 
static void OpenClothesWindow ()
 
static void CancelClothesWindow (bool quiet=false)
 
static void SaveClothesWindow ()
 
static void DrawInterface_29_SettingsButton ()
 
static void DrawSettingButton (ref bool mouseOver, ref float scale, int posX, int posY, string text, string textSizeMatcher, Action clickAction)
 
static void ItemIconCacheUpdate (int selectedItemID)
 
static void ItemIconCacheVerification ()
 
static void DrawWallOfFish ()
 
static void DrawWallOfStars ()
 
static void DrawItemIcon (SpriteBatch spriteBatch, Item theItem, Vector2 screenPositionForItemCenter, Microsoft.Xna.Framework.Color itemLightColor, float sizeLimit)
 
static void CheckInvasionProgressDisplay ()
 
static void SyncAnInvasion (int toWho)
 
static void ReportInvasionProgress (int progress, int progressMax, int icon, int progressWave)
 
static void DrawInvasionProgress ()
 
static Microsoft.Xna.Framework.Color hslToRgb (Vector3 hslVector)
 
static Microsoft.Xna.Framework.Color hslToRgb (float Hue, float Saturation, float Luminosity, byte a=byte.MaxValue)
 
static double hue2rgb (double c, double t1, double t2)
 
static Vector3 rgbToHsl (Microsoft.Xna.Framework.Color newColor)
 
static void DrawCursor (Vector2 bonus, bool smart=false)
 
static void ClearSmartInteract ()
 
static Vector2 DrawThickCursor (bool smart=false)
 
static void GoToWorldSelect ()
 
static void StartClientGameplay ()
 
static void ReleaseHostAndPlayProcess ()
 
static void CycleFrameSkipMode ()
 
static void OnSubmitServerIP (string inputText)
 
static void OpenCharacterSelectUI ()
 
static void OpenReportsMenu ()
 
static void OpenWorldSelectUI ()
 
static void OpenResourcePacksMenu (UIState uiStateToGoBackTo)
 
static void ResetKeyBindings ()
 
static void CursorColor ()
 
static Microsoft.Xna.Framework.Point GetScreenOverdrawOffset ()
 
static bool WallLightAt (int i, int j)
 
static bool WallLightAt (int i, int j, bool showInvisibleWalls)
 
static string ValueToCoins (long value)
 
static void TriggerPing (Vector2 position)
 
static Microsoft.Xna.Framework.Color GetPlayerHeadBordersColor (Player plr)
 
static int CalculateWaterStyle (bool ignoreFountains=false)
 
static bool IsLiquidStyleWater (int liquidStyle)
 
static void DrawTileInWater (Vector2 drawOffset, int x, int y)
 
static bool ShouldShowInvisibleWalls ()
 
static int ConvertPaintIdToTileShaderIndex (int paintIndexOnTile, bool isUsedForPaintingGrass, bool useWallShaderHacks)
 
static void ResetWindCounter (bool resetExtreme=false)
 
static void NewLightning ()
 
static bool IsItDay ()
 
static double starGameMath (double value=1.0)
 
static void GetAreaToLight (out int firstTileX, out int lastTileX, out int firstTileY, out int lastTileY)
 
static int GetPreferredBGStyleForPlayer ()
 
static bool CanStartInvasion (int type=1, bool ignoreDelay=false)
 
static void StartInvasion (int type=1)
 
static void FakeLoadInvasionStart ()
 
static void NewText (string newText, byte R=byte.MaxValue, byte G=byte.MaxValue, byte B=byte.MaxValue)
 
static void NewTextMultiline (string text, bool force=false, Microsoft.Xna.Framework.Color c=default(Microsoft.Xna.Framework.Color), int WidthLimit=-1)
 
static void StopRain ()
 
static void StartRain ()
 
static void StartSlimeRain (bool announce=true)
 
static void StopSlimeRain (bool announce=true)
 
static bool AnyPlayerReadyToFightKingSlime ()
 
static void SkipToTime (int timeToSet, bool setIsDayTime)
 
static bool ShouldNormalEventsBeAbleToStart ()
 
static void UpdateTime_StartNight (ref bool stopEvents)
 
static void UpdateTime_StartDay (ref bool stopEvents)
 
static BestiaryUnlockProgressReport GetBestiaryProgressReport ()
 
static int DamageVar (float dmg, float luck=0f)
 
static double CalculateDamageNPCsTake (int Damage, int Defense)
 
static double CalculateDamagePlayersTakeInPVP (int Damage, int Defense)
 
static double CalculateDamagePlayersTake (int Damage, int Defense)
 
static void ClearPendingPlayerSelectCallbacks ()
 
static void SelectPlayer (PlayerFileData data)
 
static void ToggleFullScreen ()
 
static void SetFullScreen (bool fullscreen)
 
static void SetResolution (int width, int height)
 
static void SetDisplayMode (int width, int height, bool fullscreen)
 
static void FixUIScale ()
 
static void OpenPlayerSelect (OnPlayerSelected method)
 
static void SwitchNetMode (int mode)
 
static void WeGameRequireExitGame ()
 

Public Attributes

bool unityMouseOver
 
WaterfallManager waterfallManager
 
bool gammaTest
 
int mouseNPCIndex = -1
 
int mouseNPCType = -1
 
float chestLootScale = 1f
 
bool chestLootHover
 
float chestStackScale = 1f
 
bool chestStackHover
 
float chestDepositScale = 1f
 
bool chestDepositHover
 
float chestRenameScale = 1f
 
bool chestRenameHover
 
float chestCancelScale = 1f
 
bool chestCancelHover
 
int DiscoStyle
 
int invBottom = 210
 
Chest[] shop = new Chest[100]
 
int currentNPCShowingChatBubble = -1
 
List< int > DrawCacheNPCsMoonMoon = new List<int>(200)
 
List< int > DrawCacheNPCsOverPlayers = new List<int>(200)
 
List< int > DrawCacheNPCProjectiles = new List<int>(200)
 
List< int > DrawCacheNPCsBehindNonSolidTiles = new List<int>(200)
 
List< int > DrawCacheProjsBehindNPCsAndTiles = new List<int>(1000)
 
List< int > DrawCacheProjsBehindNPCs = new List<int>(1000)
 
List< int > DrawCacheProjsBehindProjectiles = new List<int>(1000)
 
List< int > DrawCacheProjsOverWiresUI = new List<int>(1000)
 
List< int > DrawCacheProjsOverPlayers = new List<int>(1000)
 
List< int > DrawCacheFirstFractals = new List<int>(1000)
 
SpelunkerProjectileHelper SpelunkerProjectileHelper = new SpelunkerProjectileHelper()
 
ChumBucketProjectileHelper ChumBucketProjectileHelper = new ChumBucketProjectileHelper()
 
int textBlinkerCount
 
int textBlinkerState
 
TilePaintSystemV2 TilePaintSystem
 
TileDrawing TilesRenderer
 
WallDrawing WallsRenderer
 
RejectionMenuInfo RejectionMenuInfo
 
CameraModifierStack CameraModifiers = new CameraModifierStack()
 

Static Public Attributes

const int curRelease = 279
 
const string assemblyVersionNumber = "1.4.4.9"
 
const string copyrightText = "Copyright © 2022 Re-Logic"
 
const ulong WorldGeneratorVersion = 1198295875585uL
 
static int mapDelay = 2
 
static IAssetRepository Assets
 
static AssetSourceController AssetSourceController
 
static int CurrentDrawnEntityShader
 
static Entity CurrentDrawnEntity
 
static float ForcedMinimumZoom = 1f
 
static SpriteViewMatrix GameViewMatrix
 
static SpriteViewMatrix BackgroundViewMatrix
 
static float GameZoomTarget = 1f
 
static bool LightingEveryFrame = true
 
static bool SettingsUnlock_WorldEvil
 
static bool SettingsEnabled_MinersWobble = true
 
static bool SettingsEnabled_AutoReuseAllItems = false
 
static bool SettingBlockGamepadsEntirely
 
static bool SettingDontScaleMainMenuUp
 
static bool SettingsEnabled_OpaqueBoxBehindTooltips = true
 
static bool SettingMusicReplayDelayEnabled = false
 
static bool HidePassword
 
static bool ReversedUpDownArmorSetBonuses
 
static Microsoft.Xna.Framework.Color MouseBorderColor = new Microsoft.Xna.Framework.Color(64, 64, 64, 64)
 
static bool MouseShowBuildingGrid
 
static bool AllowUnfocusedInputOnGamepad
 
static bool InvisibleCursorForGamepad = true
 
static bool GamepadDisableCursorItemIconInner = true
 
static bool GamepadDisableInstructionsDisplay
 
static bool CrouchingEnabled = false
 
static float MouseBuildingGridAlpha
 
static bool CaptureModeDisabled = false
 
static Main instance
 
static ChromaEngine Chroma
 
static ChromaHotkeyPainter ChromaPainter
 
static Camera Camera = new Camera()
 
static IPlayerRenderer PlayerRenderer = new LegacyPlayerRenderer()
 
static IPlayerRenderer PotionOfReturnRenderer = new ReturnGatePlayerRenderer()
 
static MapHeadRenderer MapPlayerRenderer = new MapHeadRenderer()
 
static NPCHeadRenderer TownNPCHeadRenderer = null
 
static NPCHeadRenderer BossNPCHeadRenderer = null
 
static List< TitleLinkButtonTitleLinks = new List<TitleLinkButton>()
 
static string versionNumber = "v1.4.4.9"
 
static string versionNumber2 = "v1.4.4.9"
 
static bool AnnouncementBoxDisabled
 
static int AnnouncementBoxRange = -1
 
static string AutogenSeedName
 
static Dictionary< int, GameModeDataRegisteredGameModes
 
static bool drunkWorld = false
 
static bool getGoodWorld = false
 
static bool tenthAnniversaryWorld = false
 
static bool dontStarveWorld = false
 
static bool notTheBeesWorld = false
 
static bool remixWorld = false
 
static bool noTrapsWorld = false
 
static bool zenithWorld = false
 
static Vector2 destroyerHB = new Vector2(0f, 0f)
 
static FavoritesFile LocalFavoriteData = new FavoritesFile(SavePath + "/favorites.json", isCloud: false)
 
static FavoritesFile CloudFavoritesData = new FavoritesFile("favorites.json", isCloud: true)
 
static FileMetadata WorldFileMetadata
 
static FileMetadata MapFileMetadata
 
static PingMapLayer Pings = new PingMapLayer()
 
static MapIconOverlay MapIcons = new MapIconOverlay().AddLayer(new SpawnMapLayer()).AddLayer(new TeleportPylonsMapLayer()).AddLayer(Pings)
 
static CreativeUI CreativeMenu = new CreativeUI()
 
static BigProgressBarSystem BigBossProgressBar = new BigProgressBarSystem()
 
static UserInterface MenuUI = new UserInterface()
 
static UserInterface InGameUI = new UserInterface()
 
static bool drawBackGore
 
static ulong LobbyId = 0uL
 
static WorldSections sectionManager
 
static bool ServerSideCharacter
 
static string clientUUID
 
static bool ContentLoaded = false
 
static float GlobalTimeWrappedHourly
 
static bool GlobalTimerPaused = false
 
static GameTime gameTimeCache = new GameTime()
 
static ulong TileFrameSeed = (ulong)Guid.NewGuid().GetHashCode()
 
static ContentManager ShaderContentManager
 
static Ref< EffectScreenShaderRef = new Ref<Effect>()
 
static Ref< EffectPixelShaderRef = new Ref<Effect>()
 
static Ref< EffectTileShaderRef = new Ref<Effect>()
 
static Ref< EffectVertexPixelShaderRef = new Ref<Effect>()
 
static int WaveQuality = 3
 
static bool UseStormEffects = true
 
static bool UseHeatDistortion = true
 
static List< IEnumeratorDelayedProcesses = new List<IEnumerator>()
 
static int npcStreamSpeed = 30
 
static int musicError
 
static bool dedServFPS
 
static int dedServCount1
 
static int dedServCount2
 
static bool superFast = false
 
static readonly int offLimitBorderTiles = 40
 
static readonly int maxMusic = 92
 
const int MaxBannerTypes = 290
 
static readonly int maxBackgrounds = 298
 
const int MaxShopIDs = 100
 
static Vector2[] OffsetsNPCOffhand
 
static Vector2[] OffsetsPlayerOffhand
 
static Vector2[] OffsetsPlayerOnhand
 
static Vector2[] OffsetsPlayerHeadgear
 
static Vector2 CurrentPan = Vector2.Zero
 
static float sunCircle
 
static int BlackFadeIn
 
static bool noWindowBorder = false
 
static RasterizerState Rasterizer = RasterizerState.CullCounterClockwise
 
static int undergroundBackground
 
static int oldUndergroundBackground
 
static bool skipMenu = false
 
static bool verboseNetplay = false
 
static bool stopTimeOuts = false
 
static bool showSpam = false
 
static bool showItemOwner = false
 
static bool[] townNPCCanSpawn = new bool[NPCID.Count]
 
static int musicBox2 = -1
 
static int musicBoxNotModifiedByVolume = -1
 
static byte HealthBarDrawSettings = 1
 
static bool runningCollectorsEdition
 
static float wFrCounter
 
static float wFrame
 
static float upTimer
 
static float upTimerMax
 
static float upTimerMaxDelay
 
static bool drawDiag
 
static bool drawRelease
 
static bool drawBetterDebug
 
static bool betterDebugRelease
 
static bool renderNow
 
static bool drawToScreen
 
static bool targetSet
 
static int mouseX
 
static int mouseY
 
static int lastMouseX
 
static int lastMouseY
 
static bool mouseLeft
 
static bool mouseRight
 
static bool isMouseLeftConsumedByUI = false
 
static float essScale = 1f
 
static int essDir = -1
 
static float[] cloudBGX = new float[2]
 
static float cloudBGAlpha
 
static float cloudBGActive
 
static int[] cloudBG = new int[2] { 112, 113 }
 
static int[] treeMntBGSet1 = new int[2]
 
static int[] treeMntBGSet2 = new int[2]
 
static int[] treeMntBGSet3 = new int[2]
 
static int[] treeMntBGSet4 = new int[2]
 
static int[] treeBGSet1 = new int[3]
 
static int[] treeBGSet2 = new int[3]
 
static int[] treeBGSet3 = new int[3]
 
static int[] treeBGSet4 = new int[3]
 
static int[] corruptBG = new int[3]
 
static int[] jungleBG = new int[3]
 
static int[] snowMntBG = new int[2]
 
static int[] snowBG = new int[3]
 
static int[] hallowBG = new int[3]
 
static int[] crimsonBG = new int[3]
 
static int[] desertBG = new int[3]
 
static int[] mushroomBG = new int[3]
 
static int oceanBG
 
static int[] underworldBG = new int[5]
 
static int[] treeX = new int[4]
 
static int[] treeStyle = new int[4]
 
static int[] caveBackX = new int[4]
 
static int[] caveBackStyle = new int[4]
 
static int iceBackStyle
 
static int hellBackStyle
 
static int jungleBackStyle
 
static string debugWords = ""
 
static bool gamePad = false
 
static bool xMas
 
static bool halloween
 
static bool forceXMasForToday
 
static bool forceHalloweenForToday
 
static bool DisableIntenseVisualEffects = false
 
static int snowDust = 0
 
static bool changeTheTitle
 
static bool hairWindow
 
static bool clothesWindow
 
static bool ingameOptionsWindow = false
 
static bool inFancyUI = false
 
static int keyCount
 
static string[] keyString = new string[10]
 
static int[] keyInt = new int[10]
 
static byte gFade
 
static float gFader
 
static byte gFadeDir = 1
 
static bool shouldDrawNetDiagnosticsUI
 
static IMultiplayerClosePlayersOverlay ActiveClosePlayersTeamOverlay = new NewMultiplayerClosePlayersOverlay()
 
static double UpdateTimeAccumulator
 
static bool drawSkip
 
static int fpsCount
 
static Stopwatch fpsTimer = new Stopwatch()
 
static bool showSplash = true
 
static bool ignoreErrors = true
 
static string defaultIP = ""
 
static int dayRate = 1
 
static int desiredWorldTilesUpdateRate = 1
 
static int maxScreenW = 1920
 
static int maxScreenH = 1200
 
static int minScreenW = 800
 
static int minScreenH = 600
 
static float iS = 1f
 
static bool render
 
static int qaStyle
 
static int buffScanAreaWidth = (maxScreenW + 800) / 16 - 1
 
static int buffScanAreaHeight = (maxScreenH + 800) / 16 - 1
 
static float musicPitch = 0f
 
static bool[] projHostile = new bool[ProjectileID.Count]
 
static bool[] projHook = new bool[ProjectileID.Count]
 
static bool[] pvpBuff = new bool[BuffID.Count]
 
static bool[] persistentBuff = new bool[BuffID.Count]
 
static bool[] vanityPet = new bool[BuffID.Count]
 
static bool[] lightPet = new bool[BuffID.Count]
 
static bool[] meleeBuff = new bool[BuffID.Count]
 
static bool[] debuff = new bool[BuffID.Count]
 
static bool[] buffNoSave = new bool[BuffID.Count]
 
static bool[] buffNoTimeDisplay = new bool[BuffID.Count]
 
static bool[] buffDoubleApply = new bool[BuffID.Count]
 
static int maxMP = 10
 
static string[] recentWorld = new string[maxMP]
 
static string[] recentIP = new string[maxMP]
 
static int[] recentPort = new int[maxMP]
 
static bool shortRender = true
 
static bool BackgroundEnabled = true
 
static int instantBGTransitionCounter = 2
 
static int bgDelay
 
static int bgStyle
 
static float[] bgAlphaFrontLayer = new float[14]
 
static float[] bgAlphaFarBackLayer = new float[14]
 
static int[] bgFrame = new int[14]
 
static int[] bgFrameCounter = new int[14]
 
static int EquipPage
 
static int EquipPageSelected
 
static int wofNPCIndex = -1
 
static int wofDrawAreaTop
 
static int wofDrawAreaBottom
 
static int wofDrawFrameIndex
 
static int offScreenRange = 200
 
static RenderTarget2D waterTarget
 
static RenderTarget2D screenTarget
 
static RenderTarget2D screenTargetSwap
 
static int maxMapUpdates = 250000
 
static bool refreshMap
 
static int loadMapLastX
 
static bool loadMapLock
 
static bool loadMap
 
static bool mapReady
 
static int textureMaxWidth = 2000
 
static int textureMaxHeight = 1800
 
static bool updateMap
 
static int mapMinX = 0
 
static int mapMaxX = 0
 
static int mapMinY
 
static int mapMaxY
 
static int mapTimeMax = 30
 
static int mapTime = mapTimeMax
 
static bool clearMap
 
static int mapTargetX = 5
 
static int mapTargetY = 2
 
static bool[,] initMap = new bool[mapTargetX, mapTargetY]
 
static bool[,] mapWasContentLost = new bool[mapTargetX, mapTargetY]
 
const int numInfoIcons = 13
 
static Microsoft.Xna.Framework.Color OurFavoriteColor = new Microsoft.Xna.Framework.Color(255, 231, 69)
 
static bool mapInit
 
static bool mapEnabled = true
 
static int mapStyle = 1
 
static float grabMapX
 
static float grabMapY
 
static int miniMapX
 
static int miniMapY
 
static int miniMapWidth
 
static int miniMapHeight
 
static float mapMinimapDefaultScale = 1.05f
 
static float mapMinimapScale = mapMinimapDefaultScale
 
static float mapMinimapAlpha = 1f
 
static float mapOverlayScale = 2.5f
 
static float mapOverlayAlpha = 0.35f
 
static bool mapFullscreen
 
static bool resetMapFull
 
static float mapFullscreenScale = 4f
 
static Vector2 mapFullscreenPos = new Vector2(-1f, -1f)
 
static bool SkipAssemblyLoad
 
static int renderCount = 99
 
static GraphicsDeviceManager graphics
 
static SpriteBatch spriteBatch
 
static TileBatch tileBatch
 
static BasicDebugDrawer DebugDrawer
 
static SamplerState SamplerStateForCursor = SamplerState.LinearClamp
 
static GenerationProgress AutogenProgress = new GenerationProgress()
 
static KeyboardState keyState
 
static KeyboardState oldKeyState
 
static Microsoft.Xna.Framework.Color mcColor = new Microsoft.Xna.Framework.Color(1f, 0.6f, 0f)
 
static Microsoft.Xna.Framework.Color hcColor = new Microsoft.Xna.Framework.Color(1f, 0.15f, 0.1f)
 
static Microsoft.Xna.Framework.Color creativeModeColor = Microsoft.Xna.Framework.Color.Lerp(Microsoft.Xna.Framework.Color.HotPink, Microsoft.Xna.Framework.Color.White, 0.1f)
 
static Microsoft.Xna.Framework.Color legendaryModeColor = Microsoft.Xna.Framework.Color.LimeGreen
 
static Microsoft.Xna.Framework.Color highVersionColor = new Microsoft.Xna.Framework.Color(255, 255, 0)
 
static Microsoft.Xna.Framework.Color errorColor = new Microsoft.Xna.Framework.Color(255, 0, 0)
 
static bool craftingHide
 
static bool armorHide
 
static float shimmerAlpha = 0f
 
static float shimmerDarken = 0f
 
static float shimmerBrightenDelay = 0f
 
static float craftingAlpha = 1f
 
static float armorAlpha = 1f
 
static float[] buffAlpha = new float[BuffID.Count]
 
static bool afterPartyOfDoom = false
 
static bool hardMode
 
static Vector2 sceneWaterPos = Vector2.Zero
 
static Vector2 sceneTilePos = Vector2.Zero
 
static Vector2 sceneTile2Pos = Vector2.Zero
 
static Vector2 sceneWallPos = Vector2.Zero
 
static Vector2 sceneBackgroundPos = Vector2.Zero
 
static bool maxQ = true
 
static float gfxQuality = 1f
 
static float gfxRate = 0.01f
 
static int DiscoR = 255
 
static int DiscoB
 
static int DiscoG
 
static int teamCooldown
 
static int teamCooldownLen = 300
 
static bool gamePaused
 
static bool gameInactive
 
static int updatesCountedForFPS
 
static int drawsCountedForFPS
 
static int uCount
 
static int updateRate
 
static int frameRate
 
static bool RGBRelease
 
static bool qRelease = false
 
static bool netRelease
 
static bool frameRelease
 
static bool showFrameRate = false
 
static int magmaBGFrame
 
static int magmaBGFrameCounter
 
static int saveTimer = 0
 
static bool autoJoin
 
static bool serverStarting = false
 
static float leftWorld = 0f
 
static float rightWorld = 134400f
 
static float topWorld = 0f
 
static float bottomWorld = 38400f
 
static int maxTilesX = (int)rightWorld / 16 + 1
 
static int maxTilesY = (int)bottomWorld / 16 + 1
 
const int sectionWidth = 200
 
const int sectionHeight = 150
 
static int maxSectionsX = maxTilesX / 200
 
static int maxSectionsY = maxTilesY / 150
 
const int maxDust = 6000
 
static int maxDustToDraw = 6000
 
const int maxCombatText = 100
 
const int maxItemText = 20
 
const int maxPlayers = 255
 
static int maxNetPlayers = 255
 
const int maxChests = 8000
 
const int maxItems = 400
 
const int maxProjectiles = 1000
 
const int maxNPCs = 200
 
static UIManageControls ManageControlsMenu = new UIManageControls()
 
static UIAchievementsMenu AchievementsMenu = new UIAchievementsMenu()
 
static int maxRain = 750
 
static int slimeWarningTime
 
static int slimeWarningDelay = 420
 
static float slimeRainNPCSlots = 0.65f
 
static bool[] slimeRainNPC = new bool[NPCID.Count]
 
static double slimeRainTime
 
static bool slimeRain
 
static int slimeRainKillCount
 
const int maxGore = 600
 
const int InventoryItemSlotsStart = 0
 
const int InventoryItemSlotsCount = 50
 
const int InventoryCoinSlotsStart = 50
 
const int InventoryCoinSlotsCount = 4
 
const int InventoryAmmoSlotsStart = 54
 
const int InventoryAmmoSlotsCount = 4
 
const int InventorySlotsTotal = 58
 
const int maxLiquidTypes = 15
 
static float cameraX
 
static bool drewLava
 
static float[] liquidAlpha = new float[15]
 
static int waterStyle
 
static int WorldRollingBackupsCountToKeep = 2
 
static float caveParallax = 0.88f
 
static int dungeonX
 
static int dungeonY
 
static Liquid[] liquid = new Liquid[Liquid.maxLiquid]
 
static LiquidBuffer[] liquidBuffer = new LiquidBuffer[50000]
 
static bool dedServ
 
static int spamCount = 0
 
static int curMusic
 
static int dayMusic
 
static int ugMusic
 
static int newMusic
 
static bool showItemText = true
 
static bool autoSave = true
 
static bool validateSaves = true
 
static bool bannerMouseOver
 
static string buffString = ""
 
static string libPath = ""
 
static int lo
 
static int LogoA = 255
 
static int LogoB
 
static bool LogoT
 
static string statusText = ""
 
static string worldName = ""
 
static int worldID
 
static int background
 
static int caveBackground = 0
 
static float ugBackTransition
 
static Microsoft.Xna.Framework.Color tileColor
 
static double worldSurface
 
static double rockLayer
 
static Microsoft.Xna.Framework.Color[] teamColor = new Microsoft.Xna.Framework.Color[6]
 
const double dayLength = 54000.0
 
const double nightLength = 32400.0
 
static bool dayTime = true
 
static double time = 13500.0
 
static double timeForVisualEffects
 
static int moonPhase
 
static short sunModY
 
static short moonModY
 
static bool alreadyGrabbingSunOrMoon
 
static bool bloodMoon
 
static bool pumpkinMoon
 
static bool snowMoon
 
static float cloudAlpha
 
static float maxRaining
 
static float oldMaxRaining
 
static int rainTime
 
static bool raining
 
static bool eclipse
 
static float eclipseLight
 
static int checkForSpawns
 
static int helpText
 
static int BartenderHelpTextIndex = 0
 
static bool autoGen
 
static bool autoPause = false
 
static int[] projFrames = new int[ProjectileID.Count]
 
static bool[] projPet = new bool[ProjectileID.Count]
 
static float demonTorch = 1f
 
static int demonTorchDir = 1
 
static float martianLight = 1f
 
static int martianLightDir = 1
 
static float masterColor = 1f
 
static int masterColorDir = 1
 
static bool placementPreview = true
 
static SceneMetrics SceneMetrics
 
const int maxStars = 400
 
static int numStars
 
const int maxStarTypes = 4
 
const int maxClouds = 200
 
static int weatherCounter
 
static int numClouds = 200
 
static int numCloudsTemp = numClouds
 
static float windSpeedCurrent
 
static float windSpeedTarget
 
static int windCounter
 
static int extremeWindCounter
 
static bool windPhysics = false
 
static float windPhysicsStrength = 0.1f
 
static bool SettingsEnabled_TilesSwayInWind = true
 
static Cloud[] cloud = new Cloud[200]
 
static bool resetClouds = true
 
static float SmoothedMushroomLightInfluence
 
static int fadeCounter
 
static float invAlpha = 1f
 
static float invDir = 1f
 
static UnifiedRandom rand
 
static bool allChestStackHover
 
static bool inventorySortMouseOver
 
static float GraveyardVisualIntensity
 
const int maxMoons = 9
 
static int moonType = 0
 
const int numTileColors = 32
 
const int numTreeStyles = 32
 
const int numberOfHairstyles = 165
 
const int maxHairStyles = 165
 
const int maxCharSelectHair = 51
 
const int maxHairOfStylistDefault = 123
 
static bool UseExperimentalFeatures
 
static string DefaultSeed = ""
 
static IAudioSystem audioSystem
 
static bool[] musicNoCrossFade = new bool[maxMusic]
 
static float[] musicFade = new float[maxMusic]
 
static float musicVolume = 1f
 
static float ambientVolume = 1f
 
static float soundVolume = 1f
 
static ServerMode MenuServerMode = ServerMode.Lobby | ServerMode.FriendsCanJoin
 
static bool[] tileLighted = new bool[TileID.Count]
 
static bool[] tileMergeDirt = new bool[TileID.Count]
 
static bool[] tileCut = new bool[TileID.Count]
 
static bool[] tileAlch = new bool[TileID.Count]
 
static int[] tileShine = new int[TileID.Count]
 
static bool[] tileShine2 = new bool[TileID.Count]
 
static bool[] wallHouse = new bool[WallID.Count]
 
static bool[] wallDungeon = new bool[WallID.Count]
 
static bool[] wallLight = new bool[WallID.Count]
 
static int[] wallBlend = new int[WallID.Count]
 
static bool[] tileStone = new bool[TileID.Count]
 
static bool[] tileAxe = new bool[TileID.Count]
 
static bool[] tileHammer = new bool[TileID.Count]
 
static bool[] tileWaterDeath = new bool[TileID.Count]
 
static bool[] tileLavaDeath = new bool[TileID.Count]
 
static bool[] tileTable = new bool[TileID.Count]
 
static bool[] tileBlockLight = new bool[TileID.Count]
 
static bool[] tileNoSunLight = new bool[TileID.Count]
 
static bool[] tileDungeon = new bool[TileID.Count]
 
static bool[] tileSpelunker = new bool[TileID.Count]
 
static bool[] tileSolidTop = new bool[TileID.Count]
 
static bool[] tileSolid = new bool[TileID.Count]
 
static bool[] tileBouncy = new bool[TileID.Count]
 
static short[] tileOreFinderPriority = new short[TileID.Count]
 
static byte[] tileLargeFrames = new byte[TileID.Count]
 
static byte[] wallLargeFrames = new byte[WallID.Count]
 
static bool[] tileRope = new bool[TileID.Count]
 
static bool[] tileBrick = new bool[TileID.Count]
 
static bool[] tileMoss = new bool[TileID.Count]
 
static bool[] tileNoAttach = new bool[TileID.Count]
 
static bool[] tileNoFail = new bool[TileID.Count]
 
static bool[] tileCracked = new bool[TileID.Count]
 
static bool[] tileObsidianKill = new bool[TileID.Count]
 
static bool[] tileFrameImportant = new bool[TileID.Count]
 
static bool[] tilePile = new bool[TileID.Count]
 
static bool[] tileBlendAll = new bool[TileID.Count]
 
static short[] tileGlowMask = new short[TileID.Count]
 
static bool[] tileContainer = new bool[TileID.Count]
 
static bool[] tileSign = new bool[TileID.Count]
 
static bool[][] tileMerge = new bool[TileID.Count][]
 
static int cageFrames = 25
 
static bool critterCage
 
static int[] bunnyCageFrame = new int[cageFrames]
 
static int[] bunnyCageFrameCounter = new int[cageFrames]
 
static int[] squirrelCageFrame = new int[cageFrames]
 
static int[] squirrelCageFrameCounter = new int[cageFrames]
 
static int[] squirrelCageFrameOrange = new int[cageFrames]
 
static int[] squirrelCageFrameCounterOrange = new int[cageFrames]
 
static int[] mallardCageFrame = new int[cageFrames]
 
static int[] mallardCageFrameCounter = new int[cageFrames]
 
static int[] duckCageFrame = new int[cageFrames]
 
static int[] duckCageFrameCounter = new int[cageFrames]
 
static int[] grebeCageFrame = new int[cageFrames]
 
static int[] grebeCageFrameCounter = new int[cageFrames]
 
static int[] seagullCageFrame = new int[cageFrames]
 
static int[] seagullCageFrameCounter = new int[cageFrames]
 
static int[] birdCageFrame = new int[cageFrames]
 
static int[] birdCageFrameCounter = new int[cageFrames]
 
static int[] redBirdCageFrame = new int[cageFrames]
 
static int[] redBirdCageFrameCounter = new int[cageFrames]
 
static int[] blueBirdCageFrame = new int[cageFrames]
 
static int[] blueBirdCageFrameCounter = new int[cageFrames]
 
static int[] macawCageFrame = new int[cageFrames]
 
static int[] macawCageFrameCounter = new int[cageFrames]
 
static byte[,] butterflyCageMode = new byte[9, cageFrames]
 
static int[,] butterflyCageFrame = new int[9, cageFrames]
 
static int[,] butterflyCageFrameCounter = new int[9, cageFrames]
 
static int[,] dragonflyJarFrameCounter = new int[7, cageFrames]
 
static int[,] dragonflyJarFrame = new int[7, cageFrames]
 
static int[,] scorpionCageFrame = new int[2, cageFrames]
 
static int[,] scorpionCageFrameCounter = new int[2, cageFrames]
 
static int[] snailCageFrame = new int[cageFrames]
 
static int[] snailCageFrameCounter = new int[cageFrames]
 
static int[] snail2CageFrame = new int[cageFrames]
 
static int[] snail2CageFrameCounter = new int[cageFrames]
 
static byte[] fishBowlFrameMode = new byte[cageFrames]
 
static int[] fishBowlFrame = new int[cageFrames]
 
static int[] fishBowlFrameCounter = new int[cageFrames]
 
static int[] lavaFishBowlFrame = new int[cageFrames]
 
static int[] lavaFishBowlFrameCounter = new int[cageFrames]
 
static int[] frogCageFrame = new int[cageFrames]
 
static int[] frogCageFrameCounter = new int[cageFrames]
 
static int[] mouseCageFrame = new int[cageFrames]
 
static int[] mouseCageFrameCounter = new int[cageFrames]
 
static int[] turtleCageFrame = new int[cageFrames]
 
static int[] turtleCageFrameCounter = new int[cageFrames]
 
static int[] fairyJarFrame = new int[cageFrames]
 
static int[] fairyJarFrameCounter = new int[cageFrames]
 
static byte[,] jellyfishCageMode = new byte[3, cageFrames]
 
static int[,] jellyfishCageFrame = new int[3, cageFrames]
 
static int[,] jellyfishCageFrameCounter = new int[3, cageFrames]
 
static int[] wormCageFrame = new int[cageFrames]
 
static int[] wormCageFrameCounter = new int[cageFrames]
 
static int[] maggotCageFrame = new int[cageFrames]
 
static int[] maggotCageFrameCounter = new int[cageFrames]
 
static int[] ratCageFrame = new int[cageFrames]
 
static int[] ratCageFrameCounter = new int[cageFrames]
 
static int[] ladybugCageFrame = new int[cageFrames]
 
static int[] ladybugCageFrameCounter = new int[cageFrames]
 
static int[] penguinCageFrame = new int[cageFrames]
 
static int[] penguinCageFrameCounter = new int[cageFrames]
 
static int[] waterStriderCageFrame = new int[cageFrames]
 
static int[] waterStriderCageFrameCounter = new int[cageFrames]
 
static int[] seahorseCageFrame = new int[cageFrames]
 
static int[] seahorseCageFrameCounter = new int[cageFrames]
 
static int[,] slugCageFrame = new int[3, cageFrames]
 
static int[,] slugCageFrameCounter = new int[3, cageFrames]
 
static int[] owlCageFrame = new int[cageFrames]
 
static int[] owlCageFrameCounter = new int[cageFrames]
 
static int[] grasshopperCageFrame = new int[cageFrames]
 
static int[] grasshopperCageFrameCounter = new int[cageFrames]
 
static bool[] tileSand = new bool[TileID.Count]
 
static bool[] tileFlame = new bool[TileID.Count]
 
static bool[] npcCatchable = new bool[NPCID.Count]
 
static int[] tileFrame = new int[TileID.Count]
 
static int[] tileFrameCounter = new int[TileID.Count]
 
static byte[] wallFrame = new byte[WallID.Count]
 
static byte[] wallFrameCounter = new byte[WallID.Count]
 
static int[] backgroundWidth = new int[maxBackgrounds]
 
static int[] backgroundHeight = new int[maxBackgrounds]
 
static HairstyleUnlocksHelper Hairstyles = new HairstyleUnlocksHelper()
 
static bool tilesLoaded = false
 
static WorldMap Map
 
static Tile[,] tile = new Tile[maxTilesX, maxTilesY]
 
static Dust[] dust = new Dust[6001]
 
static Star[] star = new Star[400]
 
static Item[] item = new Item[401]
 
static int[] timeItemSlotCannotBeReusedFor = new int[401]
 
static NPC[] npc = new NPC[201]
 
static Gore[] gore = new Gore[601]
 
static Rain[] rain = new Rain[maxRain + 1]
 
static Projectile[] projectile = new Projectile[1001]
 
static int[,] projectileIdentity = new int[256, 1001]
 
static CombatText[] combatText = new CombatText[100]
 
static PopupText[] popupText = new PopupText[20]
 
static Chest[] chest = new Chest[8000]
 
static Sign[] sign = new Sign[1000]
 
static int[] itemFrame = new int[401]
 
static int[] itemFrameCounter = new int[401]
 
static DrawAnimation[] itemAnimations = new DrawAnimation[ItemID.Count]
 
static List< int > itemAnimationsRegistered = new List<int>()
 
static Vector2 screenPosition
 
static Vector2 screenLastPosition
 
static int screenWidth = 1152
 
static int screenHeight = 864
 
static bool screenMaximized = true
 
static bool screenBorderless = true
 
static int screenBorderlessPendingResizes
 
static int teamNamePlateDistance = 2000
 
static int multiplayerNPCSmoothingRange = 300
 
static bool Setting_UseReducedMaxLiquids = false
 
static int PlayerOverheadChatMessageDisplayTime = 400
 
static object CurrentInputTextTakerOverride
 
static bool drawingPlayerChat
 
static bool chatRelease
 
static string chatText = ""
 
static bool inputTextEnter
 
static bool inputTextEscape
 
static float[] hotbarScale = new float[10] { 1f, 0.75f, 0.75f, 0.75f, 0.75f, 0.75f, 0.75f, 0.75f, 0.75f, 0.75f }
 
static byte mouseTextColor
 
static int mouseTextColorChange = 1
 
static bool mouseLeftRelease
 
static bool mouseRightRelease
 
static bool playerInventory
 
static int stackSplit
 
static bool preventStackSplitReset
 
static int stackCounter
 
static int timesTriedToFastStack
 
static int stackDelay = 7
 
static int superFastStack
 
static Item mouseItem = new Item()
 
static Item guideItem = new Item()
 
static Item reforgeItem = new Item()
 
static float inventoryScale = 0.75f
 
static bool hasFocus
 
static Microsoft.Xna.Framework.Point rulerLineDisplayValues = default(Microsoft.Xna.Framework.Point)
 
static bool recFastScroll
 
static bool recBigList
 
static int recStart
 
static Recipe[] recipe = new Recipe[Recipe.maxRecipes]
 
static int[] availableRecipe = new int[Recipe.maxRecipes]
 
static float[] availableRecipeY = new float[Recipe.maxRecipes]
 
static int numAvailableRecipes
 
static int focusRecipe
 
static int myPlayer
 
static Player[] player = new Player[256]
 
static Player[] playerVisualClone = new Player[256]
 
static bool[] countsAsHostForGameplay = new bool[256]
 
static int spawnTileX
 
static int spawnTileY
 
static bool npcChatRelease
 
static bool editSign
 
static bool editChest
 
static bool blockInput = false
 
static string blockKey = Microsoft.Xna.Framework.Input.Keys.None.ToString()
 
static string defaultChestName = string.Empty
 
static string npcChatText = ""
 
static bool npcChatFocus1
 
static bool npcChatFocus2
 
static bool npcChatFocus3
 
static bool npcChatFocus4
 
static int oldNPCShop
 
static int npcChatCornerItem
 
static ItemShopSellbackHelper shopSellbackHelper = new ItemShopSellbackHelper()
 
static int[] travelShop = new int[40]
 
static List< stringanglerWhoFinishedToday = new List<string>()
 
static bool anglerQuestFinished
 
static int anglerQuest
 
static int[] anglerQuestItemNetIDs
 
static AmbienceServer AmbienceServer
 
static ItemDropDatabase ItemDropsDB
 
static BestiaryDatabase BestiaryDB
 
static ItemDropResolver ItemDropSolver
 
static BestiaryUnlocksTracker BestiaryTracker
 
static UIBestiaryTest BestiaryUI
 
static TeleportPylonsSystem PylonSystem
 
static ShopHelper ShopHelper
 
static GolfState LocalGolfState = new GolfState()
 
static DroneCameraTracker DroneCameraTracker = new DroneCameraTracker()
 
static WorkshopPublishingIndicator WorkshopPublishingIndicator = new WorkshopPublishingIndicator()
 
static IssueReportsIndicator IssueReporterIndicator = new IssueReportsIndicator()
 
static bool Support4K = true
 
static float MinimumZoomComparerX = 1920f
 
static float MinimumZoomComparerY = 1200f
 
static int LogicCheckScreenWidth = 1920
 
static int LogicCheckScreenHeight = 1200
 
static float temporaryGUIScaleSlider = -1f
 
static bool temporaryGUIScaleSliderUpdate = false
 
static bool InGuideCraftMenu
 
static bool InReforgeMenu
 
static Item HoverItem = new Item()
 
static string motd = ""
 
static bool toggleFullscreen
 
static int numDisplayModes
 
static int[] displayWidth = new int[99]
 
static int[] displayHeight = new int[99]
 
static bool gameMenu = true
 
static bool menuBGChangedDay = false
 
static bool menuBGChangedNight = false
 
static bool lockMenuBGChange = false
 
static List< PlayerFileDataPlayerList = new List<PlayerFileData>()
 
static PlayerFileData ActivePlayerFileData = new PlayerFileData()
 
static Player PendingPlayer = null
 
static List< WorldFileDataWorldList = new List<WorldFileData>()
 
static WorldFileData ActiveWorldFileData = new WorldFileData()
 
static string WorldPath = Path.Combine(SavePath, "Worlds")
 
static string CloudWorldPath = "worlds"
 
static string PlayerPath = Path.Combine(SavePath, "Players")
 
static string CloudPlayerPath = "players"
 
static Preferences Configuration = new Preferences(SavePath + Path.DirectorySeparatorChar + "config.json")
 
static Preferences InputProfiles = new Preferences(SavePath + Path.DirectorySeparatorChar + "input profiles.json")
 
static KeyboardState inputText
 
static KeyboardState oldInputText
 
static int PendingResolutionWidth = 800
 
static int PendingResolutionHeight = 600
 
static bool PendingBorderlessState
 
static int invasionType
 
static double invasionX
 
static int invasionSize
 
static int invasionDelay
 
static int invasionWarn
 
static int invasionSizeStart
 
static bool invasionProgressNearInvasion
 
static int invasionProgressMode = 2
 
static int invasionProgressIcon
 
static int invasionProgress
 
static int invasionProgressMax
 
static int invasionProgressWave
 
static int invasionProgressDisplayLeft
 
static float invasionProgressAlpha
 
static bool HasInteractibleObjectThatIsNotATile = false
 
static int[] npcFrameCount
 
static Dictionary< int, byte > npcLifeBytes = new Dictionary<int, byte>()
 
static bool mouseExit
 
static float exitScale = 0.8f
 
static bool mouseReforge
 
static float reforgeScale = 0.8f
 
static Player clientPlayer = new Player()
 
static string getIP = defaultIP
 
static string getPort = Convert.ToString(Netplay.ListenPort)
 
static bool menuMultiplayer
 
static bool menuServer
 
static int netMode
 
const int MaxTimeout = 120
 
static int netPlayCounter
 
static int lastNPCUpdate
 
static int lastItemUpdate
 
static int maxNPCUpdates = 5
 
static int maxItemUpdates = 5
 
static string cUp = "W"
 
static string cLeft = "A"
 
static string cDown = "S"
 
static string cRight = "D"
 
static string cJump = "Space"
 
static string cThrowItem = "T"
 
static string cHeal = "H"
 
static string cMana = "J"
 
static string cBuff = "B"
 
static string cHook = "E"
 
static string cTorch = "LeftShift"
 
static string cInv = "Escape"
 
static string cSmart = "LeftControl"
 
static string cMount = "R"
 
static string cFavoriteKey = "LeftAlt"
 
static bool cSmartCursorModeIsToggleAndNotHold = true
 
static bool SmartCursorWanted_Mouse = false
 
static bool SmartCursorWanted_GamePad = false
 
static bool SmartCursorShowing = false
 
static int SmartCursorX
 
static int SmartCursorY
 
static bool SmartInteractShowingGenuine
 
static bool SmartInteractShowingFake
 
static int SmartInteractX
 
static int SmartInteractY
 
static int SmartInteractNPC
 
static int SmartInteractProj
 
static bool SmartInteractPotionOfReturn
 
static List< Microsoft.Xna.Framework.PointSmartInteractTileCoords = new List<Microsoft.Xna.Framework.Point>()
 
static List< Microsoft.Xna.Framework.PointSmartInteractTileCoordsSelected = new List<Microsoft.Xna.Framework.Point>()
 
static int TileInteractionLX = -1
 
static int TileInteractionLY = -1
 
static int TileInteractionHX = -1
 
static int TileInteractionHY = -1
 
static int cursorOverride = -1
 
static int signHover = -1
 
static string cMapZoomIn = "Add"
 
static string cMapZoomOut = "Subtract"
 
static string cMapAlphaUp = "PageUp"
 
static string cMapAlphaDown = "PageDown"
 
static string cMapFull = "M"
 
static string cMapStyle = "Tab"
 
static Microsoft.Xna.Framework.Input.Keys FavoriteKey = Microsoft.Xna.Framework.Input.Keys.LeftAlt
 
static ColorSlidersSet mouseColorSlider = new ColorSlidersSet()
 
static ColorSlidersSet mouseBorderColorSlider = new ColorSlidersSet()
 
static Microsoft.Xna.Framework.Color mouseColor = new Microsoft.Xna.Framework.Color(255, 50, 95)
 
static Microsoft.Xna.Framework.Color cursorColor = Microsoft.Xna.Framework.Color.White
 
static int cursorColorDirection = 1
 
static float cursorAlpha
 
static float cursorScale
 
static bool signBubble
 
static int signX = 0
 
static int signY = 0
 
static bool hideUI
 
static bool releaseUI
 
static FrameSkipMode FrameSkipMode = FrameSkipMode.Subtle
 
static bool terrariasFixedTiming = true
 
static ParticleRenderer ParticleSystem_World_OverPlayers = new ParticleRenderer()
 
static ParticleRenderer ParticleSystem_World_BehindPlayers = new ParticleRenderer()
 
static AnchoredEntitiesCollection sittingManager
 
static AnchoredEntitiesCollection sleepingManager
 
static MinimapFrameManager MinimapFrameManagerInstance
 
static PlayerResourceSetsManager ResourceSetsManager
 
static bool IsInTheMiddleOfLoadingSettings
 
static Microsoft.Xna.Framework.Point LastLoadedResolution
 
static bool startFullscreen = false
 
static string oldStatusText = ""
 
static string autoGenFileLocation = null
 
static bool autoShutdown
 
static bool fastForwardTimeToDawn
 
static int sundialCooldown
 
static bool fastForwardTimeToDusk
 
static int moondialCooldown
 
static GeneralIssueReporter IssueReporter
 
static bool PreventUpdatingTargets = true
 
static bool _shouldUseWindyDayMusic = false
 
static bool _shouldUseStormMusic = false
 
static float ambientWaterfallX = -1f
 
static float ambientWaterfallY = -1f
 
static float ambientWaterfallStrength = 0f
 
static float ambientLavafallX = -1f
 
static float ambientLavafallY = -1f
 
static float ambientLavafallStrength = 0f
 
static float ambientLavaX = -1f
 
static float ambientLavaY = -1f
 
static float ambientLavaStrength
 
static int ambientCounter
 
static IChatMonitor chatMonitor = new RemadeChatMonitor()
 
static int ProjectileUpdateLoopIndex = -1
 
static GameTipsDisplay gameTips
 
static int weatherVaneBobframe = 0
 
static int selectedPlayer = 0
 
static int selectedWorld
 
static int menuMode
 
static int menuSkip
 
static string newWorldName = ""
 
static bool HoveringOverAnNPC
 
static string hoverItemName = ""
 
static Microsoft.Xna.Framework.Color inventoryBack = new Microsoft.Xna.Framework.Color(220, 220, 220, 220)
 
static bool mouseText
 
static int hairStart
 
static int selClothes
 
static int interactedDresserTopLeftX
 
static int interactedDresserTopLeftY
 
static Player dresserInterfaceDummy
 
static Microsoft.Xna.Framework.Color selColor = Microsoft.Xna.Framework.Color.White
 
static int focusColor
 
static int colorDelay
 
static int setKey = -1
 
static int bgScroll
 
static bool autoPass
 
static int menuFocus = 0
 
static float hBar = -1f
 
static float sBar = -1f
 
static float lBar = 1f
 
static float aBar = 1f
 
static bool blockMouse
 
static float GamepadCursorAlpha = 0f
 
static float MenuXMovement = 0f
 
static float InitialMapScale = 1f
 
static float MapScale = 1f
 
static bool cancelWormHole = false
 
static float lightning
 
static int thunderDistance
 
static float atmo
 
static Microsoft.Xna.Framework.Color ColorOfTheSkies
 
static List< INeedRenderTargetContentContentThatNeedsRenderTargets = new List<INeedRenderTargetContent>()
 
static bool starGame = false
 
static int starsHit = 0
 
static int ladyBugRainBoost = 0
 

Protected Member Functions

void OpenRecent ()
 
void CheckBunny ()
 
void LoadSettings ()
 
void OpenLegacySettings ()
 
void SetTitle ()
 
override void Initialize ()
 
override void LoadContent ()
 
IEnumerator LoadContent_Deferred ()
 
override void UnloadContent ()
 
void UpdateAudio ()
 
override void Update (GameTime gameTime)
 
void DoUpdate (ref GameTime gameTime)
 
void DrawFPS ()
 
void DrawTiles (bool solidLayer, bool forRenderTargets, bool intoRenderTargets, int waterStyleOverride=-1)
 
void DrawGoreBehind ()
 
void DrawGore ()
 
void DrawProjectiles ()
 
void DrawPlayers_BehindNPCs ()
 
void DrawPlayers_AfterProjectiles ()
 
void DrawElderEye (SpriteBatch spriteBatch, Vector2 worldPosition, float opacity, float scale, int frameNumber, Microsoft.Xna.Framework.Color passedColor)
 
void DrawNPCs (bool behindTiles=false)
 
void DrawNPCCheckAlt (NPC n)
 
void DrawNPC (int iNPCIndex, bool behindTiles)
 
void DrawNPCExtras (NPC n, bool beforeDraw, float addHeight, float addY, Microsoft.Xna.Framework.Color npcColor, Vector2 halfSize, SpriteEffects npcSpriteEffect, Vector2 screenPosition)
 
void CacheNPCDraws ()
 
void CacheProjDraws ()
 
void DrawCachedNPCs (List< int > npcCache, bool behindTiles)
 
void DrawCachedProjs (List< int > projCache, bool startSpriteBatch=true)
 
void DrawSuperSpecialProjectiles (List< int > projCache, bool startSpriteBatch=true)
 
void SortDrawCacheWorms ()
 
void DrawWoF ()
 
void DrawItem (Item item, int whoami)
 
void DrawRain ()
 
void DrawDust ()
 
void GUIChatDrawInner ()
 
void DrawNPCHousesInWorld ()
 
void DrawPlayerChat ()
 
void DrawInventory ()
 
void GUIBarsDrawInner ()
 
void GUIHotbarDrawInner ()
 
void DrawHairWindow ()
 
void DrawClothesWindow ()
 
void DrawInterface (GameTime gameTime)
 
void QuitGame ()
 
Microsoft.Xna.Framework.Color randColor ()
 
void DrawMenu (GameTime gameTime)
 
void DrawSplash (GameTime gameTime)
 
void DrawUnderworldBackground (bool flat)
 
void DrawBackground ()
 
void OldDrawBackground ()
 
void RenderBackground ()
 
void DrawToMap ()
 
void DrawToMap_Section (int secX, int secY)
 
void DrawMap (GameTime gameTime)
 
void RenderTiles ()
 
void RenderTiles2 ()
 
void RenderWater ()
 
void DrawLiquid (bool bg=false, int waterStyle=0, float Alpha=1f, bool drawSinglePassLiquids=true)
 
bool FullTile (int x, int y)
 
void DrawBlack (bool force=false)
 
void RenderBlack ()
 
void DrawWalls ()
 
void RenderWalls ()
 
void ReleaseTargets ()
 
bool checkMap (int i, int j)
 
void InitMap ()
 
void InitTargets ()
 
void EnsureRenderTargetContent ()
 
void InitTargets (int width, int height)
 
void DrawWires ()
 
void DrawSurfaceBG ()
 
override void Draw (GameTime gameTime)
 

Protected Attributes

List< Tuple< int, int, ushort > > DrawWiresSpecialTiles = new List<Tuple<int, int, ushort>>()
 

Static Package Functions

static void UpdateCreativeGameModeOverride ()
 

Properties

static bool CanUpdateGameplay [get, private set]
 
static Vector2 ViewPosition [get]
 
static Vector2 ViewSize [get]
 
static Matrix CurrentWantedZoomMatrix [get]
 
static Matrix UIScaleMatrix [get]
 
static float UIScaleWanted [get]
 
static float UIScale [get, set]
 
float UIScaleMax [get]
 
static bool RenderTargetsRequired [get]
 
static bool IsItRaining [get]
 
static bool ThickMouse [get]
 
static bool GamepadDisableCursorItemIcon [get]
 
static string SavePath [get]
 
static GameModeData GameModeInfo [get]
 
static int GameMode [get, set]
 
static bool specialSeedWorld [get]
 
static bool masterMode [get]
 
static bool expertMode [get]
 
static AchievementManager Achievements [get]
 
static AchievementAdvisor AchievementAdvisor [get]
 
static ulong UnpausedUpdateSeed [get, private set]
 
static Effect screenShader [get]
 
static Effect pixelShader [get]
 
static Effect vertexPixelShader [get]
 
static Effect tileShader [get]
 
static Matrix Transform [get]
 
static Vector2 MouseScreen [get]
 
static Vector2 MouseWorld [get]
 
static INetDiagnosticsUI ActiveNetDiagnosticsUI [get]
 
static uint GameUpdateCount [get]
 
static SamplerState DefaultSamplerState [get]
 
static int UnderworldLayer [get]
 
static float WindForVisuals [get]
 
static Player LocalPlayer [get]
 
static CreativeUnlocksTracker LocalPlayerCreativeTracker [get]
 
static int npcShop [get, private set]
 
static string playerPathName [get]
 
static string worldPathName [get]
 
static bool SmartCursorWanted [get]
 
static bool SmartCursorIsUsed [get]
 
static bool HasSmartInteractTarget [get]
 
static bool IsItAHappyWindyDay [get]
 
static bool IsItStorming [get]
 
static bool WindyEnoughForKiteDrops [get]
 
static bool ShouldPVPDraw [get]
 
int RecommendedEquipmentAreaPushUp [get]
 
static bool ShouldDrawInfoIconsHorizontally [get]
 
static bool CanShowInfoAccs [get]
 
static Microsoft.Xna.Framework.Point ScreenSize [get]
 
static bool IsGraphicsDeviceAvailable [get]
 

Events

static Action OnEnginePreload
 
static Action< Vector2OnResolutionChanged
 
static Action OnEngineLoad
 
static Action OnTickForThirdPartySoftwareOnly
 
static Action OnTickForInternalCodeOnly
 
static Action< GameTimeOnPreDraw
 
static Action< GameTimeOnPostDraw
 
static Action< Vector2, float > OnPostFullscreenMapDraw
 
static Action OnRenderTargetsReleased
 
static ResolutionChangeEvent OnRenderTargetsInitialized
 

Private Member Functions

static int RemoveMenu (IntPtr hMenu, int nPosition, int wFlags)
 
static IntPtr GetSystemMenu (IntPtr hWnd, bool bRevert)
 
static int GetMenuItemCount (IntPtr hWnd)
 
static bool ShowWindow (IntPtr hWnd, int nCmdShow)
 
void BindSettingsTo (Preferences preferences)
 
void LoadResourcePacks (Preferences prefs)
 
void SaveResourcePacks (Preferences prefs)
 
void Initialize_AlmostEverything ()
 
void Initialize_Entities ()
 
void ClientInitialize ()
 
void OnceFailedLoadingAnAsset (string assetPath, Exception e)
 
void LoadContent_TryEnteringHiDef ()
 
void TickLoadProcess ()
 
IEnumerator LoadMusic_InSteps ()
 
void UpdateAudio_DecideOnTOWMusic ()
 
void UpdateAudio_DecideOnNewMusic ()
 
void UpdateWindyDayState ()
 
void DoDebugFunctions ()
 
void PreUpdateAllProjectiles ()
 
void PostUpdateAllProjectiles ()
 
void DoUpdateInWorld (Stopwatch sw)
 
void DoUpdate_HandleInput ()
 
void DoUpdate_AnimateWaterfalls ()
 
void DoUpdate_AnimateDiscoRGB ()
 
void MouseTextInner (MouseTextCache info)
 
void MouseText_DrawItemTooltip (MouseTextCache info, int rare, byte diff, int X, int Y)
 
void MouseText_DrawBuffTooltip (string buffString, ref int X, ref int Y)
 
void DrawTileEntities (bool solidLayer, bool overRenderTargets, bool intoRenderTargets)
 
void RefreshPlayerDrawOrder ()
 
void DrawProj_LightsBane (Projectile proj)
 
void DrawProj_NightsEdge (Projectile proj)
 
void DrawProj_Excalibur (Projectile proj)
 
void DrawProj_TheHorsemansBlade (Projectile proj)
 
void DrawProj_TrueExcalibur (Projectile proj)
 
void DrawProj_TrueNightsEdge (Projectile proj)
 
void DrawProj_TerraBlade2 (Projectile proj)
 
void DrawProj_TerraBlade2Shot (Projectile proj)
 
void DrawContinuousTrail (Projectile proj)
 
void DrawProj_StardustGuardianPunching (Projectile proj)
 
void DrawProj_PiercingStarlight (Projectile proj)
 
void DrawProj_FairyQueenLance (Projectile proj)
 
void DrawProj_FairyQueenRangedItemShot (Projectile proj)
 
void DrawProj_EmpressBlade (Projectile proj, float hueOverride)
 
void DrawProj_CoolWhipMinion (Projectile proj)
 
void DrawMurderAurora (Projectile proj)
 
void DrawWhip (Projectile proj)
 
void DrawTwinsPet (Projectile proj)
 
void DrawMultisegmentPet (Projectile proj)
 
void DrawKite (Projectile proj)
 
void DrawProjWithStarryTrail (Projectile proj, Microsoft.Xna.Framework.Color projectileColor, SpriteEffects dir)
 
void SortBabyBirdProjectiles (List< int > list)
 
void SortStardustDragonProjectiles (List< int > list)
 
void DrawItem_GetBasics (Item item, int slot, out Texture2D texture, out Microsoft.Xna.Framework.Rectangle frame, out Microsoft.Xna.Framework.Rectangle glowmaskFrame)
 
void DrawItem_AnimateSlot (int slot, int gameFramesPerSpriteFrame, int spriteFramesAmount)
 
void OpenShop (int shopIndex)
 
int NPCBannerSorter (int npcIndex1, int npcIndex2)
 
void DrawNPCHousesInUI ()
 
void DrawHotbarLockIcon (int pivotTopLeftX, int pivotTopLeftY, bool pushSideToolsUp)
 
void DrawBlockReplacementIcon (int pivotTopLeftX, int pivotTopLeftY, bool pushSideToolsUp, int gamepadPointOffset)
 
void DrawTorchBiomeSwapIcon (int pivotTopLeftX, int pivotTopLeftY, bool pushSideToolsUp, int gamepadPointOffset)
 
void HoverOverNPCs (Microsoft.Xna.Framework.Rectangle mouseRectangle)
 
void DrawInterface_Tests ()
 
void SetupDrawInterfaceLayers ()
 
void DrawInterface_40_InteractItemIcon ()
 
bool TryGetAmmo (Item sourceItem, out Item ammoItem, out Microsoft.Xna.Framework.Color ammoColor, out float ammoScale, out Vector2 ammoOffset)
 
void DrawInterface_39_MouseOver ()
 
void DrawInterface_38_MouseCarriedObject ()
 
void DrawInterface_34_PlayerChat ()
 
void DrawInterface_33_MouseText ()
 
void DrawInterface_InstrumentMouseText ()
 
void DrawInterface_31_BuilderAccToggles ()
 
void DrawInterface_28_InfoAccs ()
 
void HackForGamepadInputHell ()
 
void DrawInterface_27_Inventory ()
 
void DrawInterface_25_ResourceBars ()
 
void DrawInterface_23_NPCSignsDialog ()
 
void DrawInterface_22_DresserWindow ()
 
void DrawInterface_21_HairWindow ()
 
void DrawInterface_16_MapOrMinimap ()
 
void DrawInterface_14_EntityHealthBars ()
 
void DrawInterface_Healthbar_Worm (NPC head, int tailID, float scale)
 
bool DrawInterface_11_IngameOptionsMenu ()
 
void DrawInterface_7_TownNPCHouseBanners ()
 
void DrawInterface_30_Hotbar ()
 
void DrawInfoAccs ()
 
void DrawInfoAccs_AdjustInfoTextColorsForNPC (NPC npc, ref Microsoft.Xna.Framework.Color infoTextColor, ref Microsoft.Xna.Framework.Color infoTextShadowColor)
 
void DrawBuilderAccToggles (Vector2 start)
 
void Main_Exiting (object sender, EventArgs e)
 
void OnCharacterNamed (string text)
 
void OnSeedSelected (string text)
 
void OnWorldNamed (string text)
 
string SanitizePathArgument (string argumentName, string argumentPath)
 
void OnSubmitServerPassword (string passwordCandidate)
 
void OnSubmitServerPassword ()
 
void PreDrawMenu (out Microsoft.Xna.Framework.Point screenSizeCache, out Microsoft.Xna.Framework.Point screenSizeCacheAfterScaling)
 
void DrawSplash_LoadingFlower (Microsoft.Xna.Framework.Color splashColor)
 
void DrawSplash_LoadingStar (Microsoft.Xna.Framework.Color splashColor)
 
void DrawMiscMapIcons (SpriteBatch spriteBatch, Vector2 mapTopLeft, Vector2 mapX2Y2AndOff, Microsoft.Xna.Framework.Rectangle? mapRect, float mapScale, float drawScale, ref string mouseTextString)
 
void DrawMapIcons_PotionOfReturnAppearAfterUsePosition (SpriteBatch spriteBatch, Vector2 mapTopLeft, Vector2 mapX2Y2AndOff, Microsoft.Xna.Framework.Rectangle? mapRect, float mapScale, float drawScale, ref string mouseTextString)
 
void DrawMapIcons_PotionOfReturnHomePosition (SpriteBatch spriteBatch, Vector2 mapTopLeft, Vector2 mapX2Y2AndOff, Microsoft.Xna.Framework.Rectangle? mapRect, float mapScale, float drawScale, ref string mouseTextString)
 
void DrawMapIcons_LastGolfballHit (SpriteBatch spriteBatch, Vector2 mapTopLeft, Vector2 mapX2Y2AndOff, Microsoft.Xna.Framework.Rectangle? mapRect, float mapScale, float drawScale, ref string mouseTextString)
 
void DrawWaters (bool isBackground=false)
 
void DrawSurfaceBG_DrawBackMountainsLayer (int bgTextureIndex)
 
int DrawSurfaceBG_GetLayerYOffset (int bgTextureIndex)
 
float GetForestToForestBackgroundLerperValue ()
 
void DrawSurfaceBG_BackMountainsStep1 (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack)
 
void DrawSurfaceBG_BackMountainsStep2 (int pushBGTopHack)
 
void UpdateOceanWaterLineForAmbience ()
 
void DrawSurfaceBG_Mushroom (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
void DrawSurfaceBG_Crimson (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
void DrawSurfaceBG_Snow (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
void SetBackgroundOffsets (int backgroundID, double backgroundTopMagicNumber, int pushBGTopHack)
 
void DrawSurfaceBG_Hallow (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
void DrawSurfaceBG_GoodEvilDesert (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack)
 
void DrawSurfaceBG_Jungle (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
void DrawSurfaceBG_Desert (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
void DrawSurfaceBG_DrawChangeOverlay (int backgroundAreaId)
 
void DrawSurfaceBG_Corrupt (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
Microsoft.Xna.Framework.? Rectangle GetBackgroundRect (int backgroundTextureIndex)
 
uint GetBackgroundCounter ()
 
void DrawSurfaceBG_Forest (double backgroundTopMagicNumber, float bgGlobalScaleMultiplier, int pushBGTopHack, int[] bgTexIndexes)
 
void DrawBackgroundBlackFill ()
 
void GraphicsDeviceLost (object sender, EventArgs evt)
 
void DoDraw (GameTime gameTime)
 
void DrawSunAndMoon (SceneArea sceneArea, Microsoft.Xna.Framework.Color moonColor, Microsoft.Xna.Framework.Color sunColor, float tempMushroomInfluence)
 
void DrawStarsInBackground (SceneArea sceneArea, bool artificial)
 
void DrawStarsInForeground (SceneArea sceneArea)
 
void DrawStar (ref SceneArea sceneArea, float starOpacity, Microsoft.Xna.Framework.Color bgColorForStars, int i, Star theStar, bool artificial, bool foreground=false)
 
void Debug_PrettifyMap ()
 
void DrawPlayerChatBubbles ()
 
void DrawRainInMenu ()
 
void DoDraw_WallsTilesNPCs ()
 
void DoDraw_Waterfalls ()
 
void DoDraw_Tiles_Solid ()
 
void DoDraw_Tiles_NonSolid ()
 
void DoDraw_DrawNPCsOverTiles ()
 
void DoDraw_DrawNPCsBehindTiles ()
 
void DrawBackGore ()
 
void DoDraw_WallsAndBlacks ()
 
void DoLightTiles ()
 
void DrawBG ()
 
void UpdateBGVisibility_FrontLayer (int? targetBiomeOverride, float? transitionAmountOverride)
 
void UpdateBGVisibility_BackLayer (int? targetBiomeOverride, float? transitionAmountOverride)
 
void DrawBG_ModifyBGFarBackLayerAlpha (int desiredBG, int? desiredBG2=null, float? transitionAmountOverride=null)
 

Static Private Member Functions

static void SetGraphicsProfileInternal ()
 
static void TrySupporting8K ()
 
static int WorldListSortMethod (WorldFileData data1, WorldFileData data2)
 
static int PlayerListSortMethod (PlayerFileData data1, PlayerFileData data2)
 
static void TryPickingDefaultUIScale (float displayHeight)
 
static void ErasePlayer (int i)
 
static void EraseWorld (int i)
 
static void WriteFancyWorldLoadErrorToConsole ()
 
static string ReadLineInput ()
 
static void SetDisplayMonitor ()
 
static void SetMonitorOnce (object sender, PreparingDeviceSettingsEventArgs e)
 
static void SetTileValue ()
 
static void ResetGameCounter ()
 
static void Initialize_Items ()
 
static void Initialize_TileAndNPCData2 ()
 
static void AddEchoFurnitureTile (int tileId)
 
static void Initialize_TileAndNPCData1 ()
 
static void CacheSupportedDisplaySizes ()
 
static void PostContentLoadInitialize ()
 
static void UpdateOwlCageFrames ()
 
static void UpdateDragonflyJarFrames ()
 
static void UpdateOwlCageFrame (int[] frames, int[] frameCounters, int style)
 
static void UpdateDragonflyJarFrame (int[,] frames, int[,] frameCounters, int style, int variation)
 
static void ConsumeAllMainThreadActions ()
 
static void TryPlayingCreditsRoll ()
 
static bool CanPauseGame ()
 
static void DoUpdate_WhilePaused ()
 
static void UpdateUIStates (GameTime gameTime)
 
static void TrySyncingMyPlayer ()
 
static void TrySyncingItemArray (ref bool syncedAnyInventoryContents, Item[] my, Item[] other, int slotOffset)
 
static void CheckBossIndexes ()
 
static void UpdateOldNPCShop ()
 
static void DoUpdate_AnimateCursorColors ()
 
static void DoUpdate_AnimateTileGlows ()
 
static void DoUpdate_Enter_ToggleChat ()
 
static void DoUpdate_HandleChat ()
 
static void DoUpdate_AltEnter_ToggleFullscreen ()
 
static void DoUpdate_F11_ToggleUI ()
 
static void DoUpdate_F7_ToggleGraphicsDiagnostics ()
 
static void DoUpdate_F8_ToggleNetDiagnostics ()
 
static void DoUpdate_F9_ToggleLighting ()
 
static void DoUpdate_F10_ToggleFPS ()
 
static void AnimateTiles ()
 
static void AnimateTiles_WeatherVane ()
 
static void DoUpdate_AnimateWalls ()
 
static void DoUpdate_AnimateVisualPlayerAura ()
 
static void DoUpdate_AnimateBackgrounds ()
 
static void DoUpdate_AnimateBackgrounds_UpdateForest (int bgIndex, int[] bgSet)
 
static void DoUpdate_AutoSave ()
 
static void UpdateSettingUnlocks ()
 
static void UpdateMenu ()
 
static string PasteTextIn (bool allowMultiLine, string newKeys)
 
static void DrawNPCDirect_Deerclops (SpriteBatch mySpriteBatch, NPC rCurrentNPC, ref Vector2 screenPos, int typeCache, ref Microsoft.Xna.Framework.Color npcColor, ref Vector2 halfSize, SpriteEffects npcSpriteEffect)
 
static void DrawNPCDirect_DeerclopsLeg (SpriteBatch mySpriteBatch, NPC rCurrentNPC, ref Vector2 screenPos, int typeCache, ref Microsoft.Xna.Framework.Color npcColor, ref Vector2 halfSize, SpriteEffects npcSpriteEffect)
 
static void DrawNPCDirect_Faeling (SpriteBatch mySpriteBatch, NPC rCurrentNPC, ref Vector2 screenPos, int typeCache, ref Microsoft.Xna.Framework.Color npcColor, ref Vector2 halfSize, SpriteEffects npcSpriteEffect)
 
static void DrawNPCDirect_HallowBoss (SpriteBatch mySpriteBatch, NPC rCurrentNPC, ref Vector2 screenPos, int typeCache, ref Microsoft.Xna.Framework.Color npcColor, ref Vector2 halfSize, SpriteEffects npcSpriteEffect)
 
static void DrawNPCDirect_GetHallowBossArmFrame (NPC rCurrentNPC, out int armFrame_Count, out int armFrameToUseLeft, out int armFrameToUseRight)
 
static void DrawNPC_SlimeItem (NPC rCurrentNPC, int typeCache, Microsoft.Xna.Framework.Color npcColor, float addedRotation)
 
static void DrawTrail (Projectile proj, Vector2 rotatableOffsetFromCenter, Microsoft.Xna.Framework.Color baseColor)
 
static void DrawProj_Flamethrower (Projectile proj)
 
static void DrawProj_Spear (Projectile proj, ref Microsoft.Xna.Framework.Color projectileColor, ref SpriteEffects dir)
 
static void DrawPrettyStarSparkle (float opacity, SpriteEffects dir, Vector2 drawpos, Microsoft.Xna.Framework.Color drawColor, Microsoft.Xna.Framework.Color shineColor, float flareCounter, float fadeInStart, float fadeInEnd, float fadeOutStart, float fadeOutEnd, float rotation, Vector2 scale, Vector2 fatness)
 
static void DrawProj_FlailChains (Projectile proj, Vector2 mountedCenter)
 
static void DrawProj_FlailChains_Old (Projectile proj, Vector2 mountedCenter)
 
static Microsoft.Xna.Framework.Color TryApplyingPlayerStringColor (int playerStringColor, Microsoft.Xna.Framework.Color stringColor)
 
static void DrawProj_FishingLine (Projectile proj, ref float polePosX, ref float polePosY, Vector2 mountedCenter)
 
static int TryInteractingWithVoidLens (Projectile proj)
 
static int TryInteractingWithMoneyTrough (Projectile proj)
 
static void TryInteractingWithMoneyTrough2 (Projectile proj)
 
static void DrawWOFBody ()
 
static void DrawWOFRopeToTheHungry (int i)
 
static void DrawWOFTongueToPlayer (int i)
 
static void HelpText ()
 
static void DrawNPCChatButtons (int superColor, Microsoft.Xna.Framework.Color chatColor, int numLines, string focusText, string focusText3)
 
static void DrawLoadoutButtons (int inventoryTop, bool demonHeartSlotAvailable, bool masterModeSlotAvailable)
 
static void DrawDefenseCounter (int inventoryX, int inventoryY)
 
static void DrawGuideCraftText (int adjY, Microsoft.Xna.Framework.Color craftingTipColor, out int inventoryX, out int inventoryY)
 
static void DrawGuideCraftText_Old (int adjY, Microsoft.Xna.Framework.Color craftingTipColor, out int inventoryX, out int inventoryY)
 
static void HoverOverCraftingItemButton (int recipeIndex)
 
static bool TryAllowingToCraftRecipe (Recipe currentRecipe, bool tryFittingItemInInventoryToAllowCrafting, out bool movedAnItemToAllowCrafting)
 
static void DrawTrashItemSlot (int pivotTopLeftX, int pivotTopLeftY)
 
static void DrawEmoteBubblesButton (int pivotTopLeftX, int pivotTopLeftY)
 
static void DrawBestiaryIcon (int pivotTopLeftX, int pivotTopLeftY)
 
static void SetRecipeMaterialDisplayName (int i)
 
static void DrawPVPIcons ()
 
static int DrawPageIcons (int yPos)
 
static bool TryFreeingElderSlime (int npcIndex)
 
static void DrawNPCChatBubble (int i)
 
static void DrawInterface_Resources_Breath ()
 
static void DrawInterface_Resources_GolfPower ()
 
static void DrawInterface_GolfBallIndicator ()
 
static void DrawWallOfCopperShortswords ()
 
static void DrawWallOfBoulders ()
 
static void DrawInterface_41_InterfaceLogic4 ()
 
static void DrawPendingMouseText ()
 
static void DrawInterface_37_DebugStuff ()
 
static void DrawInterface_36_Cursor ()
 
static void DrawInterface_35_YouDied ()
 
static void DrawInterface_32_GamepadRadialHotbars ()
 
static void DrawInterface_26_InterfaceLogic3 ()
 
static void DrawInterface_24_InterfaceLogic2 ()
 
static void DrawInterface_20_MultiplayerPlayerNames ()
 
static void DrawInterface_19_SignTileBubble ()
 
static void DrawInterface_18_DiagnoseVideo ()
 
static void DrawInterface_17_DiagnoseNet ()
 
static void DrawInterface_15_InvasionProgressBars ()
 
static void DrawInterface_13_AchievementCompletePopups ()
 
static bool DrawInterface_12_IngameFancyUI ()
 
static bool DrawInterface_8_CheckF11UIHideToggle ()
 
static bool DrawInterface_10_CheckCaptureManager ()
 
static void DrawInterface_9_WireSelection ()
 
static void DrawInterface_0_InterfaceLogic1 ()
 
static void DrawInterface_6_TileGridOption ()
 
static void DrawInterface_5_GamepadLockOn ()
 
static void DrawInterface_4_Ruler ()
 
static void DrawInterface_3_LaserRuler ()
 
static void DrawInterface_2_SmartCursorTargets ()
 
static void DrawInterface_1_1_DrawEmoteBubblesInWorld ()
 
static void DrawInterface_1_2_DrawEntityMarkersInWorld ()
 
static void MouseOversTryToClear ()
 
static void MouseOversClear ()
 
static void DrawSmartCursor ()
 
static void DrawSmartInteract ()
 
static void GetInfoAccIconPosition (int drawnCount, int StartX, out int X, out int Y)
 
static void GetBuilderAccsCountToShow (Player plr, out int blockReplaceIcons, out int torchGodIcons, out int totalDrawnIcons)
 
static void TryDisposingEverything ()
 
static Action CreateGoToMenuEvent (int menu)
 
static void OnSubmitServerPasswordFromRequest (string passwordCandidate)
 
static void OnSubmitServerPasswordFromRequest ()
 
static void CanceledGivingServerPassword ()
 
static void ExitServerPasswordMenu ()
 
static bool IsGoodPortAddress (string text)
 
static void OnSubmitServerPort (string candidatePort)
 
static void DrawSocialMediaButtons (Microsoft.Xna.Framework.Color menuColor, float upBump)
 
static void DrawVersionNumber (Microsoft.Xna.Framework.Color menuColor, float upBump)
 
static void ClearVisualPostProcessEffects ()
 
static void PostDrawMenu (Microsoft.Xna.Framework.Point screenSizeCache, Microsoft.Xna.Framework.Point screenSizeCacheAfterScaling)
 
static bool IsBorderlessDisplayAvailable ()
 
static void SetDisplayModeAsBorderless (ref int width, ref int height, Form form)
 
static void ApplyBorderlessResolution (Form form)
 
static void SetBorderlessFormStyle (Form form)
 
static void CycleClothingStyle (Player plr)
 
static bool IsValidPlayerStyle (Player plr)
 
static void CycleClothingStyle_Inner (Player plr)
 
static void DrawUnderworldBackgroudLayer (bool flat, Vector2 screenOffset, float pushUp, int layerTextureIndex)
 
static bool ShouldDrawBackgroundTileAt (int i, int j)
 
static void UpdateMinimapAnchors ()
 
static void DrawMapFullscreenBackground (Vector2 screenPosition, int screenWidth, int screenHeight)
 
static bool DrawPlayerDeathMarker (float X, float Y, float scale, float left, float top, float headScale, int i)
 
static void DrawNPCHeadFriendly (Entity theNPC, byte alpha, float headScale, SpriteEffects dir, int townHeadId, float x, float y)
 
static void DrawNPCHeadBoss (Entity theNPC, byte alpha, float headScale, float rotation, SpriteEffects effects, int bossHeadId, float x, float y)
 
static void DrawWithOutlines (Entity entity, Texture2D tex, Vector2 position, Microsoft.Xna.Framework.Rectangle? rect, Microsoft.Xna.Framework.Color color, float rotation, Vector2 origin, float scale, SpriteEffects effects)
 
static string DrawMap_FindChestName (LocalizedText[] chestNames, Tile chestTile, int x, int y, int fullTileWidth=36)
 
static float DrawSurfaceBG_GetFogPower ()
 
static void CheckMonoliths ()
 
static void DrawItemTextPopups (float scaleTarget)
 
static void DoDraw_UpdateCameraPosition ()
 
static void ApplyColorOfTheSkiesToTiles ()
 
static void UpdateAtmosphereTransparencyToSkyColor ()
 
static void DrawNetplayStatusText ()
 
static void SetBackColor (InfoToSetBackColor info, out Microsoft.Xna.Framework.Color sunColor, out Microsoft.Xna.Framework.Color moonColor)
 
static void ClampScreenPositionToWorld ()
 
static void UpdateInvasion ()
 
static void InvasionWarning ()
 
static void UpdateClient ()
 
static void UpdateServer ()
 
static void ChangeRain ()
 
static void UpdateTime ()
 
static void HandleMeteorFall ()
 
static void UpdateSlimeRainWarning ()
 
static void UpdateTime_SpawnTownNPCs ()
 

Private Attributes

volatile bool _musicLoaded
 
volatile bool _artLoaded
 
volatile bool _begunMainAsyncLoad
 
AchievementManager _achievements
 
AchievementAdvisor _achievementAdvisor
 
string _cachedTitle
 
RenderTarget2D backWaterTarget
 
RenderTarget2D tileTarget
 
RenderTarget2D blackTarget
 
RenderTarget2D tile2Target
 
RenderTarget2D wallTarget
 
RenderTarget2D backgroundTarget
 
RenderTarget2D[,] mapTarget = new RenderTarget2D[mapTargetX, mapTargetY]
 
RenderTarget2D mapSectionTexture
 
int firstTileX
 
int lastTileX
 
int firstTileY
 
int lastTileY
 
double bgParallax
 
int bgStartX
 
int bgLoops
 
int bgStartY
 
int bgLoopsY
 
int bgTopY
 
int splashCounter
 
uint previousExecutionState
 
JArray _lastLoadedPacks
 
IEnumerator _gameContentLoadProcess
 
int lastMusicPlayed = -1
 
bool playOldTile
 
Stopwatch _worldUpdateTimeTester = new Stopwatch()
 
float logoRotation
 
float logoRotationDirection = -1f
 
float logoRotationSpeed = 1f
 
float logoScale = 1f
 
float logoScaleDirection = 1f
 
float logoScaleSpeed = 1f
 
float[] menuItemScale = new float[maxMenuItems]
 
int focusMenu = -1
 
int selectedMenu = -1
 
int selectedMenu2 = -1
 
MouseTextCache _mouseTextCache
 
AmbientWindSystem _ambientWindSys = new AmbientWindSystem()
 
List< Player_playersThatDrawBehindNPCs = new List<Player>(255)
 
List< Player_playersThatDrawAfterProjectiles = new List<Player>(255)
 
List< DrawData_voidLensData = new List<DrawData>()
 
List< DrawData_voidLensDataSillouette = new List<DrawData>()
 
List< DrawData_voidLensDataSillouette2 = new List<DrawData>()
 
TextDisplayCache _textDisplayCache = new TextDisplayCache()
 
List< int > _occupantsListToDrawNPCHouses = new List<int>()
 
List< int > _npcsWithBannersToDraw = new List<int>()
 
bool _imeToggle
 
List< int > _npcTypesThatAlreadyDrewAHead = new List<int>()
 
int[] _npcIndexWhoHoldsHeadIndex = new int[NPCHeadID.Count]
 
bool _needToSetupDrawInterfaceLayers = true
 
List< GameInterfaceLayer_gameInterfaceLayers
 
byte instrumentMouseFixHack
 
int grabColorSlider
 
bool[] menuWide = new bool[100]
 
bool _needsMenuUIRecalculation
 
float _splashFrameCount
 
bool quickSplash
 
float hellBlackBoxBottom
 
float screenOff
 
float scAdj
 
float cTop
 
bool _isDrawingOrUpdating
 

Static Private Attributes

const string versionStringBecauseTheyreTheSame = "v1.4.4.9"
 
static bool GameAskedToQuit = false
 
static Matrix _currentWantedZoomMatrix
 
static Matrix _uiScaleMatrix
 
static float _uiScaleWanted = 1f
 
static float _uiScaleUsed = 1f
 
static GameNotificationType _flashNotificationType = GameNotificationType.All
 
static GameModeData _currentGameModeInfo = GameModeData.NormalMode
 
static ? bool _overrideForExpertMode = null
 
static ? bool _overrideForMasterMode = null
 
static Vector2 _lastPingMousePosition = Vector2.Zero
 
static double _lastPingMouseDownTime = 0.0
 
static OnPlayerSelected _pendingCharacterSelect
 
static Microsoft.Xna.Framework.Color[] _mapColorCacheArray = new Microsoft.Xna.Framework.Color[30000]
 
static int toolTipDistance = 6
 
static ulong _drawCycleCounter
 
static float cameraLerp
 
static int cameraLerpTimer
 
static int cameraLerpTimeToggle
 
static bool cameraGamePadLerp
 
static ConcurrentQueue< Action > _mainThreadActions = new ConcurrentQueue<Action>()
 
static INetDiagnosticsUI _activeNetDiagnosticsUI
 
const bool USE_ASYNC_LOAD = true
 
static bool _isAsyncLoadComplete
 
const int BG_STYLES_COUNT = 14
 
static bool IsEnginePreloaded
 
static bool IsEngineLoaded
 
static uint _gameUpdateCount
 
const int MF_BYPOSITION = 1024
 
static Process tServer
 
static Stopwatch saveTime = new Stopwatch()
 
static UICharacterSelect _characterSelectMenu = new UICharacterSelect()
 
static UIWorldSelect _worldSelectMenu = new UIWorldSelect()
 
const double slimeRainMaxTime = 54000.0
 
const double slimeRainMinTime = 32400.0
 
const double slimeRainMaxDelay = 604800.0
 
const double slimeRainMinDelay = 302400.0
 
const double LeinforsBalanceRequestForSlimeRainChance = 1.0416666666666667
 
const double slimeRainChance = 450000.00000000006
 
static bool TOWMusicUnlocked = false
 
static bool swapMusic = false
 
static DrawAnimation _coinOnWorldAnimation = new DrawAnimationVertical(6, 8)
 
static DrawAnimation _monkStaffT3OnWorldAnimation = new DrawAnimationVertical(5, 3)
 
static int _renderTargetMaxSize = 2048
 
static GraphicsProfile _selectedGraphicsProfile = ((!Program.IsXna) ? GraphicsProfile.HiDef : GraphicsProfile.Reach)
 
static GraphicsProfile _currentGraphicsProfile = _selectedGraphicsProfile
 
static WorldPreparationState _worldPreparationState = WorldPreparationState.AwaitingData
 
static int backSpaceCount
 
static float backSpaceRate
 
static int maxLoadPlayer = 1000
 
static int maxLoadWorld = 1000
 
static int _targetNetMode
 
static bool _hasPendingNetmodeChange
 
static WindowStateController _windowMover
 
static bool shouldSetDefaultUIScale = true
 
static float newDefaultUIScale = 0f
 
static Stopwatch splashTimer = new Stopwatch()
 
static float _minWind = 0.34f
 
static float _maxWind = 0.4f
 
static float _minRain = 0.4f
 
static float _maxRain = 0.5f
 
static bool _isWaterfallMusicPlaying = false
 
static bool _isLavafallMusicPlaying = false
 
static int maxMenuItems = 16
 
static bool _needsLanguageSelect = true
 
static Item tooltipPrefixComparisonItem = new Item()
 
static Vector3 shimmerShine = new Vector3(1f, 0.5f, 1f)
 
static int[] specX = new int[1000]
 
static int[] specY = new int[1000]
 
static BlendState _multiplyBlendState = null
 
static StardewValleyAnimation _stardewAnimation
 
static UnifiedRandom _tempSeededRandom = new UnifiedRandom()
 
static int _lastHoveredLoadoutIndex = -1
 
static List< string_requiredObjecsForCraftingText = new List<string>()
 
static bool _preventCraftingBecauseClickWasUsedToChangeFocusedRecipe
 
static int _currentRecipeBeingCrafted = -1
 
static bool hidePVPIcons = false
 
static int mH
 
static int rare
 
static int oldHairStyle
 
static Microsoft.Xna.Framework.Color oldHairColor
 
static Microsoft.Xna.Framework.Color[] oldClothesColor = new Microsoft.Xna.Framework.Color[6]
 
static int oldClothesStyle
 
static GameTime _drawInterfaceGameTime
 
static bool _settingsButtonIsPushedToSide
 
static bool _MouseOversCanClear
 
static Vector2 _itemIconCacheScreenPosition
 
static int _itemIconCacheSelectedItemID
 
static int _itemIconCacheTime
 
static bool _cannotDrawAccessoriesHorizontally = false
 
static bool _blockFancyUIWhileLoading
 
static int _minimapTopRightAnchorOffsetTowardsLeft = 52
 
static int _minimapTopRightAnchorOffsetTowardsBottom = 90
 
static VertexColors _glowPaintColors = new VertexColors(Microsoft.Xna.Framework.Color.White)
 
static float lightningDecay = 1f
 
static float lightningSpeed = 0f
 
static int thunderDelay
 
static string[] MonolithFilterNames = new string[5] { "MonolithVortex", "MonolithNebula", "MonolithStardust", "MonolithSolar", "MonolithMoonLord" }
 
static string[] MonolithSkyNames = new string[5] { "MonolithVortex", "MonolithNebula", "MonolithStardust", "MonolithSolar", "MonolithMoonLord" }
 
static float backgroundLayerTransitionSpeed = 0.05f
 
static float bgScale = 1f
 
static int bgWidthScaled = (int)(1024f * bgScale)
 
static Microsoft.Xna.Framework.Color ColorOfSurfaceBackgroundsBase = Microsoft.Xna.Framework.Color.White
 
static Microsoft.Xna.Framework.Color ColorOfSurfaceBackgroundsModified = Microsoft.Xna.Framework.Color.White
 
static bool _cameraPanHasBlackTransition = false
 
static string _oldNetplayStatusText
 
static TextSnippet[] _netplayStatusTextSnippets
 
static bool _canShowMeteorFall
 
static bool _isResizingAndRemakingTargets = false
 

Detailed Description

Definition at line 78 of file Main.cs.


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