Terraria 1.4.0.5 Source Code

This commit is contained in:
MikeyIsBaeYT 2021-10-26 12:45:26 -04:00
commit 05205f009e
1059 changed files with 563450 additions and 0 deletions

24
Enums/AnchorType.cs Normal file
View file

@ -0,0 +1,24 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.AnchorType
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
using System;
namespace Terraria.Enums
{
[Flags]
public enum AnchorType
{
None = 0,
SolidTile = 1,
SolidWithTop = 2,
Table = 4,
SolidSide = 8,
Tree = 16, // 0x00000010
AlternateTile = 32, // 0x00000020
EmptyTile = 64, // 0x00000040
SolidBottom = 128, // 0x00000080
}
}

26
Enums/ItemRarityColor.cs Normal file
View file

@ -0,0 +1,26 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.ItemRarityColor
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum ItemRarityColor
{
AmberMinus11 = -11, // 0xFFFFFFF5
TrashMinus1 = -1, // 0xFFFFFFFF
White0 = 0,
Blue1 = 1,
Green2 = 2,
Orange3 = 3,
LightRed4 = 4,
Pink5 = 5,
LightPurple6 = 6,
Lime7 = 7,
Yellow8 = 8,
Cyan9 = 9,
StrongRed10 = 10, // 0x0000000A
Purple11 = 11, // 0x0000000B
}
}

16
Enums/LiquidPlacement.cs Normal file
View file

@ -0,0 +1,16 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.LiquidPlacement
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum LiquidPlacement
{
Allowed,
NotAllowed,
OnlyInLiquid,
OnlyInFullLiquid,
}
}

20
Enums/MoonPhase.cs Normal file
View file

@ -0,0 +1,20 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.MoonPhase
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum MoonPhase
{
Full,
ThreeQuartersAtLeft,
HalfAtLeft,
QuarterAtLeft,
Empty,
QuarterAtRight,
HalfAtRight,
ThreeQuartersAtRight,
}
}

16
Enums/NPCTargetType.cs Normal file
View file

@ -0,0 +1,16 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.NPCTargetType
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum NPCTargetType
{
None,
Player,
NPC,
PlayerTankPet,
}
}

View file

@ -0,0 +1,16 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.TileCuttingContext
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum TileCuttingContext
{
Unknown,
AttackMelee,
AttackProjectile,
TilePlacement,
}
}

363
Enums/TileIDEnum.cs Normal file
View file

@ -0,0 +1,363 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.TileIDEnum
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum TileIDEnum
{
Dirt,
Stone,
Grass,
Plants,
Torches,
Trees,
Iron,
Copper,
Gold,
Silver,
ClosedDoor,
OpenDoor,
Heart,
Bottles,
Tables,
Chairs,
Anvils,
Furnaces,
WorkBenches,
Platforms,
Saplings,
Containers,
Demonite,
CorruptGrass,
CorruptPlants,
Ebonstone,
DemonAltar,
Sunflower,
Pots,
PiggyBank,
WoodBlock,
ShadowOrbs,
CorruptThorns,
Candles,
Chandeliers,
Jackolanterns,
Presents,
Meteorite,
GrayBrick,
RedBrick,
ClayBlock,
BlueDungeonBrick,
HangingLanterns,
GreenDungeonBrick,
PinkDungeonBrick,
GoldBrick,
SilverBrick,
CopperBrick,
Spikes,
WaterCandle,
Books,
Cobweb,
Vines,
Sand,
Glass,
Signs,
Obsidian,
Ash,
Hellstone,
Mud,
JungleGrass,
JunglePlants,
JungleVines,
Sapphire,
Ruby,
Emerald,
Topaz,
Amethyst,
Diamond,
JungleThorns,
MushroomGrass,
MushroomPlants,
MushroomTrees,
Plants2,
JunglePlants2,
ObsidianBrick,
HellstoneBrick,
Hellforge,
ClayPot,
Beds,
Cactus,
Coral,
ImmatureHerbs,
MatureHerbs,
BloomingHerbs,
Tombstones,
Loom,
Pianos,
Dressers,
Benches,
Bathtubs,
Banners,
Lampposts,
Lamps,
Kegs,
ChineseLanterns,
CookingPots,
Safes,
SkullLanterns,
TrashCan,
Candelabras,
Bookcases,
Thrones,
Bowls,
GrandfatherClocks,
Statues,
Sawmill,
Cobalt,
Mythril,
HallowedGrass,
HallowedPlants,
Adamantite,
Ebonsand,
HallowedPlants2,
TinkerersWorkbench,
HallowedVines,
Pearlsand,
Pearlstone,
PearlstoneBrick,
IridescentBrick,
Mudstone,
CobaltBrick,
MythrilBrick,
Silt,
WoodenPlank,
CrystalBall,
DiscoBall,
MagicalIceBlock,
Mannequin,
Crystals,
ActiveStoneBlock,
InactiveStoneBlock,
Lever,
AdamantiteForge,
MythrilAnvil,
PressurePlates,
Switches,
Traps,
Boulder,
MusicBoxes,
DemoniteBrick,
Explosives,
InletPump,
OutletPump,
Timers,
CandyCaneBlock,
GreenCandyCaneBlock,
SnowBlock,
SnowBrick,
HolidayLights,
AdamantiteBeam,
SandstoneBrick,
EbonstoneBrick,
RedStucco,
YellowStucco,
GreenStucco,
GrayStucco,
Ebonwood,
RichMahogany,
Pearlwood,
RainbowBrick,
IceBlock,
BreakableIce,
CorruptIce,
HallowedIce,
Stalagtite,
Tin,
Lead,
Tungsten,
Platinum,
PineTree,
ChristmasTree,
Sinks,
PlatinumCandelabra,
PlatinumCandle,
TinBrick,
TungstenBrick,
PlatinumBrick,
ExposedGems,
GreenMoss,
BrownMoss,
RedMoss,
BlueMoss,
PurpleMoss,
LongMoss,
SmallPiles,
LargePiles,
LargePiles2,
CactusBlock,
Cloud,
MushroomBlock,
LivingWood,
LeafBlock,
SlimeBlock,
BoneBlock,
FleshBlock,
RainCloud,
FrozenSlimeBlock,
Asphalt,
CrimsonGrass,
RedIce,
FleshWeeds,
Sunplate,
Crimstone,
Crimtane,
CrimsonVines,
IceBrick,
WaterFountain,
Shadewood,
Cannon,
LandMine,
Chlorophyte,
SnowballLauncher,
Rope,
Chain,
Campfire,
Firework,
Blendomatic,
MeatGrinder,
Extractinator,
Solidifier,
Palladium,
Orichalcum,
Titanium,
Slush,
Hive,
LihzahrdBrick,
DyePlants,
DyeVat,
HoneyBlock,
CrispyHoneyBlock,
Larva,
WoodenSpikes,
PlantDetritus,
Crimsand,
Teleporter,
LifeFruit,
LihzahrdAltar,
PlanteraBulb,
MetalBars,
Painting3X3,
Painting4X3,
Painting6X4,
ImbuingStation,
BubbleMachine,
Painting2X3,
Painting3X2,
Autohammer,
PalladiumColumn,
BubblegumBlock,
Titanstone,
PumpkinBlock,
HayBlock,
SpookyWood,
Pumpkins,
AmethystGemsparkOff,
TopazGemsparkOff,
SapphireGemsparkOff,
EmeraldGemsparkOff,
RubyGemsparkOff,
DiamondGemsparkOff,
AmberGemsparkOff,
AmethystGemspark,
TopazGemspark,
SapphireGemspark,
EmeraldGemspark,
RubyGemspark,
DiamondGemspark,
AmberGemspark,
Womannequin,
FireflyinaBottle,
LightningBuginaBottle,
Cog,
StoneSlab,
SandStoneSlab,
BunnyCage,
SquirrelCage,
MallardDuckCage,
DuckCage,
BirdCage,
BlueJay,
CardinalCage,
FishBowl,
HeavyWorkBench,
CopperPlating,
SnailCage,
GlowingSnailCage,
AmmoBox,
MonarchButterflyJar,
PurpleEmperorButterflyJar,
RedAdmiralButterflyJar,
UlyssesButterflyJar,
SulphurButterflyJar,
TreeNymphButterflyJar,
ZebraSwallowtailButterflyJar,
JuliaButterflyJar,
ScorpionCage,
BlackScorpionCage,
FrogCage,
MouseCage,
BoneWelder,
FleshCloningVat,
GlassKiln,
LihzahrdFurnace,
LivingLoom,
SkyMill,
IceMachine,
SteampunkBoiler,
HoneyDispenser,
PenguinCage,
WormCage,
DynastyWood,
RedDynastyShingles,
BlueDynastyShingles,
MinecartTrack,
Coralstone,
BlueJellyfishBowl,
GreenJellyfishBowl,
PinkJellyfishBowl,
ShipInABottle,
SeaweedPlanter,
BorealWood,
PalmWood,
PalmTree,
BeachPiles,
TinPlating,
Waterfall,
Lavafall,
Confetti,
ConfettiBlack,
CopperCoinPile,
SilverCoinPile,
GoldCoinPile,
PlatinumCoinPile,
WeaponsRack,
FireworksBox,
LivingFire,
AlphabetStatues,
FireworkFountain,
GrasshopperCage,
LivingCursedFire,
LivingDemonFire,
LivingFrostFire,
LivingIchor,
LivingUltrabrightFire,
Honeyfall,
ChlorophyteBrick,
CrimtaneBrick,
ShroomitePlating,
MushroomStatue,
Count,
}
}

View file

@ -0,0 +1,15 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.TileObjectDirection
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum TileObjectDirection
{
None,
PlaceLeft,
PlaceRight,
}
}

17
Enums/TileScanGroup.cs Normal file
View file

@ -0,0 +1,17 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.TileScanGroup
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum TileScanGroup
{
None,
Corruption,
Crimson,
Hallow,
TotalGoodEvil,
}
}

View file

@ -0,0 +1,18 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.TownNPCRoomCheckFailureReason
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum TownNPCRoomCheckFailureReason
{
None,
TooCloseToWorldEdge,
RoomIsTooBig,
RoomIsTooSmall,
HoleInWallIsTooBig,
RoomCheckStartedInASolidTile,
}
}

View file

@ -0,0 +1,16 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.TownNPCSpawnResult
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum TownNPCSpawnResult
{
Blocked,
Successful,
RelocatedHomeless,
BlockedInfiHousing,
}
}

24
Enums/TreeTypes.cs Normal file
View file

@ -0,0 +1,24 @@
// Decompiled with JetBrains decompiler
// Type: Terraria.Enums.TreeTypes
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
namespace Terraria.Enums
{
public enum TreeTypes
{
None,
Forest,
Corrupt,
Mushroom,
Crimson,
Jungle,
Snow,
Hallowed,
Palm,
PalmCrimson,
PalmCorrupt,
PalmHallowed,
}
}