-
What is World Generation
-
Table of Contents
-
Terminology
-
Pass, Step, and Task
-
Prerequisite Knowledge
-
Tile Coordinates
-
Main.tile[,]
-
Tile class
-
Framed vs FrameImportant Tiles
-
Framing
-
Debugging World Generation
-
The Setup
-
Learn by experimenting example
-
Advanced Code Setup
-
SkipSelect
-
Testing Complete Passes
-
Code Setup
-
Adding Additional World Generation Code
-
Debugging considerations
-
Determining a suitable index
-
Vanilla World Generation Timeline
-
Determining a starting location
-
Random
-
Width
-
Depth
-
Biome
-
Spawn
-
Dungeon
-
Temple
-
Pyramid
-
Find Surface Location
-
Common Patterns
-
Try Until Success
-
Affect All Tiles
-
Placing Tile Entities
-
Placing Items in Chests
-
Placing Items in New Chest
-
Placing Items in Other Existing Chests
-
Liquids
-
In-Game/Multiplayer considerations
-
Stamp Tiles
-
Procedural Syntax
-
Quick Example
-
GenShape
-
GenModShape
-
Custom GenShape
-
GenAction
-
Scanner
-
TileScanner
-
Custom
-
Custom GenAction
-
Modifier
-
Output
-
GenCondition
-
AreaAnd
-
AreaOr
-
Not
-
Offset
-
Find
-
Case Studies
-
Enchanted Sword Shrine
-
Useful Methods
-
[Terraria.WorldGen] public static void TileRunner(int i, int j, double strength, int steps, int type, bool addTile = false, float speedX = 0f, float speedY = 0f, bool noYChange = false, bool overRide = true)
-
[Terraria.WorldGen] public static void OreRunner(int i, int j, double strength, int steps, ushort type)
-
[Terraria.WorldGen] public static int PlaceChest(int x, int y, ushort type = 21, bool notNearOtherChests = false, int style = 0)
-
[Terraria.WorldGen] public static bool AddBuriedChest(int i, int j, int contain = 0, bool notNearOtherChests = false, int Style = -1)
-
[Terraria.WorldGen] public static bool InWorld(int x, int y, int fluff = 0)
-
[Terraria.WorldGen] public static Point RandomWorldPoint(int top = 0, int right = 0, int bottom = 0, int left = 0)
-
[Terraria.WorldGen] public static void KillTile(int i, int j, bool fail = false, bool effectOnly = false, bool noItem = false)
-
[Terraria.WorldGen] public static bool PlaceTile(int i, int j, int type, bool mute = false, bool forced = false, int plr = -1, int style = 0)
-
MicroBiome
-
StructureMap
-
TileID.Sets.GeneralPlacementTiles
-
TileID.Sets.CanBeClearedDuringGeneration
-
IL Editing