Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Win32;
- using Microsoft.Xna.Framework;
- using Microsoft.Xna.Framework.Audio;
- using Microsoft.Xna.Framework.Graphics;
- using Microsoft.Xna.Framework.Input;
- using System;
- using System.Collections.Generic;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Threading;
- using System.Windows.Forms;
- using Terraria.Achievements;
- using Terraria.DataStructures;
- using Terraria.GameContent;
- using Terraria.GameContent.Achievements;
- using Terraria.GameContent.Events;
- using Terraria.GameContent.Liquid;
- using Terraria.GameContent.Tile_Entities;
- using Terraria.GameContent.UI;
- using Terraria.GameContent.UI.Chat;
- using Terraria.GameContent.UI.States;
- using Terraria.Graphics;
- using Terraria.Graphics.Capture;
- using Terraria.Graphics.Effects;
- using Terraria.Graphics.Shaders;
- using Terraria.ID;
- using Terraria.Initializers;
- using Terraria.IO;
- using Terraria.Map;
- using Terraria.Net;
- using Terraria.ObjectData;
- using Terraria.Social;
- using Terraria.UI;
- using Terraria.UI.Chat;
- using Terraria.Utilities;
- using Terraria.World.Generation;
- namespace Terraria
- {
- public class Main : Game
- {
- public delegate void OnPlayerSelected(PlayerFileData player);
- public const int offLimitBorderTiles = 40;
- public const int maxItemTypes = 3601;
- public const int maxProjectileTypes = 651;
- public const int maxNPCTypes = 540;
- public const int maxTileSets = 419;
- public const int maxWallTypes = 225;
- public const int maxBuffTypes = 191;
- public const int maxGlowMasks = 214;
- public const int maxExtras = 69;
- public const int maxGoreTypes = 907;
- public const int numBannerTypes = 251;
- public const int numArmorHead = 194;
- public const int numArmorBody = 195;
- public const int numArmorLegs = 135;
- public const int numAccHandsOn = 19;
- public const int numAccHandsOff = 12;
- public const int numAccNeck = 9;
- public const int numAccBack = 10;
- public const int numAccFront = 5;
- public const int numAccShoes = 18;
- public const int numAccWaist = 12;
- public const int numAccShield = 6;
- public const int numAccFace = 9;
- public const int numAccBalloon = 16;
- public const int maxWings = 37;
- public const int maxBackgrounds = 207;
- public const int numInfoIcons = 13;
- private const int MF_BYPOSITION = 1024;
- public const int sectionWidth = 200;
- public const int sectionHeight = 150;
- public const int maxDust = 6000;
- public const int maxCombatText = 100;
- public const int maxItemText = 20;
- public const int maxPlayers = 255;
- public const int maxChests = 1000;
- public const int maxItems = 400;
- public const int maxProjectiles = 1000;
- public const int maxNPCs = 200;
- private const double slimeRainMaxTime = 54000.0;
- private const double slimeRainMinTime = 32400.0;
- private const double slimeRainMaxDelay = 604800.0;
- private const double slimeRainMinDelay = 302400.0;
- private const double slimeRainChance = 1728000.0;
- public const int maxGore = 500;
- public const int realInventory = 50;
- public const int maxInventory = 58;
- public const int maxItemSounds = 125;
- public const int maxNPCHitSounds = 57;
- public const int maxNPCKilledSounds = 62;
- public const int maxLiquidTypes = 12;
- public const int maxMusic = 40;
- public const double dayLength = 54000.0;
- public const double nightLength = 32400.0;
- public const int maxStars = 130;
- public const int maxStarTypes = 5;
- public const int maxClouds = 200;
- public const int maxCloudTypes = 22;
- public const int maxHair = 134;
- public const int maxCharSelectHair = 51;
- public const int MaxTimeout = 120;
- public static bool HidePassword = false;
- public static bool ThickMouse = false;
- public static uint ThickMousePackedColor = Microsoft.Xna.Framework.Color.White.PackedValue;
- public static bool CaptureModeDisabled = false;
- public bool unityMouseOver;
- public static Main instance;
- public static int curRelease = 149;
- public static string versionNumber = "v1.3.0.3";
- public static string versionNumber2 = "v1.3.0.3";
- public static Vector2 destroyerHB = new Vector2(0f, 0f);
- public static FavoritesFile LocalFavoriteData = new FavoritesFile(string.Concat(new object[]
- {
- Environment.GetFolderPath(Environment.SpecialFolder.Personal),
- Path.DirectorySeparatorChar,
- "My Games",
- Path.DirectorySeparatorChar,
- "Terraria",
- Path.DirectorySeparatorChar,
- "favorites.json"
- }), false);
- public static FavoritesFile CloudFavoritesData = new FavoritesFile("/favorites.json", true);
- public static FileMetadata WorldFileMetadata;
- public static FileMetadata MapFileMetadata;
- private AchievementManager _achievements;
- public static UserInterface MenuUI = new UserInterface();
- public static UserInterface InGameUI = new UserInterface();
- private static Main.OnPlayerSelected _pendingCharacterSelect;
- public static bool drawBackGore = false;
- public static ulong LobbyId = 0uL;
- public static float expertLife = 2f;
- public static float expertDamage = 2f;
- public static float expertDebuffTime = 2f;
- public static float expertKnockBack = 0.9f;
- public static float expertNPCDamage = 1.5f;
- public static float knockBackMultiplier = 1f;
- public static float damageMultiplier = 1f;
- public WaterfallManager waterfallManager;
- public static WorldSections sectionManager;
- public static bool ServerSideCharacter = false;
- public static string clientUUID;
- public static bool ContentLoaded = false;
- public static int maxMsg = 106;
- private static int toolTipDistance = 6;
- public static float GlobalTime = 0f;
- public static bool GlobalTimerPaused = false;
- private static ulong _tileFrameSeed = (ulong)((long)Guid.NewGuid().GetHashCode());
- private static ulong _drawCycleCounter = 0uL;
- public static Effect screenShader;
- public static Effect pixelShader;
- public static Effect tileShader;
- public static int npcStreamSpeed = 60;
- public static int musicError = 0;
- public static bool dedServFPS = false;
- public static int dedServCount1 = 0;
- public static int dedServCount2 = 0;
- public static bool superFast = false;
- public static bool[] hairLoaded = new bool[134];
- public static bool[] wingsLoaded = new bool[37];
- public static bool[] goreLoaded = new bool[907];
- public static bool[] projectileLoaded = new bool[651];
- public static bool[] itemFlameLoaded = new bool[3601];
- public static bool[] backgroundLoaded = new bool[207];
- public static bool[] tileSetsLoaded = new bool[419];
- public static bool[] wallLoaded = new bool[225];
- public static bool[] NPCLoaded = new bool[540];
- public static bool[] armorHeadLoaded = new bool[194];
- public static bool[] armorBodyLoaded = new bool[195];
- public static bool[] armorLegsLoaded = new bool[135];
- public static bool[] accHandsOnLoaded = new bool[19];
- public static bool[] accHandsOffLoaded = new bool[12];
- public static bool[] accBackLoaded = new bool[10];
- public static bool[] accFrontLoaded = new bool[5];
- public static bool[] accShoesLoaded = new bool[18];
- public static bool[] accWaistLoaded = new bool[12];
- public static bool[] accShieldLoaded = new bool[6];
- public static bool[] accNeckLoaded = new bool[9];
- public static bool[] accFaceLoaded = new bool[9];
- public static bool[] accballoonLoaded = new bool[16];
- public static Vector2[] OffsetsNPCOffhand = new Vector2[]
- {
- new Vector2(14f, 34f),
- new Vector2(14f, 32f),
- new Vector2(14f, 26f),
- new Vector2(14f, 22f),
- new Vector2(14f, 18f)
- };
- public static Vector2[] OffsetsPlayerOffhand = new Vector2[]
- {
- new Vector2(14f, 20f),
- new Vector2(14f, 20f),
- new Vector2(14f, 20f),
- new Vector2(14f, 18f),
- new Vector2(14f, 20f),
- new Vector2(16f, 4f),
- new Vector2(16f, 16f),
- new Vector2(18f, 14f),
- new Vector2(18f, 14f),
- new Vector2(18f, 14f),
- new Vector2(16f, 16f),
- new Vector2(16f, 16f),
- new Vector2(16f, 16f),
- new Vector2(16f, 16f),
- new Vector2(14f, 14f),
- new Vector2(14f, 14f),
- new Vector2(12f, 14f),
- new Vector2(14f, 16f),
- new Vector2(16f, 16f),
- new Vector2(16f, 16f)
- };
- public static Vector2[] OffsetsPlayerOnhand = new Vector2[]
- {
- new Vector2(6f, 19f),
- new Vector2(5f, 10f),
- new Vector2(12f, 10f),
- new Vector2(13f, 17f),
- new Vector2(12f, 19f),
- new Vector2(5f, 10f),
- new Vector2(7f, 17f),
- new Vector2(6f, 16f),
- new Vector2(6f, 16f),
- new Vector2(6f, 16f),
- new Vector2(6f, 17f),
- new Vector2(7f, 17f),
- new Vector2(7f, 17f),
- new Vector2(7f, 17f),
- new Vector2(8f, 17f),
- new Vector2(9f, 16f),
- new Vector2(9f, 12f),
- new Vector2(8f, 17f),
- new Vector2(7f, 17f),
- new Vector2(7f, 17f)
- };
- public static Vector2[] OffsetsPlayerHeadgear = new Vector2[]
- {
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 0f),
- new Vector2(0f, 0f),
- new Vector2(0f, 0f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 0f),
- new Vector2(0f, 0f),
- new Vector2(0f, 0f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f),
- new Vector2(0f, 2f)
- };
- public static float zoomX;
- public static float zoomY;
- public static float sunCircle;
- public static int BlackFadeIn = 0;
- public static bool noWindowBorder = false;
- private Matrix Transform = Matrix.CreateScale(1f, 1f, 1f) * Matrix.CreateRotationZ(0f) * Matrix.CreateTranslation(new Vector3(0f, 0f, 0f));
- private RasterizerState Rasterizer = RasterizerState.CullCounterClockwise;
- public static int ugBack = 0;
- public static int oldUgBack = 0;
- public static int[] bgFrame = new int[1];
- public static int[] bgFrameCounter = new int[1];
- public static bool skipMenu = false;
- public static bool verboseNetplay = false;
- public static bool stopTimeOuts = false;
- public static bool showSpam = false;
- public static bool showItemOwner = false;
- public static bool[] nextNPC = new bool[540];
- public static int musicBox = -1;
- public static int musicBox2 = -1;
- public static byte hbPosition = 1;
- public static bool cEd = false;
- public static float wFrCounter = 0f;
- public static float wFrame = 0f;
- public static float upTimer;
- public static float upTimerMax;
- public static float upTimerMaxDelay;
- public static bool drawDiag = false;
- public static bool drawRelease = false;
- public static bool drawBetterDebug = false;
- public static bool betterDebugRelease = false;
- public static bool renderNow = false;
- public static bool drawToScreen = false;
- public static bool targetSet = false;
- public static int mouseX;
- public static int mouseY;
- public static int lastMouseX;
- public static int lastMouseY;
- public static bool mouseLeft;
- public static bool mouseRight;
- private static bool _isMouseLeftConsumedByUI = false;
- public static float essScale = 1f;
- public static int essDir = -1;
- public static float[] cloudBGX = new float[2];
- public static float cloudBGAlpha;
- public static float cloudBGActive;
- public static int[] cloudBG = new int[]
- {
- 112,
- 113
- };
- public static int[] treeMntBG = new int[2];
- public static int[] treeBG = new int[3];
- public static int[] corruptBG = new int[3];
- public static int[] jungleBG = new int[3];
- public static int[] snowMntBG = new int[2];
- public static int[] snowBG = new int[3];
- public static int[] hallowBG = new int[3];
- public static int[] crimsonBG = new int[3];
- public static int[] desertBG = new int[2];
- public static int oceanBG;
- public static int[] treeX = new int[4];
- public static int[] treeStyle = new int[4];
- public static int[] caveBackX = new int[4];
- public static int[] caveBackStyle = new int[4];
- public static int iceBackStyle;
- public static int hellBackStyle;
- public static int jungleBackStyle;
- public static string debugWords = "";
- public static bool gamePad = false;
- public static bool xMas = false;
- public static bool halloween = false;
- public static int snowDust = 0;
- public static bool chTitle = false;
- public static bool hairWindow = false;
- public static bool clothesWindow = false;
- public static bool ingameOptionsWindow = false;
- public static bool achievementsWindow = false;
- public static int keyCount = 0;
- public static string[] keyString = new string[10];
- public static int[] keyInt = new int[10];
- public static byte gFade = 0;
- public static float gFader = 0f;
- public static byte gFadeDir = 1;
- public static bool netDiag = false;
- public static int txData = 0;
- public static int rxData = 0;
- public static int txMsg = 0;
- public static int rxMsg = 0;
- public static int[] rxMsgType = new int[Main.maxMsg];
- public static int[] rxDataType = new int[Main.maxMsg];
- public static int[] txMsgType = new int[Main.maxMsg];
- public static int[] txDataType = new int[Main.maxMsg];
- public static float uCarry = 0f;
- public static bool drawSkip = false;
- public static int fpsCount = 0;
- public static Stopwatch fpsTimer = new Stopwatch();
- public static Stopwatch updateTimer = new Stopwatch();
- public bool gammaTest;
- public static int fountainColor = -1;
- public static int monolithType = -1;
- public static bool showSplash = true;
- public static bool ignoreErrors = true;
- public static string defaultIP = "";
- public static int dayRate = 1;
- public static int maxScreenW = 1920;
- public static int minScreenW = 800;
- public static int maxScreenH = 1200;
- public static int minScreenH = 600;
- public static float iS = 1f;
- public static bool render = false;
- public static int qaStyle = 0;
- public static int zoneX = 99;
- public static int zoneY = 87;
- public static float harpNote = 0f;
- public static bool[] projHostile = new bool[651];
- public static bool[] projHook = new bool[651];
- public static bool[] pvpBuff = new bool[191];
- public static bool[] persistentBuff = new bool[191];
- public static bool[] vanityPet = new bool[191];
- public static bool[] lightPet = new bool[191];
- public static bool[] meleeBuff = new bool[191];
- public static bool[] debuff = new bool[191];
- public static string[] buffName = new string[191];
- public static string[] buffTip = new string[191];
- public static bool[] buffNoSave = new bool[191];
- public static bool[] buffNoTimeDisplay = new bool[191];
- public static bool[] buffDoubleApply = new bool[191];
- public static int maxMP = 10;
- public static string[] recentWorld = new string[Main.maxMP];
- public static string[] recentIP = new string[Main.maxMP];
- public static int[] recentPort = new int[Main.maxMP];
- public static bool shortRender = true;
- public static bool owBack = true;
- public static int quickBG = 2;
- public static int bgDelay = 0;
- public static int bgStyle = 0;
- public static float[] bgAlpha = new float[10];
- public static float[] bgAlpha2 = new float[10];
- public static int EquipPage = 0;
- public static int EquipPageSelected = 0;
- public int mouseNPC = -1;
- public static int wof = -1;
- public static int wofT;
- public static int wofB;
- public static int wofF = 0;
- public static int offScreenRange = 200;
- private RenderTarget2D backWaterTarget;
- private RenderTarget2D waterTarget;
- private RenderTarget2D tileTarget;
- private RenderTarget2D blackTarget;
- private RenderTarget2D tile2Target;
- private RenderTarget2D wallTarget;
- private RenderTarget2D backgroundTarget;
- private RenderTarget2D screenTarget;
- public static int maxMapUpdates = 250000;
- public static bool refreshMap = false;
- public static int loadMapLastX = 0;
- public static bool loadMapLock = false;
- public static bool loadMap = false;
- public static bool mapReady = false;
- public static int textureMaxWidth = 2000;
- public static int textureMaxHeight = 1800;
- public static bool updateMap = false;
- public static int mapMinX = 0;
- public static int mapMaxX = 0;
- public static int mapMinY = 0;
- public static int mapMaxY = 0;
- public static int mapTimeMax = 30;
- public static int mapTime = Main.mapTimeMax;
- public static bool clearMap;
- public static int mapTargetX = 5;
- public static int mapTargetY = 2;
- private static bool flameRingLoaded;
- private Texture2D flameRingTexture;
- private Texture2D mapDeathTexture;
- private RenderTarget2D[,] mapTarget = new RenderTarget2D[Main.mapTargetX, Main.mapTargetY];
- private RenderTarget2D mapSectionTexture;
- public static bool[,] initMap = new bool[Main.mapTargetX, Main.mapTargetY];
- public static bool[,] mapWasContentLost = new bool[Main.mapTargetX, Main.mapTargetY];
- private Texture2D[] infoIconTexture = new Texture2D[13];
- public static Texture2D[] clothesTexture = new Texture2D[4];
- public static Texture2D[] mapIconTexture = new Texture2D[9];
- private static Texture2D[] underworldTexture = new Texture2D[5];
- public static Texture2D mapTexture;
- private Texture2D mapBG1Texture;
- private Texture2D mapBG2Texture;
- private Texture2D mapBG3Texture;
- private Texture2D mapBG4Texture;
- private Texture2D mapBG5Texture;
- private Texture2D mapBG6Texture;
- private Texture2D mapBG7Texture;
- private Texture2D mapBG8Texture;
- private Texture2D mapBG9Texture;
- private Texture2D mapBG10Texture;
- private Texture2D mapBG11Texture;
- private Texture2D mapBG12Texture;
- private Texture2D mapBG13Texture;
- private Texture2D mapBG14Texture;
- private Texture2D mapBG15Texture;
- private Texture2D hueTexture;
- public static Texture2D colorSliderTexture;
- public static Texture2D colorBarTexture;
- public static Texture2D colorBlipTexture;
- public static Texture2D smartDigTexture;
- public static Microsoft.Xna.Framework.Color OurFavoriteColor = new Microsoft.Xna.Framework.Color(255, 231, 69);
- public static Texture2D tileCrackTexture;
- private Texture2D iceBarrierTexture;
- public static bool mapInit = false;
- public static bool mapEnabled = true;
- public static int mapStyle = 1;
- public static float grabMapX = 0f;
- public static float grabMapY = 0f;
- public static int miniMapX = 0;
- public static int miniMapY = 0;
- public static int miniMapWidth = 0;
- public static int miniMapHeight = 0;
- public static float mapMinimapScale = 1.25f;
- public static float mapMinimapAlpha = 1f;
- public static float mapOverlayScale = 2.5f;
- public static float mapOverlayAlpha = 0.35f;
- public static bool mapFullscreen = false;
- public static bool resetMapFull = false;
- public static float mapFullscreenScale = 4f;
- public static Vector2 mapFullscreenPos = new Vector2(-1f, -1f);
- private static bool IsEngineLoaded = false;
- private int firstTileX;
- private int lastTileX;
- private int firstTileY;
- private int lastTileY;
- private double bgParallax;
- private int bgStart;
- private int bgLoops;
- private int bgStartY;
- private int bgLoopsY;
- private int bgTop;
- public static int renderCount = 99;
- public static GraphicsDeviceManager graphics;
- public static SpriteBatch spriteBatch;
- public static TileBatch tileBatch;
- public static GenerationProgress AutogenProgress = new GenerationProgress();
- private Process tServer = new Process();
- private static Stopwatch saveTime = new Stopwatch();
- public static MouseState mouseState;
- public static MouseState oldMouseState;
- public static int oldMouseWheel;
- public static KeyboardState keyState;
- public static Microsoft.Xna.Framework.Color mcColor = new Microsoft.Xna.Framework.Color(125, 125, 255);
- public static Microsoft.Xna.Framework.Color hcColor = new Microsoft.Xna.Framework.Color(200, 125, 255);
- public static Microsoft.Xna.Framework.Color highVersionColor = new Microsoft.Xna.Framework.Color(255, 255, 0);
- public static Microsoft.Xna.Framework.Color errorColor = new Microsoft.Xna.Framework.Color(255, 0, 0);
- public static Microsoft.Xna.Framework.Color bgColor;
- public static bool mouseHC = false;
- public static bool craftingHide = false;
- public static bool armorHide = false;
- public static float craftingAlpha = 1f;
- public static float armorAlpha = 1f;
- public static float[] buffAlpha = new float[191];
- public static bool hardMode = false;
- public float chestLootScale = 1f;
- public bool chestLootHover;
- public float chestStackScale = 1f;
- public bool chestStackHover;
- public float chestDepositScale = 1f;
- public bool chestDepositHover;
- public float chestRenameScale = 1f;
- public bool chestRenameHover;
- public float chestCancelScale = 1f;
- public bool chestCancelHover;
- public static Vector2 sceneWaterPos = Vector2.Zero;
- public static Vector2 sceneTilePos = Vector2.Zero;
- public static Vector2 sceneTile2Pos = Vector2.Zero;
- public static Vector2 sceneWallPos = Vector2.Zero;
- public static Vector2 sceneBackgroundPos = Vector2.Zero;
- public static bool maxQ = true;
- public static float gfxQuality = 1f;
- public static float gfxRate = 0.01f;
- public int DiscoStyle;
- public static int DiscoR = 255;
- public static int DiscoB = 0;
- public static int DiscoG = 0;
- public static int teamCooldown = 0;
- public static int teamCooldownLen = 300;
- public static bool gamePaused = false;
- public static bool gameInactive = false;
- public static int updateTime = 0;
- public static int drawTime = 0;
- public static int uCount = 0;
- public static int updateRate = 0;
- public static int frameRate = 0;
- public static bool RGBRelease = false;
- public static bool qRelease = false;
- public static bool netRelease = false;
- public static bool frameRelease = false;
- public static bool showFrameRate = false;
- public static int magmaBGFrame = 0;
- public static int magmaBGFrameCounter = 0;
- public static int saveTimer = 0;
- public static bool autoJoin = false;
- public static bool serverStarting = false;
- public static float leftWorld = 0f;
- public static float rightWorld = 134400f;
- public static float topWorld = 0f;
- public static float bottomWorld = 38400f;
- public static int maxTilesX = (int)Main.rightWorld / 16 + 1;
- public static int maxTilesY = (int)Main.bottomWorld / 16 + 1;
- public static int maxSectionsX = Main.maxTilesX / 200;
- public static int maxSectionsY = Main.maxTilesY / 150;
- public static int numDust = 6000;
- public static int numPlayers = 0;
- public static int maxNetPlayers = 255;
- private static UICharacterSelect _characterSelectMenu = new UICharacterSelect();
- private static UIWorldSelect _worldSelectMenu = new UIWorldSelect();
- public static UIAchievementsMenu AchievementsMenu = new UIAchievementsMenu();
- public static int maxRain = 750;
- public static int slimeWarningTime = 0;
- public static int slimeWarningDelay = 420;
- public static float slimeRainNPCSlots = 0.65f;
- public static bool[] slimeRainNPC = new bool[540];
- public static double slimeRainTime = 0.0;
- public static bool slimeRain = false;
- public static int slimeRainKillCount = 0;
- public int invBottom = 210;
- public static float cameraX = 0f;
- public static bool drewLava = false;
- public static float[] liquidAlpha = new float[12];
- public static int waterStyle = 0;
- public static int worldRate = 1;
- public static float caveParallax = 0.88f;
- public static int dungeonX;
- public static int dungeonY;
- public static Liquid[] liquid = new Liquid[Liquid.resLiquid];
- public static LiquidBuffer[] liquidBuffer = new LiquidBuffer[10000];
- public static bool dedServ = false;
- public static int spamCount = 0;
- public static int curMusic = 0;
- public static int dayMusic = 0;
- public static int ugMusic = 0;
- public int newMusic;
- public static bool showItemText = true;
- public static bool autoSave = true;
- public static bool validateSaves = true;
- public static bool bannerMouseOver = false;
- public static string buffString = "";
- public static string libPath = "";
- public static int lo = 0;
- public static int LogoA = 255;
- public static int LogoB = 0;
- public static bool LogoT = false;
- public static string statusText = "";
- public static string worldName = "";
- public static int worldID;
- public static int background = 0;
- public static int caveBackground = 0;
- public static float ugBackTransition = 0f;
- public static Microsoft.Xna.Framework.Color tileColor;
- public static double worldSurface;
- public static double rockLayer;
- public static Microsoft.Xna.Framework.Color[] teamColor = new Microsoft.Xna.Framework.Color[6];
- public static bool dayTime = true;
- public static double time = 13500.0;
- public static int moonPhase = 0;
- public static short sunModY = 0;
- public static short moonModY = 0;
- public static bool grabSky = false;
- public static bool bloodMoon = false;
- public static bool pumpkinMoon = false;
- public static bool snowMoon = false;
- public static float cloudAlpha = 0f;
- public static float maxRaining = 0f;
- public static float oldMaxRaining = 0f;
- public static int rainTime = 0;
- public static bool raining = false;
- public static bool eclipse = false;
- public static float eclipseLight = 0f;
- public static int checkForSpawns = 0;
- public static int helpText = 0;
- public static bool autoGen = false;
- public static bool autoPause = false;
- public static int[] projFrames = new int[651];
- public static bool[] projPet = new bool[651];
- public static float demonTorch = 1f;
- public static int demonTorchDir = 1;
- public static float martianLight = 1f;
- public static int martianLightDir = 1;
- public static bool placementPreview = true;
- public static int numStars;
- public static int weatherCounter = 0;
- public static int cloudLimit = 200;
- public static int numClouds = Main.cloudLimit;
- public static int numCloudsTemp = Main.numClouds;
- public static float windSpeedTemp = 0f;
- public static float windSpeed = 0f;
- public static float windSpeedSet = 0f;
- public static float windSpeedSpeed = 0f;
- public static Cloud[] cloud = new Cloud[200];
- public static bool resetClouds = true;
- public static int sandTiles;
- public static int evilTiles;
- public static int shroomTiles;
- public static float shroomLight;
- public static int snowTiles;
- public static int holyTiles;
- public static int waterCandles;
- public static int peaceCandles;
- public static int meteorTiles;
- public static int bloodTiles;
- public static int jungleTiles;
- public static int dungeonTiles;
- public static bool sunflower;
- public static bool clock;
- public static bool campfire;
- public static bool starInBottle;
- public static bool heartLantern;
- public static int fadeCounter = 0;
- public static float invAlpha = 1f;
- public static float invDir = 1f;
- [ThreadStatic]
- public static Random rand;
- public static Texture2D[] chestStackTexture = new Texture2D[2];
- private static bool allChestStackHover = false;
- public static Texture2D[] bannerTexture = new Texture2D[3];
- public static Texture2D[] npcHeadTexture = new Texture2D[24];
- public static Texture2D[] npcHeadBossTexture = new Texture2D[31];
- public static Texture2D[] craftToggleTexture = new Texture2D[4];
- public static Texture2D craftUpButtonTexture;
- public static Texture2D craftDownButtonTexture;
- public static Texture2D scrollLeftButtonTexture;
- public static Texture2D scrollRightButtonTexture;
- public static Texture2D frozenTexture;
- public static Texture2D magicPixel;
- public static Texture2D miniMapFrameTexture;
- public static Texture2D miniMapFrame2Texture;
- public static Texture2D[] miniMapButtonTexture = new Texture2D[3];
- public static Texture2D[] destTexture = new Texture2D[3];
- public static Texture2D[] gemTexture = new Texture2D[6];
- public static Texture2D[] rudolphMountTexture = new Texture2D[3];
- public static Texture2D bunnyMountTexture;
- public static Texture2D pigronMountTexture;
- public static Texture2D slimeMountTexture;
- public static Texture2D minecartMountTexture;
- public static Texture2D turtleMountTexture;
- public static Texture2D[] beeMountTexture = new Texture2D[2];
- public static Texture2D[] UFOMountTexture = new Texture2D[2];
- public static Texture2D[] drillMountTexture = new Texture2D[6];
- public static Texture2D[] scutlixMountTexture = new Texture2D[3];
- public static Texture2D unicornMountTexture;
- public static Texture2D[] minecartMechMountTexture = new Texture2D[2];
- public static Texture2D[] cuteFishronMountTexture = new Texture2D[2];
- public static Texture2D minecartWoodMountTexture;
- public static Texture2D[] wingsTexture = new Texture2D[37];
- public static Texture2D[] armorHeadTexture = new Texture2D[194];
- public static Texture2D[] armorBodyTexture = new Texture2D[195];
- public static Texture2D[] femaleBodyTexture = new Texture2D[195];
- public static Texture2D[] armorArmTexture = new Texture2D[195];
- public static Texture2D[] armorLegTexture = new Texture2D[135];
- public static Texture2D[] accHandsOnTexture = new Texture2D[19];
- public static Texture2D[] accHandsOffTexture = new Texture2D[12];
- public static Texture2D[] accBackTexture = new Texture2D[10];
- public static Texture2D[] accFrontTexture = new Texture2D[5];
- public static Texture2D[] accShoesTexture = new Texture2D[18];
- public static Texture2D[] accWaistTexture = new Texture2D[12];
- public static Texture2D[] accShieldTexture = new Texture2D[6];
- public static Texture2D[] accNeckTexture = new Texture2D[9];
- public static Texture2D[] accFaceTexture = new Texture2D[9];
- public static Texture2D[] accBalloonTexture = new Texture2D[16];
- public static Texture2D pulleyTexture;
- public static Texture2D[] xmasTree = new Texture2D[5];
- public static Texture2D[] FlameTexture = new Texture2D[17];
- public static Texture2D timerTexture;
- public static Texture2D[] reforgeTexture = new Texture2D[2];
- public static Texture2D wallOutlineTexture;
- public static Texture2D actuatorTexture;
- public static Texture2D wireTexture;
- public static Texture2D wire2Texture;
- public static Texture2D wire3Texture;
- public static Texture2D[] cameraTexture = new Texture2D[8];
- public static Texture2D flyingCarpetTexture;
- public static Texture2D gridTexture;
- public static Texture2D lightDiscTexture;
- public static Texture2D EyeLaserTexture;
- public static Texture2D BoneEyesTexture;
- public static Texture2D BoneLaserTexture;
- public static Texture2D trashTexture;
- public static Texture2D fishingLineTexture;
- public static Texture2D beetleTexture;
- public static Texture2D probeTexture;
- public static Texture2D eyeLaserSmallTexture;
- public static Texture2D xmasLightTexture;
- public static Texture2D[] golemTexture = new Texture2D[4];
- public static Texture2D confuseTexture;
- public static Texture2D sunOrbTexture;
- public static Texture2D sunAltarTexture;
- public static Texture2D[] chainsTexture = new Texture2D[16];
- public static Texture2D chainTexture;
- public static Texture2D[] gemChainTexture = new Texture2D[7];
- public static Texture2D chain2Texture;
- public static Texture2D chain3Texture;
- public static Texture2D chain4Texture;
- public static Texture2D chain5Texture;
- public static Texture2D chain6Texture;
- public static Texture2D chain7Texture;
- public static Texture2D chain8Texture;
- public static Texture2D chain9Texture;
- public static Texture2D chain10Texture;
- public static Texture2D chain11Texture;
- public static Texture2D chain12Texture;
- public static Texture2D chain13Texture;
- public static Texture2D chain14Texture;
- public static Texture2D chain15Texture;
- public static Texture2D chain16Texture;
- public static Texture2D chain17Texture;
- public static Texture2D chain18Texture;
- public static Texture2D chain19Texture;
- public static Texture2D chain20Texture;
- public static Texture2D chain21Texture;
- public static Texture2D chain22Texture;
- public static Texture2D chain23Texture;
- public static Texture2D chain24Texture;
- public static Texture2D chain25Texture;
- public static Texture2D chain26Texture;
- public static Texture2D chain27Texture;
- public static Texture2D chain28Texture;
- public static Texture2D chain29Texture;
- public static Texture2D chain30Texture;
- public static Texture2D chain31Texture;
- public static Texture2D chain32Texture;
- public static Texture2D chain33Texture;
- public static Texture2D chain34Texture;
- public static Texture2D chain35Texture;
- public static Texture2D chain36Texture;
- public static Texture2D chain37Texture;
- public static Texture2D chain38Texture;
- public static Texture2D chain39Texture;
- public static Texture2D chain40Texture;
- public static Texture2D hbTexture1;
- public static Texture2D hbTexture2;
- public static Texture2D chaosTexture;
- public static Texture2D cdTexture;
- public static Texture2D wofTexture;
- public static Texture2D boneArmTexture;
- public static Texture2D boneArm2Texture;
- public static Texture2D pumpkingArmTexture;
- public static Texture2D pumpkingCloakTexture;
- public static Texture2D[] EquipPageTexture = new Texture2D[11];
- public static Texture2D[] PVPTexture = new Texture2D[3];
- public static Texture2D[] npcToggleTexture = new Texture2D[2];
- public static Texture2D[] HBLockTexture = new Texture2D[2];
- public static Texture2D[] buffTexture = new Texture2D[191];
- public static Texture2D[] itemTexture = new Texture2D[3601];
- public static Texture2D[] itemFlameTexture = new Texture2D[3601];
- public static Texture2D[] npcTexture = new Texture2D[540];
- public static Texture2D[] projectileTexture = new Texture2D[651];
- public static Texture2D[] goreTexture = new Texture2D[907];
- public static Texture2D[] BackPackTexture = new Texture2D[8];
- public static Texture2D rainTexture;
- public static Texture2D[] glowMaskTexture = new Texture2D[214];
- public static Texture2D[] extraTexture = new Texture2D[69];
- public static Texture2D[] coinTexture = new Texture2D[4];
- public static Texture2D[] cursorTextures = new Texture2D[13];
- public static Texture2D dustTexture;
- public static Texture2D sunTexture;
- public static Texture2D sun2Texture;
- public static Texture2D sun3Texture;
- public static int maxMoons = 3;
- public static int moonType = 0;
- public static Texture2D[] moonTexture = new Texture2D[Main.maxMoons];
- public static Texture2D pumpkinMoonTexture;
- public static Texture2D snowMoonTexture;
- public static Texture2D oneDropLogo;
- public static int numTileColors = 31;
- public static RenderTarget2D[,] tileAltTexture = new RenderTarget2D[419, Main.numTileColors];
- public static bool[,] tileAltTextureInit = new bool[419, Main.numTileColors];
- public static bool[,] tileAltTextureDrawn = new bool[419, Main.numTileColors];
- public static int numTreeStyles = 19;
- public static RenderTarget2D[,] treeTopAltTexture = new RenderTarget2D[Main.numTreeStyles, Main.numTileColors];
- public static RenderTarget2D[,] treeBranchAltTexture = new RenderTarget2D[Main.numTreeStyles, Main.numTileColors];
- public static bool[,] treeAltTextureInit = new bool[Main.numTreeStyles, Main.numTileColors];
- public static bool[,] treeAltTextureDrawn = new bool[Main.numTreeStyles, Main.numTileColors];
- public static bool[,] checkTreeAlt = new bool[Main.numTreeStyles, Main.numTileColors];
- public static RenderTarget2D[,] wallAltTexture = new RenderTarget2D[225, Main.numTileColors];
- public static bool[,] wallAltTextureInit = new bool[225, Main.numTileColors];
- public static bool[,] wallAltTextureDrawn = new bool[225, Main.numTileColors];
- public static Texture2D[] tileTexture = new Texture2D[419];
- public static Texture2D blackTileTexture;
- public static Texture2D[] wallTexture = new Texture2D[225];
- public static Texture2D[] backgroundTexture = new Texture2D[207];
- public static Texture2D[] cloudTexture = new Texture2D[22];
- public static Texture2D[] starTexture = new Texture2D[5];
- public static Texture2D[] liquidTexture = new Texture2D[12];
- public static Texture2D heartTexture;
- public static Texture2D heart2Texture;
- public static Texture2D manaTexture;
- public static Texture2D bubbleTexture;
- public static Texture2D flameTexture;
- public static Texture2D[] treeTopTexture = new Texture2D[Main.numTreeStyles];
- public static Texture2D[] treeBranchTexture = new Texture2D[Main.numTreeStyles];
- public static Texture2D[] woodTexture = new Texture2D[7];
- public static RenderTarget2D[,] woodAltTexture = new RenderTarget2D[Main.woodTexture.Length, Main.numTileColors];
- public static Texture2D shroomCapTexture;
- public static Texture2D inventoryBackTexture;
- public static Texture2D inventoryBack2Texture;
- public static Texture2D inventoryBack3Texture;
- public static Texture2D inventoryBack4Texture;
- public static Texture2D inventoryBack5Texture;
- public static Texture2D inventoryBack6Texture;
- public static Texture2D inventoryBack7Texture;
- public static Texture2D inventoryBack8Texture;
- public static Texture2D inventoryBack9Texture;
- public static Texture2D inventoryBack10Texture;
- public static Texture2D inventoryBack11Texture;
- public static Texture2D inventoryBack12Texture;
- public static Texture2D inventoryBack13Texture;
- public static Texture2D inventoryBack14Texture;
- public static Texture2D inventoryBack15Texture;
- public static Texture2D hairStyleBackTexture;
- public static Texture2D clothesStyleBackTexture;
- public static Texture2D inventoryTickOnTexture;
- public static Texture2D inventoryTickOffTexture;
- public static Texture2D loTexture;
- public static Texture2D logoTexture;
- public static Texture2D logo2Texture;
- public static Texture2D textBackTexture;
- public static Texture2D chatTexture;
- public static Texture2D chat2Texture;
- public static Texture2D chatBackTexture;
- public static Texture2D teamTexture;
- public static Texture2D reTexture;
- public static Texture2D raTexture;
- public static Texture2D splashTexture;
- public static Texture2D fadeTexture;
- public static Texture2D ninjaTexture;
- public static Texture2D antLionTexture;
- public static Texture2D spikeBaseTexture;
- public static Texture2D ghostTexture;
- public static Texture2D evilCactusTexture;
- public static Texture2D goodCactusTexture;
- public static Texture2D crimsonCactusTexture;
- public static Texture2D wraithEyeTexture;
- public static Texture2D fireflyTexture;
- public static Texture2D fireflyJarTexture;
- public static Texture2D lightningbugTexture;
- ETC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement