240 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
242 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
245 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
248 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" !=
null)
252 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
255 if (
"TownNPCHousingFailureReasons.RoomHasAStinkbug" ==
null)
260 if (
"TownNPCHousingFailureReasons.RoomHasAnEchoStinkbug" ==
null)
264 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
267 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" !=
null)
274 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
277 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
285 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
288 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
296 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
308 string text =
"Game.HouseMissing_" + text2;
309 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
325 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
328 if (
"TownNPCHousingFailureReasons.TooCloseToWorldEdge" ==
null)
429 if (num == 0 || num == 0)
450 ushort wall = tile.
wall;
703 if (num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0)
707 if (num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0 && num != 0)
766 if (num == 0 || num == 0 || num != 0)
796 bool flag = tile.
active();
848 bool flag = tile.
active();
939 bool flag = tile.
active();
1313 waterfallManager.
Reset();
1405 string text2 = worldPathName +
".bak";
1506 int num = random.
Next(9);
1519 int num = random.
Next(4);
1673 ushort type = tile.
type;
1774 bool flag = tile.
active();
1819 return 1073741824 != 0;
1830 bool flag = tile.
active();
1856 if (num == 0
L || num == 0
L)
1871 ushort wall = tile.
wall;
1906 public static int countTiles(
int x,
int y,
bool jungle =
false,
bool lavaOk =
false)
1916 public static void nextCount(
int x,
int y,
bool jungle =
false,
bool lavaOk =
false)
2138 bool flag = tile.
active();
2276 bool flag = tile.
active();
2290 ushort type = tile.
type;
2375 ushort type = tile.
type;
2457 public static bool Statue(
int x,
int y,
byte paint)
2807 bool flag = tile.
active();
2842 bool flag = tile.
active();
2856 bool flag = tile.
active();
2885 ushort wall =
tile15.wall;
2904 bool flag = tile.
active();
2918 bool flag = tile.
active();
2932 bool flag = tile.
active();
2946 bool flag = tile.
active();
2963 bool flag = tile.
active();
2980 bool flag = tile.
active();
2998 bool accessory =
item.accessory;
2999 if (!accessory || !accessory)
3002 bool melee =
item.melee;
3003 if (!melee || !melee)
3006 bool ranged =
item.ranged;
3007 if (!ranged || !ranged)
3010 bool magic =
item.magic;
3011 if (!magic || !magic)
3014 bool summon =
item.summon;
3027 byte prefix =
item.prefix;
3055 ushort type = tile.
type;
3075 bool flag = tile.
active();
3093 bool flag = tile.
active();
3190 bool flag = tile.
active();
3241 ushort type = tile.
type;
3296 bool flag = tile.
wire();
3465 ushort type = tile.
type;
3490 ushort type = tile.
type;
3862 ushort type = tile.
type;
4162 if (-1073741824 == 0)
4170 if (-1073741824 == 0)
4178 if (-1073741824 == 0)
4502 ushort wall = tile.
wall;
4525 ushort type = tile.
type;
4583 bool flag = tile.
active();
4660 ushort wall = tile.
wall;
4689 bool flag = tile.
active();
4835 ushort type = tile.
type;
5234 int value = num.m_value;
5264 ushort type = tile.
type;
5481 ushort type = tile.
type;
5604 ushort type = tile.
type;
5624 bool flag = tile.
active();
5663 if (num == 0 || num == 0)
5701 public static bool PlaceDoor(
int i,
int j,
int type,
int style = 0)
5900 if (num == 0 || num == 0)
5910 bool flag = tile.
active();
5954 public static void HellHouse(
int i,
int j,
byte type = 76,
byte wall = 13)
5992 bool flag = tile.
active();
6004 public static void HellRoom(
int i,
int j,
int width,
int height,
byte type = 76,
byte wall = 13)
6031 bool flag = tile.
active();
6073 bool flag = tile.
active();
6136 ushort wall = tile.
wall;
6202 ushort type = tile.
type;
6286 ushort type = tile.
type;
6297 public static void Shimmerator(
int x,
int y,
bool jungle =
false,
bool lavaOk =
false)
6506 long num2 = -2147483647
L;
6519 ushort wall = tile.
wall;
6650 if (42190112.0 ==
null)
6653 if (42190112.0 ==
null)
6658 if (42190112.0 ==
null)
6935 bool flag = tile.
active();
7029 ushort wall = tile.
wall;
7120 ushort wall = tile.
wall;
7392 public static bool OpenDoor(
int i,
int j,
int direction)
7399 ushort type = tile.
type;
7464 short frameX = tile.
frameX;
7511 short frameX = tile.
frameX;
7541 bool flag = tile.
active();
7582 bool flag = tile.
active();
7664 short frameY = tile.
frameY;
7674 short frameX = tile.
frameX;
7697 public static void Place1xX(
int x,
int y, ushort type,
int style = 0)
7704 bool flag = tile.
active();
7770 short frameX = tile.
frameX;
7832 short frameX = tile.
frameX;
7878 bool flag = tile.
active();
7901 short frameX = tile.
frameX;
7947 public static void Place2xX(
int x,
int y, ushort type,
int style = 0)
7989 short frameY = tile.
frameY;
8007 if (
tile5.blockType() == 0)
8018 if (
tile9.blockType() == 0)
8045 short frameX = tile.
frameX;
8057 public static bool PlaceSign(
int x,
int y, ushort type,
int Style = 0)
8196 bool flag = tile.
active();
8217 ushort wall = tile.
wall;
8222 return true || flag;
8246 bool flag = tile.
active();
8267 ushort type = tile.
type;
8280 bool flag = tile.
active();
8301 ushort type = tile.
type;
8316 bool flag = tile.
active();
8337 ushort type = tile.
type;
8352 bool flag = tile.
active();
8373 ushort type = tile.
type;
8388 bool flag = tile.
active();
8409 ushort type = tile.
type;
8459 public static void Place1x1(
int x,
int y,
int type,
int style = 0)
8505 short frameX = tile.
frameX;
8530 bool flag = tile.
active();
8559 bool flag = tile.
active();
8580 bool flag = tile.
active();
8601 bool flag = tile.
active();
8775 bool flag = tile.
active();
8825 ushort type = tile.
type;
8860 bool flag = tile.
active();
8988 bool flag = tile.
active();
9018 short frameY = tile.
frameY;
9024 public static void PlaceBanner(
int x,
int y, ushort type,
int style = 0)
9228 short frameY = tile.
frameY;
9271 short frameX = tile.
frameX;
9291 short frameY = tile.
frameY;
9346 short frameY = tile.
frameY;
9389 public static void Place1x2(
int x,
int y, ushort type,
int style)
9481 short frameY = tile.
frameY;
9533 short frameY = tile.
frameY;
9551 short frameX = tile.
frameX;
9567 public static void Place2x1(
int x,
int y, ushort type,
int style = 0)
9656 short frameX = tile.
frameX;
9664 if (!
boost || y != 0)
9738 short frameY = tile.
frameY;
9787 short frameX = tile.
frameX;
9813 short frameX = tile.
frameX;
9881 bool flag = tile.
active();
9923 short frameX = tile.
frameX;
9943 short frameY = tile.
frameY;
9975 short frameX = tile.
frameX;
9995 short frameX = tile.
frameX;
10014 short frameX = tile.
frameX;
10086 public static void Place6x3(
int x,
int y, ushort type,
int direction = -1,
int style = 0)
10092 bool flag = tile.
active();
10111 public static void Place4x2(
int x,
int y, ushort type,
int direction = -1,
int style = 0)
10121 bool flag = tile.
active();
10169 if (num == 0 || num == 0)
10192 short frameX = tile.
frameX;
10215 short frameX = tile.
frameX;
10226 long num = 2147483644
L;
10232 bool flag = tile.
active();
10334 short frameY = tile.
frameY;
10355 short frameX = tile.
frameX;
10376 short frameX = tile.
frameX;
10402 short frameY = tile.
frameY;
10408 public static void PlaceMB(
int X,
int y, ushort type,
int style)
10417 bool flag = tile.
active();
10421 public static void Place2x2(
int x,
int y, ushort type,
int style)
10430 public static bool PlaceObject(
int x,
int y,
int type,
bool mute =
false,
int style = 0,
int alternate = 0,
int random = -1,
int direction = -1)
10531 int num20 =
true.ToDirectionInt();
10578 int num28 =
true.ToInt();
10586 num31 =
true.ToInt();
10758 bool flag = tile.
active();
10858 if (!flag || !flag)
10908 public static void Place3x4(
int x,
int y, ushort type,
int style)
10918 bool flag = tile.
active();
10944 public static void Place5x4(
int x,
int y, ushort type,
int style)
10952 bool flag = tile.
active();
10990 public static void Place3x1(
int x,
int y, ushort type,
int style = 0)
10999 bool flag = tile.
active();
11003 public static void Place3x2(
int x,
int y, ushort type,
int style = 0)
11013 bool flag = tile.
active();
11095 short frameY = tile.
frameY;
11119 bool flag = tile.
active();
11221 short frameY = tile.
frameY;
11239 bool flag = tile.
active();
11261 bool flag = tile.
active();
11275 bool flag = tile.
active();
11308 bool flag = tile.
active();
11323 ushort type = tile.
type;
11329 public static void PlaceChand(
int x,
int y, ushort type,
int style = 0)
11335 bool flag = tile.
active();
11351 short frameX = tile.
frameX;
11376 short frameX = tile.
frameX;
11392 short frameX = tile.
frameX;
11410 short frameX = tile.
frameX;
11428 short frameX = tile.
frameX;
11434 public static void Place3x3(
int x,
int y, ushort type,
int style = 0)
11442 bool flag = tile.
active();
11460 bool flag = tile.
active();
11481 bool flag = tile.
active();
11495 ushort type = tile.
type;
11526 short frameX = tile.
frameX;
11559 short frameX = tile.
frameX;
11694 public static bool PlacePot(
int x,
int y, ushort type = 28,
int style = 0)
11700 if (num == 0 || num == 0)
11787 short frameX = tile.
frameX;
11805 ushort type = tile.
type;
11819 ushort type = tile.
type;
11833 ushort type = tile.
type;
12042 short frameX = tile.
frameX;
12188 short frameX = tile.
frameX;
12272 return tile.
wire();
12282 bool flag = tile.
wire();
12300 return tile.
wire2();
12310 bool flag = tile.
wire2();
12328 return tile.
wire3();
12338 bool flag = tile.
wire3();
12356 return tile.
wire4();
12366 bool flag = tile.
wire4();
12533 ushort wall = tile.
wall;
12667 bool flag = tile.
active();
12785 ushort type = tile.
type;
12848 byte liquid = tile.
liquid;
12951 bool flag = tile.
active();
13141 bool flag = tile.
active();
13173 ushort wall = tile.
wall;
13249 short frameY = tile.
frameY;
13259 short frameX = tile.
frameX;
13303 short frameX = tile.
frameX;
13315 return 42168200 != 0;
13864 private static void GetVineTop(
int i,
int j, [Out]
int x, [Out]
int y)
13879 ushort type = tile.
type;
13931 bool flag = tile.
active();
14084 bool flag = tile.
active();
14210 ushort type = tile.
type;
14290 ushort type = tile.
type;
14305 int value = num.m_value;
14460 public static bool SolidTile(
short tileSHeader, ushort tileType)
14714 bool flag = tile.
active();
14739 bool flag = tile.
active();
14906 if (num == 0 || num == 0)
15026 ushort wall = tile.
wall;
15255 bool flag = tile.
active();
15279 bool flag = tile.
wire();
15311 bool flag = tile.
active();
15406 if (num == 0 || num == 0)
15419 int num =
Math.
Max(10, 43143168);
15427 if (-2147483648 == 0)
15431 if (-2147483648 == 0)
15434 if (-2147483648 == 0)
15439 if (-2147483648 == 0)
15442 if (-2147483648 == 0)
15444 if (-2147483648 == 0)
15448 if (-2147483648 == 0)
15508 if (1073741824 == 0)
15512 ushort wall = tile.
wall;
15513 if (1073741824 == 0)
15588 bool flag = tile.
active();
15616 ushort type = tile.
type;
15688 ushort type = tile.
type;
15711 ushort wall = tile.
wall;
15828 ushort wall = tile.
wall;
15946 bool flag = tile.
active();
16101 bool flag = tile.
active();
16143 bool flag = tile.
active();
16252 public static void TileRunner(
int i,
int j,
double strength,
int steps,
int type,
bool addTile =
false,
double speedX = 0.0,
double speedY = 0.0,
bool noYChange =
false,
bool overRide =
true,
int ignoreTileType = -1)
16401 bool flag = tile.
active();
16569 public static Vector2D digTunnel(
double X,
double Y,
double xDir,
double yDir,
int Steps,
int Size,
bool Wet =
false)
16621 if (num == 0 || num == 0)
16657 bool flag = tile.
active();
16691 byte liquid = tile.
liquid;
16709 public static void Lakinater(
int i,
int j,
double strengthMultiplier = 1.0)
16807 ushort wall = tile.
wall;
16969 public static void Reframe(
int x,
int y,
bool resetFrame =
false)
17081 string text = text2 +
" " + text2 +
"%";
17090 bool flag = tile.
active();
17107 if (tile.
type == 0)
17156 ushort type = tile.
type;
17346 public static void TileMergeAttemptFrametest(
int i,
int j,
int myType,
int lookfor,
int up,
int down,
int left,
int right,
int upLeft,
int upRight,
int downLeft,
int downRight)
17375 public static void TileMergeAttemptFrametest(
int i,
int j,
int myType,
bool[]
lookfor,
int up,
int down,
int left,
int right,
int upLeft,
int upRight,
int downLeft,
int downRight)
17460 public static void TileMergeAttempt(
int myType,
bool[]
lookfor,
bool[]
exclude,
int up,
int down,
int left,
int right,
int upLeft,
int upRight,
int downLeft,
int downRight)
17470 public static void TileMergeAttemptWeird(
int myType,
int changeTo,
bool[]
exclude,
int up,
int down,
int left,
int right,
int upLeft,
int upRight,
int downLeft,
int downRight)
17562 public static void TileFrame(
int i,
int j,
bool resetFrame =
false,
bool noBreak =
false)
17569 ushort type = tile.
type;
17643 short frameX = tile.
frameX;
17666 short frameX = tile.
frameX;
18923 public static void Gem(
int x,
int y)
19084 return default(
bool);
19090 return default(
bool);
19234 if (cullBottomLeft)
19377 double num =
passConfig.Get<
double>(
"ChanceOfPyramid");
19460 bool flag = tile.
active();
19495 bool flag = tile.
active();
19546 bool flag = tile.
active();
19587 progress.
Set(0.34);
19594 bool flag = tile.
active();
19604 progress.
Set(0.67);
19630 progress.
Set(0.005);
19650 bool flag = tile.
active();
19736 while (36700692 != 0)
19753 progress.
Set(6.953355807835
E-310);
19811 if (
"WorldGeneration.WavyCaves" ==
null)
19818 if (
"WorldGeneration.WavyCaves" ==
null)
19898 ushort wall = tile.
wall;
19910 progress.
Set(0.002);
19930 bool flag = tile.
active();
19997 ushort type = tile.
type;
20103 ushort wall = tile.
wall;
20196 bool flag = tile.
active();
20251 ushort type = tile.
type;
20327 ushort type = tile.
type;
20339 if (
false || num == 0)
20381 ushort wall = tile.
wall;
20412 ushort wall = tile.
wall;
20469 ushort type = tile.
type;
20481 ushort wall =
tile7.wall;
20518 bool flag = tile.
active();
20607 ushort type = tile.
type;
20609 bool flag =
tile2.active();
20621 ushort wall =
tile8.wall;
20649 Liquid.worldGenTilesIgnoreWater(
num3 != 0);
20650 Liquid.QuickWater(3, (
int)
num4, (
int)
num2);
20668 bool flag = tile.
active();
20741 ushort type =
tile2.type;
20944 byte liquid =
tile3.liquid;
20978 byte liquid = tile.
liquid;
20980 bool flag =
tile2.lava();
20994 long num2 = 32752
L;
20995 progress.
Set(5040000.0);
21031 long num3 = 32752
L;
21162 byte liquid = tile.
liquid;
21424 ushort type =
tile3.type;
21470 bool flag = tile.
active();
21515 ushort wall = tile.
wall;
21519 bool flag =
tile3.active();
21529 bool flag = tile.
active();
21531 ushort type =
tile2.type;
21600 if (num == 0 || num == 0)
21635 bool flag = tile.
active();
21663 bool flag = tile.
active();
21668 ushort type =
tile2.type;
21673 ushort wall =
tile3.wall;
21807 if (
"PartyGirlNames.Amanda" ==
null)
21815 if (
"SlimeNames_Rainbow.Slimestar" !=
null)
21836 progress.
Set((
double)(-755914244));
21927 ushort wall = tile.
wall;
21936 bool flag =
tile2.active();
21971 bool flag = tile.
active();
21973 ushort type =
tile2.type;
22007 bool flag = tile.
active();
22009 ushort type =
tile2.type;
22044 bool flag = tile.
active();
22058 long num3 = 32752
L;
22061 bool flag = tile.
active();
22064 ushort wall =
tile2.wall;
22172 bool flag = tile.
active();
22180 ushort type =
tile2.type;
22212 bool flag = tile.
active();
22216 ushort wall =
tile3.wall;
22235 bool flag = tile.
active();
22237 ushort type =
tile2.type;
22251 bool flag = tile.
active();
22253 ushort type =
tile2.type;
22313 Liquid.worldGenTilesIgnoreWater(
num3 != 0);
22314 Liquid.QuickWater(3, (
int)
num4, (
int)
num2);
22362 ushort type =
tile2.type;
22440 if (
list._size == 0)
22444 int size =
list._size;
22467 long num2 = 32752
L;
22486 byte liquid = tile.
liquid;
22488 bool flag =
tile2.active();
22545 byte liquid = tile.
liquid;
22575 ushort type =
tile3.type;
22590 bool flag = tile.
wire();
22620 bool flag = tile.
active();
22629 ushort wall =
tile3.wall;
22632 ushort type =
tile4.type;
class f__AnonymousType0<< Count > j__TPar
static void ExecuteSnippetsOnly()
static void WriteLine(object value)
static byte Min(byte val1, byte val2)
static byte Max(byte val1, byte val2)
static void Exit(object obj)
static void Sleep(int millisecondsTimeout)
static Thread CurrentThread
static void StopTrackedSounds()
static int CreateChest(int X, int Y, int id=-1)
static bool NearOtherChests(int x, int y)
static bool EmptyTile(int i, int j, bool ignoreTiles=false)
static bool SolidTiles(Vector2 position, int width, int height)
static void WallFrame(int i, int j, bool resetFrame=false)
static Tile GetTileSafely(Vector2 position)
static void NotifyProgressionEvent(int eventID)
static void SyncSplitScreenPlayer(int playerIndex)
static void Kill(int x, int y)
static int Find(int x, int y)
static void Kill(int x, int y)
static int Find(int x, int y)
static void LoadWorld(bool loadFromCloud)
static void CacheSaveTime()
static void tilesIgnoreWater(bool ignoreSolids)
static void AddWater(int x, int y)
static string GetTextValue(string key)
static double starGameMath(double value=1.0)
static void ResetWindCounter(bool resetExtreme=false)
static void checkHalloween()
static string worldPathName
static WorldSections sectionManager
static void NewText(string newText, byte R=255, byte G=255, byte B=255)
static void GoToWorldSelect()
static bool NetClientOnly
static void ToggleGameplayUpdates(bool state)
static PlayerFileData ActivePlayerFileData
static void UpdateTimeRate()
static int UnderworldLayer
static Player LocalPlayer
static bool SaveSettings()
static bool SettingsSavePending
static void ResetMapData()
void Allocate(int maxWidth, int maxHeight)
static void ResetBadgerHatTime()
static void ResetKillCount()
static bool AnyNPCs(int Type)
static IEntitySource GetSpawnSourceForTownSpawn()
static void sendWater(int x, int y)
static void ResetSections()
static int GetSectionX(int x)
static int GetSectionY(int y)
static int PlatformFrameWidth()
static TileObjectData GetTileData(int type, int style, int alternate=0)
void InterruptItemUsageIfOverTile(int tileTypeToBeOver)
static void SavePlayer(PlayerFileData playerFile, bool skipMapSave=false, bool forceSave=false)
static Vector2 GetRainFallVelocity()
static void SetSHeader(int tileIndex, short sHeader)
static void Copy(string source, string destination, bool cloud=false, bool overwrite=true)
static void Delete(string path, bool cloud=false)
static void SkipWire(int x, int y)
static void HitSwitch(int i, int j)
bool EndInvoke(int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight, IAsyncResult result)
GetTreeFoliageDataMethod(object @object, IntPtr method)
bool Invoke(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
IAsyncResult BeginInvoke(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight, AsyncCallback callback, object @object)
static WorldGen.GrowTreeSettings GemTree_Topaz
static WorldGen.GrowTreeSettings GemTree_Amber
static bool TryGetFromItemId(int itemType, [Out] WorldGen.GrowTreeSettings profile)
static WorldGen.GrowTreeSettings GemTree_Amethyst
static WorldGen.GrowTreeSettings GemTree_Ruby
static WorldGen.GrowTreeSettings GemTree_Emerald
static WorldGen.GrowTreeSettings VanityTree_Sakura
static bool TryGetFromTreeId(int tileType, [Out] WorldGen.GrowTreeSettings profile)
static WorldGen.GrowTreeSettings VanityTree_Willow
static WorldGen.GrowTreeSettings GemTree_Sappphire
static WorldGen.GrowTreeSettings GemTree_Diamond
static WorldGen.GrowTreeSettings Tree_Ash
static void ProcessWorldGenConfig(WorldGenConfiguration config)
delegate void WorldGenConfigProcessEvent(WorldGenConfiguration config)
static Action OnWorldLoad
static WorldGen.Hooks.WorldGenConfigProcessEvent OnWorldGenConfigProcess
static void WorldLoaded()
static void Spider(int x, int y)
static void Wall(int x, int y, int wallType)
static void Moss(int x, int y)
static void Wall2(int x, int y, int wallType)
static void Gem(int x, int y)
static bool Gemmable(int type)
static void WallDungeon(int x, int y, int wallType)
static int[] GoodPrefixIdsForMeleeWeapon
static int[] GoodPrefixIdsForAccessory
static int[] GoodPrefixIdsForRangedWeapon
static TenthAnniversaryWorldInfo()
static int[] GoodPrefixIdsForMagicWeapon
static int[] GoodPrefixIdsForSummonerWeapon
void Setup(int x, int y, bool jungle, bool lavaOk)
static void OreRunner(int i, int j, double strength, int steps, ushort type)
static void GrowAlch(int x, int y)
static void LocalUserQuitOnMainThread(object localUserContext)
static bool GeneratePlanteraBulbOnAllMechsDefeated()
static void GetDesiredStalagtiteStyle(int x, int j, [Out] bool fail, [Out] int desiredStyle, [Out] int height, [Out] int y)
static void SetGemTreeDrops(int gemType, int seedType, Tile tileCache, int dropItem, int secondaryItem)
static bool tempRemixWorldGen
static void UpdateWorld()
static void serverLoadWorldCallBack()
static void PlaceChand(int x, int y, ushort type, int style=0)
static void Place6x3(int x, int y, ushort type, int direction=-1, int style=0)
static void StartImpendingDoom(int countdownTime)
static bool IsTileTypeFitForTree(ushort type)
static void GetStalagtiteStyle(int x, int y, [Out] int style, [Out] bool fail)
static bool TileEmpty(int i, int j)
static void CheckRockGolemHead(int x, int y)
static Point RandomRectanglePoint(int x, int y, int width, int height)
static void SetVanityTreeDrops(int dropType, Tile tileCache, int dropItem)
static void AddGenerationPass(string name, WorldGenLegacyMethod method)
static readonly int cactusWaterHeight
static void TileMergeAttempt(int myType, bool[] lookfor, int up, int down, int left, int right)
static bool destroyObject
static void UpdateWorld_GrassGrowth(int i, int j, int minI, int maxI, int minJ, int maxJ, bool underground)
static void PaintTheDungeon(byte tilePaintColor, byte wallPaintColor)
static int tileReframeCount
static void MakeDungeon_Traps(int failCount, int failMax, int numAdd)
static void FixChand(int i, int j)
static void HellRoom(int i, int j, int width, int height, byte type=76, byte wall=13)
static void Check1xX(int x, int j, short type)
static bool AttemptToGrowTreeFromSapling(int x, int y, bool underground)
static void CloseThreadTime()
static EntitySource_ShakeTree GetProjectileSource_ShakeTree(int x, int y)
static bool NoNearbyGlowTulips(int i, int j)
static bool GetGemTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static int SmallConsecutivesEliminated
static void randMoss(bool justNeon=false)
static bool growGrassUnderground
static int WorldGenParam_Evil
static bool ActiveAndWalkableTile(int i, int j)
static void CloudIsland(int i, int j)
static void setWorldSize()
static void templeCleaner(int x, int y)
static void oceanCave(int i, int j)
static bool IsTreeType(int tree)
static void Check3x2(int i, int j, int type)
static bool BiomeTileCheck(int x, int y)
static ? Rectangle GetTileVisualHitbox(int x, int y)
static void FixHeart(int i, int j)
static void CrimEnt(Vector2D position, int crimDir)
static void Place2x3Wall(int x, int y, ushort type, int style)
static double MakeDungeon_GroundFurniture(int wallType)
static void ChlorophyteDefense(int x, int y)
const int InfectionAndGrassSpreadOuterWorldBuffer
static void PlaceOasisPlant(int X, int Y, ushort type=530)
static void Check2x2(int i, int j, int type)
static bool IsChestRigged(int x, int y)
static bool IsAContainer(Tile t)
static bool nearPicture(int x, int y)
static void SmashAltar(int i, int j)
static void CheckTree(int i, int j)
static bool AllowedToSpreadInfections
static bool PlaceLiquid(int x, int y, byte liquidType, byte amount)
static bool TryToggleLight(int x, int y, bool? forcedState, bool skipWires)
static PaintingEntry RandHousePictureDesert()
static Color coatingColor(int coating)
static bool SolidTileNoAttach(int i, int j)
static bool< GenerateWorld > g__Main_tile_halfBrick(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static bool BottomEdgeCanBeAttachedTo(int i, int j)
static Player GetPlayerForTile(int x, int y)
static void FinishTenthAnniversaryWorld()
static void GetTreeBottom(int i, int j, [Out] int x, [Out] int y)
static void Check2xX(int i, int j, ushort type)
static void PaintTheMushrooms()
static bool placeTNTBarrel(int x, int y)
static bool remixWorldGen
static bool SolidTile(short tileSHeader, ushort tileType)
static void PlaceLogicTiles(int x, int y, int type, int style=0)
static bool BlockBelowMakesSandConvertIntoHardenedSand(int i, int j)
static void AddShadowOrb(int x, int y)
static void ClearAllBrokenTraps()
static bool TryGrowingGlowTulip(int i, int j)
static void MakeDungeon(int x, int y)
static void SwitchMonolith(int i, int j)
static void CheckTallGate(int x, int y, int type)
static bool SolidTile(Tile testTile)
static void ReplaceTile_DoActualReplacement_Area(ushort targetType, int targetStyle, int topLeftX, int topLeftY, int areaSizeX, int areaSizeY)
static bool threadInProgress
static void paintEffect(int x, int y, byte color, byte oldColor)
static bool IsLockedDoor(Tile t)
static bool TopEdgeCanBeAttachedTo(int i, int j)
static void Check1x2Top(int x, int j, ushort type)
static void CheckAchievement_RealEstateAndTownSlimes()
static void CheckRoom(int x, int y)
static bool ReplaceTile_IsValidSolid(int type)
const bool BUBBLES_SOLID_STATE_FOR_HOUSING
static bool GetAshTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static Point RandomRectanglePoint(Rectangle rectangle)
static void Place3x2(int x, int y, ushort type, int style=0)
static PaintingEntry RandBonePicture()
static double MakeDungeon_Banners(int[] roomWall, double count)
static ushort randGemTile()
static void SectionTileFrameWithCheck(int startX, int startY, int endX, int endY)
static int HardModeProgress
static bool HasValidGroundForGlowTulipBelowSpot(int x, int y)
static bool PlaceSmallPile(int i, int j, int X, int Y, ushort type=185)
static int shadowOrbCount
static bool IsThereASpawnablePrioritizedTownNPC_Old(int x, int y)
static bool SolidTileAllowRightSlope(int i, int j)
static bool CanKillTile(int i, int j, [Out] bool blockDamaged)
static void TryProtectingSpawnedItems()
static bool placeLavaTrap(int x, int y)
static bool PlaceWire2(int i, int j)
static TownRoomManager TownManager
static void PlaceUnderwaterPlant(ushort type, int x, int y)
static bool CanPoundTile(int x, int y)
static void CheckLilyPad(int x, int y)
static Vector2D templePather(Vector2D templePath, int destX, int destY)
static void SpawnTravelNPC()
static bool OpenDoor(int i, int j, int direction)
static bool Place2x2Horizontal(int x, int y, ushort type, int Style=0)
static bool GrowShroom(int i, int y)
static void PaintTheSand(byte tilePaintColor, byte wallPaintColor)
static bool ValidateTypes()
static bool Housing_CheckIfIsCeiling(int i, int j)
static bool ScoreRoom_IsThisRoomOccupiedBySomeone(int ignoreNPC=-1, int npcTypeAsking=-1)
static bool KillTile_ShouldDropSeeds(int x, int y)
static EntitySource_TileBreak GetNPCSource_TileBreak(int x, int y)
const int WorldSizeMediumX
static void Check6x3(int i, int j, int type)
static void FinishNotTheBees()
static void CheckDoorOpen(int i, int j, Tile tileCache)
static void PerformCachedMapTileUpdates()
static void OreHelper(int X, int Y)
static bool TileIsExposedToAir(int x, int y)
static bool CheckSpecialTownNPCSpawningConditions(int type)
static void UpdateWorld_OvergroundTile(int i, int j, bool checkNPCSpawns, int wallDist)
static bool IsTileReplacable(int x, int y)
static void WaitForFileSync()
static void BroadcastText(NetworkText text, Vector4 color)
static int TileType(int x, int y)
static void SwitchMB(int i, int j)
static List< WorldGen.nextCountDirtNode > _dirtCountOpenNodes
const int WorldSizeLargeX
static void SetForestBGSet(int style, int[] mountainSet, int[] treeSet)
static bool IsItATrap(Tile tile)
static bool noLiquidCheck
static int roomCeilingsCount
static bool GrowLivingTree_HorizontalTunnel(int i, int j)
static bool InAPlaceWithWind(int x, int y, int width, int height)
static void tileCounterKill()
static void TreeGrowFX(int x, int y, int height, int treeGore, bool hitTree=false)
static void LaunchRocketSmall(int x, int y, bool fromWiring)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static void Check3x3(int i, int j, int type)
static int globalTileReframeCount
static Thread ConversionThread
const bool USE_FRAMING_SKIP_FOR_UNIMPORTANT_TILES_IN_WORLDGEN
static bool meteor(int i, int j, bool ignorePlayers=false)
static void moveRoom(int x, int y, int n)
static void SwitchCannon(int i, int j)
static void PlantCactus(int i, int j)
static void UndoSpawnedItemProtection()
static bool everythingWorldGen
static void DropDoorItem(int x, int y, int doorStyle)
static void PoundPlatform(int x, int y)
static void Housing_GetTestedRoomBounds([Out] int startX, [Out] int endX, [Out] int startY, [Out] int endY)
static void CheckAlch(int x, int y)
static bool AttemptToGeneratePlanteraBulbAt(int i, int j, bool forceBulb)
static void KillTile_GetItemDrops(int x, int y, Tile tileCache, [Out] int dropItem, [Out] int dropItemStack, [Out] int secondaryItem, [Out] int secondaryItemStack, bool includeLargeObjectDrops=false)
static void FinishDrunkGen()
static void GrowCheckSeaweed(int x, int y)
static void saveAndPlay()
static void Scan3By3(int topLeftX, int topLeftY, [Out] bool isEmpty, [Out] bool hasFloor)
static void QueuePostGenAction(Action< StructureMap > action)
static void MakeDungeon_Lights(ushort tileType, int failCount, int failMax, int numAdd, int[] roomWall)
static bool GrowPalmTree(int i, int y)
static void MakeWateryIceThing(int i, int j)
static int GetWorldUpdateRate()
static bool IsBackgroundConsideredTheSame(int oldBG, int newBG)
static readonly int cactusWaterWidth
static void CheckBamboo(int x, int y)
static void KillTile_DropItems(int x, int y, Tile tileCache, bool includeLargeObjectDrops=false)
static void GrowCactus(int i, int j)
static int GetItemDrop_Chair(int style)
static void Check3x2Wall(int x, int y)
static bool ThreadWaiting
static bool TryGrowingTreeByType(int treeTileType, int checkedX, int checkedY)
static bool KillWire3(int i, int j)
static bool AttemptReorientingStinkbugBlocker(int x, int y, int wall, int style)
static bool noTrapsWorldGen
static bool NoNearbyAbigailsFlower(int i, int j)
static PaintingEntry RandPictureTile()
static bool GrowLivingTree(int i, int j, bool patch=false)
static void Check1x1(int x, int y, int type)
static readonly int shimmerSafetyDistance
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static int prioritizedTownNPCType
static void BroadcastText(NetworkText text, int r, int g, int b)
static bool tenthAnniversaryWorldGen
static void setBG(int bg, int style)
static bool PoundTile(int i, int j)
static int[] tileCounterX
static void MessageLunarApocalypse()
static void CheckOrb(int i, int j, int type)
static bool IsLockedDoor(int x, int y)
static void Check3x4(int i, int j, int type)
static void CheckCannon(int i, int j, int type)
static int FillWallHolesInColumn(int x, int startY, int endY)
static void SonOfLakinater(int i, int j, double strengthMultiplier=1.0)
static void CountTileTypesInArea(int[] tileTypeCounts, int startX, int endX, int startY, int endY)
static int SmallConsecutivesFound
static bool OasisPlantWaterCheck(int x, int y, bool boost=false)
static void CheckOnTable1x1(int x, int y, int type)
static bool SolidTile3(int i, int j)
static UnifiedRandom genRand
static ushort neonMossType
static int CountNearBlocksTypes(int i, int j, int radius, int cap, ushort tiletypes)
static void CreateNewWorld([Optional] GenerationProgress progress)
static void CheckSign(int x, int y, ushort type)
static void Check2x3Wall(int x, int y)
static void DiamondTileFrame(int i, int j)
static void PlaceSunflower(int x, int y, ushort type=27)
static bool CanUnderwaterPlantGrowHere(ushort type, int x, int y, bool ignoreSelf)
static void GetVineTop(int i, int j, [Out] int x, [Out] int y)
static void RandomizeBackgrounds(UnifiedRandom random)
static TreeTopsInfo TreeTops
static bool CloseDoor(int i, int j, bool forced=false)
static List< Point > ShimmerTiles
static bool ReplaceTile_IsValidChest(int type)
static void Check1x2(int x, int j, ushort type)
static void FloatingIsland(int i, int j)
static void Place1x2(int x, int y, ushort type, int style)
static bool< GenerateWorld > g__Main_tile_lava(int x, int y, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_3)
static bool nearPicture2(int x, int y)
static void TileMergeAttempt(int myType, bool[] lookfor, bool[] exclude, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static bool PlaceLilyPad(int x, int j)
static bool checkPlantDye(int i, int j, bool exoticPlant=false)
static void Caverer(int X, int Y)
static readonly int oceanDistance
static Vector2D digTunnel(double X, double Y, double xDir, double yDir, int Steps, int Size, bool Wet=false)
static void TileMergeAttempt(int myType, int lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void DungeonEnt(int i, int j, ushort tileType, int wallType)
static bool EmptyTileCheck(int startX, int endX, int startY, int endY, int ignoreID=-1)
static bool GrowTreeWithSettings(int checkedX, int checkedY, WorldGen.GrowTreeSettings settings)
static bool SeaOatWaterCheck(int x, int y)
static void JoinLocalWorld()
static void CheckPot(int i, int j, int type=28)
static void CheckOasisPlant(int i, int j, int type=530)
static void Place4x2(int x, int y, ushort type, int direction=-1, int style=0)
static void RefreshSection(int sectionX, int sectionY)
static void CheckStinkbugBlocker(int x, int y)
static bool ShiftTallGate(int x, int y, bool closing, bool forced=false)
static void SpreadDesertWalls(int wallDist, int i, int j)
static void GiveItemGoodPrefixes(Item item)
static bool roomHasEchoStinkbug
static void CheckWoman(int i, int j)
static int GetItemDrop_Benches(int style)
static void RandomizeWeather()
static bool KillWire4(int i, int j)
static int GetWaterDepth(int x, int y)
static void CheckLogicTiles(int x, int y, int type)
static void RangeFrame(int startX, int startY, int endX, int endY)
static bool IsRoomConsideredAlreadyOccupied(int spawnTileX, int spawnTileY, int npcTypeToSpawn)
static void PaintTheClouds(byte tilePaintColor, byte wallPaintColor)
static bool WouldTileReplacementWork(ushort attemptingToReplaceWith, int x, int y)
static void CheckDye(int x, int y)
static void BroadcastText(NetworkText text, Color color)
static bool PlaceWire3(int i, int j)
static bool CanKillTile(int i, int j)
static void ChasmRunner(int i, int j, int steps, bool makeOrb=false)
static void Check3x1(int i, int j, int type)
static void saveToonWhilePlayingCallBack(object threadContext)
static bool SolidTile2(Tile testTile)
static bool paintWall(int x, int y, byte color, bool broadCast=false)
static void smCallBack(object threadContext)
static bool PlaceOasis(int X, int Y)
static int RollRandomForestBGStyle(UnifiedRandom random)
static void PlaceMB(int X, int y, ushort type, int style)
static void MudWallRunner(int i, int j)
static ManagedThread worldGenThread
static void SectionTileFrame(int sectionStartX, int sectionStartY, int sectionEndXInclusive, int sectionEndYInclusive)
static bool badOceanCaveTiles(int x, int y)
static void DungeonStairs(int i, int j, ushort tileType, int wallType)
static void BroadcastText(NetworkText text, byte r, byte g, byte b)
static void PlaceDresserDirect(int x, int y, ushort type, int style, int id)
static int CheckTileBreakability(int x, int y)
static void PlaceXmasTree(int x, int y, ushort type=171)
static void SquareWallFrame(int i, int j, bool resetFrame=true)
static void GERunner(int i, int j, double speedX=0.0, double speedY=0.0, bool good=true)
static bool UpdateStalagtiteStyle(int x, int j)
static int[] tileCounterY
static void CheckProjectilePressurePad_GetPossiblePlacementDirections(int i, int j, [Out] bool canUp, [Out] bool canLeft, [Out] bool canRight, [Out] bool canDown)
static Point PlaceCatTail(int x, int j)
static void ShutDownServer()
static void AddGenerationPass(string name, double weight, WorldGenLegacyMethod method)
static void Check5x4(int i, int j, int type)
static bool CacheUpdateMapTile(int i, int j, bool addToList=true)
static void DesertCloudIsland(int i, int j)
static bool ShiftTrapdoor(int x, int y, bool playerAbove, int onlyCloseOrOpen=-1)
static int GetWorldSize()
static void GrowSpike(int i, int j, ushort spikeType, ushort landType)
static void FinishRemixWorld()
static void ScoreRoom(int ignoreNPC=-1, int npcTypeAskingToScoreRoom=-1)
static bool tempTenthAnniversaryWorldGen
static bool MoveTownNPC(int x, int y, int n)
static void GrowLivingTree_MakePassage(int j, int W, int minl, int minr, bool noSecretRoom=false)
static void RenameWorldCallBack(object threadContext)
static void TreeGrowFXCheck(int x, int y)
const int WorldSizeSmallY
static int GetTileTypeCountByCategory(int[] tileTypeCounts, TileScanGroup group)
static void AddHellHouses()
static bool ThreadRunning
static bool checkUnderground(int x, int y)
static MysticLogFairiesEvent mysticLogsEvent
static bool dontStarveWorldGen
static void StartHardmode()
static bool InAPlaceWithWind(Vector2 position, int width, int height)
static void FinaliseHardModeOnMainThread(object data)
static void ShimmerCleanUp()
static int countWires(int x, int y, int size)
static bool IsThereASpawnablePrioritizedTownNPC(int x, int y, bool canSpawnNewTownNPC)
static void IslandHouse(int i, int j, int islandStyle)
static bool drunkWorldGenText
static bool KillWire(int i, int j)
static Queue< Point > ExploitDestroyQueue
static void Mountinater(int i, int j)
static void Place3x2Wall(int x, int y, ushort type, int style)
static void tileCountAndDestroy()
static void GetBiomeInfluence(int startX, int endX, int startY, int endY, [Out] int corruptCount, [Out] int crimsonCount, [Out] int hallowedCount)
static int PlaceXmasTree_Direct(int x, int y, int type, int style, int dir, int alternate)
static void CheckWeaponsRack(int i, int j)
static List< WorldGen.nextCountNode > _countAvailableNodes
static int RollRandomSeaShellStyle()
static void RandomizeTreeStyle()
static void HellFort(int i, int j, ushort tileType=75, byte wallType=14)
static void TileMergeAttemptFrametest(int i, int j, int myType, int lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static bool UpdateMapTile(int i, int j, bool addToList=true)
static bool oceanDepths(int x, int y)
static void FixSunflowers()
static bool roomHasStinkbug
static bool TryKillingReplaceableTile(int x, int y, int tileType)
static int FindAHomelessNPC()
static void GrowPumpkin(int i, int j, int type)
static bool StartRoomCheck(int x, int y)
static void Place1x1(int x, int y, int type, int style=0)
static bool< GenerateWorld > g__Main_tile_active(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
const int WorldSizeSmallX
static bool PlayerLOS(int x, int y)
static void ConsumePostGenActions(StructureMap structures)
static object WaitingLock
static void nextDirtCount(int x, int y)
static readonly Vertical64BitStrips bitStrip
static void TreeGrowFX_AshShake(int x, int y, int height, bool hitTree=false)
static readonly int beachDistance
static bool KillWall_CheckFailure(bool fail, Tile tileCache)
static ushort lastTileCounterSearch
static void plantDye(int i, int j, bool exoticPlant=false)
static void UpdateDesertHiveBounds(int x, int y)
static bool IsThisAMushroomTree(int i, int j)
static int[] CountTileTypesInWorld(params int[] oreTypes)
static void PaintTheTemple(byte tilePaintColor, byte wallPaintColor)
static bool RoomNeeds(int npcType)
static bool AddBuriedChest(Point point, int contain=0, bool notNearOtherChests=false, int Style=-1)
static void TileMergeAttempt(int myType, bool[] lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void FinishNoTraps()
static void CheckDoorClosed(int i, int j, Tile tileCache, int type)
static void PlaceCannon(int x, int y, ushort type, int style=0)
static void PaintThePyramids(byte tilePaintColor, byte wallPaintColor)
static bool GrowDungeonTree(int i, int j, bool patch=false)
static void CheckChand(int i, int j, int type)
static void KillWall_PlaySounds(int i, int j, Tile tileCache)
static bool PlaceWire4(int i, int j)
static void SetupStatueList()
static bool TryKillingTreesAboveIfTheyWouldBecomeInvalid(int i, int j, int newFloorType)
static void setXmasTree(int x, int y, int obj, int style)
static void Reframe(int x, int y, bool resetFrame=false)
static void PlaceJunglePlant(int X2, int Y2, ushort type, int styleX, int styleY)
static void Place2x1(int x, int y, ushort type, int style=0)
static void TileFrameDoWork(int i, int j, bool resetFrame, bool noBreak, bool mapCheck)
static void CaveOpenater(int i, int j)
static void templePart2()
const int MaxCachedUpdates
static void SaveAndQuitCallBack(object threadContext)
static bool SolidTileAllowTopSlope(int i, int j)
static void PlaceDye(int x, int y, int style)
static void CheckChest(int i, int j, int type)
static void Check3x3Wall(int x, int y)
static void Check2x5(int i, int j, int type)
static bool TryGrowingAbigailsFlower(int i, int j)
static int GetDresserItemDrop(int style)
static void PlaceGnome(int x, int y, int style)
static void EveryTileFrame()
static List< Color > _coatingColors
static void Check2x2Style(int i, int j, int type)
static void SwitchFountain(int i, int j)
static bool GrowMoreVines(int x, int y)
static void QuickFindHome(int npc)
static void Convert(int i, int j, int conversionType, int size=4)
static int KillTile_MakeTileDust(int i, int j, Tile tileCache)
static Rectangle fallingBlockRegion
static void RandomizeBackgroundBasedOnPlayer(UnifiedRandom random, Player player)
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
static DateTime ThreadStarted
static void AttemptFossilShattering(int i, int j, Tile tileCache, bool fail)
static void ImproveAllChestContents()
static void RefreshStrip(int xStart, int yStart, int xEnd, int yEnd, int totalEcho, int totalFramed)
static bool generatingWorld
static void GetTreeLeaf(int x, Tile topTile, Tile t, int treeHeight, [Out] int treeFrame, [Out] int passStyle)
static int tileCounterNum
static unsafe void< GenerateWorld > g__Main_tile_slope_set(int _tileOffset, short slope, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_2)
static int CanPlaceProjectilePressurePad(int x, int y, int type=442, int style=0, int direction=0, int alternate=0)
static bool noTileActions
static void MineHouse(int i, int j)
static void Check4x3Wall(int x, int y)
static void joinLocalWorldCallBack(object threadContext)
static byte< GenerateWorld > g__Main_tile_slope(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static void Check4x2(int i, int j, int type)
static bool GrowEpicTree(int i, int y)
static void SetWorldSizeOnMainThread(object data)
static void SaveAndQuit()
static bool DungeonPitTrap(int i, int j, ushort tileType, int wallType)
static ushort< GenerateWorld > g__Main_tile_type(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static double TuneOceanDepth(int count, double depth, bool floridaStyle=false)
static bool ShimmerMakeBiome(int X, int Y)
static void ReplaceTile_DoActualReplacement_Single(ushort targetType, int targetStyle, int topLeftX, int topLeftY, Tile t)
static IEntitySource GetProjectileSource_PlayerOrWires(int x, int y, bool fromWiring, Player player)
static void Check2x1(int i, int y, ushort type)
static void DungeonHalls(int i, int j, ushort tileType, int wallType, bool forceX=false)
static void TileMergeAttemptWeird(int myType, int changeTo, bool[] exclude, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void neonMossBiome(int i, int j, int maxY=99999)
static bool SpawnFallingBlockProjectile(int i, int j, Tile tileCache, Tile tileTopCache, Tile tileBottomCache, int type)
static bool Chlorophyte(int i, int j)
static void outerTempled(int x, int y)
static void CheckPalmTree(int i, int j)
static bool noMapUpdateRefresh
static bool BlockBelowMakesSandFall(int i, int j)
static bool ScoreRoom_CanBeHomeSpot(int x, int y)
static bool SkipFramingBecauseOfGen
static bool SolidOrSlopedTile(int x, int y)
static bool SlopeTile(int i, int j, int slope=0, bool noEffects=false)
static void CloudLake(int i, int j)
static bool GrowSeaOat(int x, int y)
static void TrySpawningTownNPC(int x, int y)
static void CountTiles(int X)
static bool SavingSettings
static void SnowCloudIsland(int i, int j)
static void GetSandfallProjData(int type, [Out] int projType, [Out] int dmg)
static bool< GenerateWorld > g__SolidTileL(int x, int y, WorldGen.<>c__DisplayClass277_0 cpp2il__autoParamName__idx_3)
static bool PlaceBamboo(int x, int y)
static void CheckTrapDoor(int x, int y, int type)
static bool Housing_CheckIfInRoom(int i, int j)
static bool paintTile(int x, int y, byte color, bool broadCast=false)
static bool MarblePileWithStatues(int X, int Y)
static bool RightEdgeCanBeAttachedTo(int i, int j)
static void CactusFrame(int i, int j)
static bool KillWire2(int i, int j)
static bool FillWallHolesInSpot(int originX, int originY, int maxWallsThreshold)
static void GrowDungeonTree_MakePassage(int j, int W, int minl, int minr, bool noSecretRoom=false)
static void UnlockDoor(int i, int j)
static void CheckProjectilePressurePad(int i, int j)
static void CheckPile(int i, int y)
static unsafe void< GenerateWorld > g__Main_tile_halfBrick_set(int _tileOffset, bool halfBrick, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_2)
static bool Statue(int x, int y, byte paint)
static void RenameWorld(WorldFileData data, string newName, [Optional] Action< string > callback)
static Point RandomWorldPoint(int top=0, int right=0, int bottom=0, int left=0)
static bool ReplaceTile_IsValidCampfire(int type)
static void ExecuteThreadTime()
static void CheckTight(int x, int j)
static void PaintTheLivingTrees(byte livingTreePaintColor, byte livingTreeWallPaintColor)
const int WorldSizeLargeY
static void KillWall(int i, int j, bool fail=false)
static void paintCoatEffect(int x, int y, byte paintCoatId, List< Color > oldColors)
static bool EmptyLiquid(int x, int y)
static void SpawnThingsFromPot(int i, int j, int x2, int y2, int style)
static void CheckSuper(int x, int y, int type)
static bool CheckTileAnchors(int sx, int sy, int w, int h, int mode, AnchorType anchor)
static void ShimmerMakeBiomeOpening(int direction, int X, int Y, int caveOpenningSize)
static int PlatformProperSides(int x, int y, bool acceptNonOpposing=false)
static int MossConversion(int thisType, int otherType)
static int tileCounter(int x, int y)
static void GenerateWorld(int seed, [Optional] GenerationProgress customProgressObject)
static TownNPCRoomCheckFailureReason roomCheckFailureReason
static void UpdateWorld_UndergroundTile(int i, int j, bool checkNPCSpawns, int wallDist)
static void Place3x3Wall(int x, int y, ushort type, int style)
static bool CanKillTile(int i, int j, WorldGen.SpecialKillTileContext context)
static void ScanTileColumnAndRemoveClumps(int x)
static void CheckSunflower(int i, int j, int type=27)
static int GetTileMossColor(int tileType)
static bool SolidTile(int i, int j, bool noDoors=false)
static bool ShellPile(int X, int Y)
static TownNPCSpawnResult SpawnTownNPC(int x, int y)
static void PlayLiquidChangeSound(TileChangeType eventType, int x, int y, int count=1)
static bool GemTreeWallTest(int wallType)
static bool IsOpenDoorAnchorFrame(int x, int y)
static bool CheckCactus(int i, int j)
static bool CheckTileFrames(int type, int sx, int sy, int w, int h, int styleX, int frameXinc, int styleY, int frameYinc)
static void hardUpdateWorld(int i, int j)
static void Check3x6(int i, int j, int type)
static bool IsPalmOasisTree(int x)
static int tileCounterMax
static unsafe void< GenerateWorld > g__TileActiveSet(int _tileOffset, bool isActive, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_2)
static bool DefaultTreeWallTest(int wallType)
static Point GetAdjustedFloorPosition(int x, int y)
static void AddUpAlignmentCounts(bool clearCounts=false)
static void Place2x2(int x, int y, ushort type, int style)
static void CheckGolf1x1(int x, int y, int type)
static bool ReplaceTile_IsValidPlatform(int type)
static PaintingEntry RandHousePicture()
static int KillWall_GetItemDrops(Tile tileCache)
static bool DoesWindBlowAtThisHeight(int tileY)
static readonly int cactusWaterLimit
static string currentWorldSeed
static bool IsFitToPlaceFlowerIn(int x, int y, int typeAttemptedToPlace)
static void FixSunflower(int i, int j)
static UnifiedRandom _genRand
static void CheckTreeWithSettings(int x, int y, WorldGen.CheckTreeSettings settings)
static short< GenerateWorld > g__Main_tile_frameX(int x, int y, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_3)
static void CheckGnome(int x, int j)
static void ReplaceTile_EliminateNaturalExtras(int x, int y)
static bool SolidTile(Point p)
static void RandomizeMoonState(UnifiedRandom random, bool garenteeNewStyle=false)
static void nextCount(int x, int y, bool jungle=false, bool lavaOk=false)
static void KillWall_DropItems(int i, int j, Tile tileCache)
static void KillTile_GetTreeDrops(int i, int j, Tile tileCache, bool bonusWood, int dropItem, int secondaryItem)
static void PaintThePurityGrass(byte tilePaintColor, byte wallPaintColor)
static void KillWall_MakeWallDust(int i, int j, Tile tileCache)
static void PrefixItemFromOptions(Item item, int[] options)
static TileChangeType GetLiquidChangeType(int liquidType, int otherLiquidType)
static bool mayanTrap(int x2, int y2)
static void PlacePumpkin(int x, int superY)
static void Check3x5(int i, int j, int type)
static void GetCactusType(int tileX, int tileY, int frameX, int frameY, [Out] bool evil, [Out] bool good, [Out] bool crimson)
static void saveToonWhilePlaying()
static void DestroyHeart(int i, int j)
const int ItemSpawnProtectionTime
static bool HasValidGroundForAbigailsFlowerBelowSpot(int x, int y)
static bool BunnyCannonCanFire()
static void SpreadGrass(int i, int j, int dirt=0, int grass=2, bool repeat=true, [Optional] TileColorCache color)
static void UnspawnTravelNPC()
static bool EligibleForSpawnProtection(Item item)
static bool PlacePot(int x, int y, ushort type=28, int style=0)
static int[] roomCeilingX
static bool IsBelowANonHammeredPlatform(int x, int y)
static void WaitForThreadTime()
static void GrowLivingTreePassageRoom(int minl, int minr, int Y)
static void RandomizeCaveBackgrounds()
static void LaunchRocket(int x, int y, bool fromWiring)
static int GetCampfireItemDrop(int style)
static void Shimmerator(int x, int y, bool jungle=false, bool lavaOk=false)
static bool IsItATrigger(Tile tile)
static void HellHouse(int i, int j, byte type=76, byte wall=13)
static bool GrowTree(int i, int y)
static void PlaceMan(int i, int j, int dir)
static void AddGenerationPass(GenPass pass)
static bool GetCommonTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static void Place6x4Wall(int x, int y, ushort type, int style)
static int CountGrowingPlantTiles(int x, int y, int range, int type)
static void MoveReplaceTileAnchor(int x, int y, ushort targetType, Tile t)
static void saveAndPlayCallBack(object threadContext)
static bool currentlyTryingToUseAlternateHousingSpot
static void MatureTheHerbPlants()
static void dropXmasTree(int x, int y, int obj)
static int checkXmasTreeDrop(int x, int y, int obj)
static bool PlantSeaOat(int x, int y)
static void GetRidOfCultists()
static void Place1x2Top(int x, int y, ushort type, int style)
static void ShimmerRemoveWater()
static bool SolidTileAllowLeftSlope(int i, int j)
static bool LeftEdgeCanBeAttachedTo(int i, int j)
const int WorldSizeMediumY
static bool ReplaceTile_IsValidTorch(int type)
static int countDirtTiles(int x, int y)
static void ShakeTree(int i, int j)
static WorldGenerator _generator
static void UpdateLunarApocalypse()
static bool PlaceWire(int i, int j)
static bool SolidTile2(int i, int j)
static void Place4x3Wall(int x, int y, ushort type, int style)
static void Place1xX(int x, int y, ushort type, int style=0)
static void ResetTreeShakes()
static void PlaceWall(int i, int j, int type, bool mute=false)
static void TileMergeAttemptFrametest(int i, int j, int myType, bool[] lookfor, int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
static void Place3x1(int x, int y, ushort type, int style=0)
static Point GetTopLeftAndStyles(int x, int y, int w, int h, int frameXinc, int frameYinc)
static void TriggerLunarApocalypse()
static EntitySource_TileBreak GetProjectileSource_TileBreak(int x, int y)
static void CheckUnderwaterPlant(ushort type, int x, int y)
static void ExplodeMine(int i, int j, bool fromWiring)
static void playWorldCallBack(object threadContext)
static bool AddBuriedChest(int i, int j, int contain=0, bool notNearOtherChests=false, int Style=-1, bool trySlope=false, ushort chestTileType=0)
static void GrowGlowTulips()
static void ToggleGemLock(int i, int j, bool on)
static void PlaceStatueTrap(int x, int y)
static void PlaceUncheckedStalactite(int x, int y, bool preferSmall, int variation, bool spiders)
static bool IsNPCEvictable(int n)
static void PlaceOnTable1x1(int x, int y, int type, int style=0)
static void GrowWeb(int i, int j)
static void GetSectionBounds(int sectionStartX, int sectionStartY, int sectionEndXInclusive, int sectionEndYInclusive, [Out] int tileStartX, [Out] int tileEndX, [Out] int tileStartY, [Out] int tileEndY)
static bool PlatformProperTopFrame(short frameX)
static void DirtyRockRunner(int i, int j)
static int GetTreeFrame(Tile t)
static void CrimStart(int i, int j)
static bool SolidTileAllowBottomSlope(int i, int j)
static void ReplaceTIle_DoActualReplacement(ushort targetType, int targetStyle, int topLeftX, int topLeftY, Tile t)
static void CheckTorch(int x, int y)
static void DontStarveTryWateringTile(int x, int y)
static void Place3x3(int x, int y, ushort type, int style=0)
static bool IsDungeon(int x, int y)
static void ResetGenerator()
static bool PlaceObject(int x, int y, int type, bool mute=false, int style=0, int alternate=0, int random=-1, int direction=-1)
static bool drunkWorldGen
static void StopMergingByInvsibility(int currentMerge, Tile block, bool wantedInvisibilityState)
static EntitySource_ShakeTree GetItemSource_ShakeTree(int x, int y)
static bool skipFramingDuringGen
static PaintingEntry RandHellPicture()
static int GetNextJungleChestItem()
static void KillTile_PlaySounds(int i, int j, bool fail, Tile tileCache)
static void TileRunner(int i, int j, double strength, int steps, int type, bool addTile=false, double speedX=0.0, double speedY=0.0, bool noYChange=false, bool overRide=true, int ignoreTileType=-1)
static void worldGenCallback(object threadContext)
static bool PlaceDoor(int i, int j, int type, int style=0)
static int[] roomCeilingY
static bool ReplaceTile_IsValidDresser(int type)
static void BroadcastText(NetworkText text, Vector3 color)
static int KillTile_GetTileDustAmount(bool fail, Tile tileCache)
static BackgroundChangeFlashInfo BackgroundsCache
static bool IsUndergroundDesert(int x, int y)
static int GetItemDrop_PicnicTables(int style)
static bool paintCoatWall(int x, int y, byte paintCoatId, bool broadcast=false)
static bool PlaceAlch(int x, int y, int style)
static List< Color > coatingColors(Tile tile, bool block)
static void GrowUndergroundTree(int i, int y)
static bool ReplaceWall(int x, int y, ushort targetWall)
static bool VanityTreeGroundTest(int tileType)
static void ConvertSkyIslands(int convertType, bool growTrees)
static bool Pyramid(int i, int j)
static bool InWorld(int x, int y, int fluff=0)
static void ShootFromCannon(int x, int y, int angle, int ammo, int Damage, float KnockBack, int owner, bool fromWire)
static List< WorldGen.PendingRefame > pendingGlobalFrames
static bool PlaceSign(int x, int y, ushort type, int Style=0)
static void TileMergeAttempt(int myType, int lookfor, int up, int down, int left, int right)
static void ShroomPatch(int i, int j)
static bool IsRope(int x, int y)
static bool IsRoomConsideredOccupiedForNPCIndex(int npc)
static void PlantCheck(int x, int y)
static bool PlaceActuator(int i, int j)
static int GetChestItemDrop(int x, int y, int type)
static bool WillWaterPlacedHereStayPut(int x, int y)
static void Place3x4(int x, int y, ushort type, int style)
static void CheckMB(int i, int j, int type)
static bool AnchorValid(Tile tileCache, AnchorType anchor)
static void CrimVein(Vector2D position, Vector2D velocity)
static void CheckFoodPlatter(int x, int y, int type)
static IEntitySource GetItemSource_FromTileBreak(int x, int y)
static void SquareTileFrame(int i, int j, bool resetFrame=true)
static bool CheckSeaOat(int x, int y)
static List< WorldGen.nextCountDirtNode > _dirtCountAvailableNodes
static bool OrePatch(int X, int Y)
static bool nearbyChlorophyte(int i, int j)
static void FinaliseOnMainThread(object threadContext)
static bool GetVanityTreeFoliageData(int i, int j, int xoffset, int treeFrame, int treeStyle, [Out] int floorY, [Out] int topTextureFrameWidth, [Out] int topTextureFrameHeight)
static void RefreshSections(int startX, int startY, int endX, int endY)
static bool CanCutTile(int x, int y, TileCuttingContext context)
static void gemCave(int x, int y)
static void Place5x4(int x, int y, ushort type, int style)
static void PaintTheTrees()
static bool placeTrap(int x2, int y2, int type=-1)
static bool shadowOrbSmashed
static bool< GenerateWorld > g__Main_tile_honey(int x, int y, WorldGen.<>c__DisplayClass277_2 cpp2il__autoParamName__idx_3)
static void WavyCaverer(int startX, int startY, double waveStrengthScalar, double wavePercentScalar, int steps, int type)
static bool GemTreeGroundTest(int tileType)
static void PlaceBanner(int x, int y, ushort type, int style=0)
static IEntitySource GetItemSource_FromTreeShake(int x, int y)
static void CheckXmasTree(int x, int y)
static bool StonePatch(int X, int Y)
static bool AllowsSandfall(Tile tileTopCache)
static bool IsHarvestableHerbWithSeed(int type, int style)
static void makeTemple(int x, int y)
static void CheckJunglePlant(int i, int j, int type)
static void CheckCatTail(int x, int j)
static bool NearFriendlyWall(int x, int y)
static bool getGoodWorldGen
static bool paintCoatTile(int x, int y, byte paintCoatId, bool broadcast=false)
static ManagedThread serverLoadWorld()
static void PlaceTight(int x, int y, bool spiders=false)
static void ChasmRunnerSideways(int i, int j, int direction, int steps)
static bool WouldTileReplacementBeBlockedByLiquid(int x, int y, int liquidType)
static Queue< Action< StructureMap > > _postGenActions
static void AddTrees(bool undergroundOnly=false)
static void ClearBrokenTraps(Point startTileCoords, List< Point > pointsWeAlreadyWentOver)
static bool SolidTile3(Tile t)
static int countTiles(int x, int y, bool jungle=false, bool lavaOk=false)
static void CrimPlaceHearts()
static bool CanPlaceSink(int x, int y, ushort type, int style)
static bool HasAnyWireNearby(int sourceX, int sourceY, int boxSpread)
static void Place2x2Style(int x, int y, ushort type, int style=0)
static void ShimmeratorNext(int x, int y)
static int catTailDistance
static void CheckBanner(int x, int j, byte type)
static uint[] CachedMapTileUpdates
static void GrowCatTail(int x, int j)
static bool ReplaceTile(int x, int y, ushort targetType, int targetStyle)
static IEntitySource GetItemSource_FromWallBreak(int x, int y)
static void Place2xX(int x, int y, ushort type, int style=0)
static Point RandomWorldPoint(int padding)
static void setMoss(int x, int y)
static bool IsSafeFromRain(int startX, int startY)
static double MakeDungeon_Pictures(int[] roomWall, double count)
static bool PlaceSandTrap(int i, int j)
static void Cavinator(int i, int j, int steps)
static void SpawnPlanteraThorns(Vector2 position)
static bool SolidTile(Tile tileCache, bool noDoors=false)
static bool CheckBoulderChest(int i, int j)
static void FinishGetGoodWorld()
static void PlaceChestDirect(int x, int y, ushort type, int style, int id)
static void DungeonRoom(int i, int j, ushort tileType, int wallType)
static List< WorldGen.nextCountNode > _countOpenNodes
static bool AddLifeCrystal(int i, int j)
static bool IsTileALeafyTreeTop(int i, int j)
static int PlaceChest(int x, int y, ushort type=21, bool notNearOtherChests=false, int style=0)
static TreeTypes GetTreeType(int tileType)
static bool CheckTileBreakability2_ShouldTileSurvive(int x, int y)
static void CheckMan(int i, int j)
static bool SolidOrSlopedTile(Tile tile)
static void kickOut(int n)
static bool IsTileNearby(int x, int y, int type, int distance)
static void Lakinater(int i, int j, double strengthMultiplier=1.0)
static void PlaceWoman(int i, int j, int dir)
static void tileCounterNext(int x, int y)
static void FillWallHolesInArea(Rectangle worldCoordsArea)
static bool AshTreeGroundTest(int tileType)
static Color paintColor(int color)
static void KillTile_DropBait(int i, int j, Tile tileCache)
static bool KillActuator(int i, int j)
static void Check6x4Wall(int x, int y)
static int GetHollowTreeFoliageStyle()
static EntitySource_ShakeTree GetNPCSource_ShakeTree(int x, int y)
static int CachedMapTileUpdateCount
static bool IsGeneratingHardMode
static int GetItemDrop_Toilet(int style)
bool AnyUnfinishedSections
void SetAllSectionsLoaded()
bool SectionNeedsRefresh(int x, int y)
void SetSectionAsRefreshed(int x, int y)
bool SectionLoaded(int x, int y)
bool SectionFramed(int x, int y)
static void CheckThreadTerminiate()
static void EndThreadProfiling()
TownNPCRoomCheckFailureReason
void liquidType(int liquidType)
void ClearBlockPaintAndCoating()
void ResetToType(ushort type)
static void StartNewSearch()
delegate bool GroundValidTest(int groundTileType)
WorldGen.CheckTreeSettings.GroundValidTest IsGroundValid
WorldGen.GrowTreeSettings.IsTileFitForTreeGroundTest GroundTest
delegate bool IsWallTypeFitForTreeBack(int wallType)
delegate bool IsTileFitForTreeGroundTest(int tileType)
WorldGen.GrowTreeSettings.IsWallTypeFitForTreeBack WallTest
void Cull(int up, int down, int left, int right, int upLeft, int upRight, int downLeft, int downRight)
unsafe uint * TileData_tileLookupPtr
unsafe ushort * TileData_TileType
unsafe short * TileData_TileSHeader
unsafe short * TileData_TileFrameX
unsafe short * TileData_TileSHeader
unsafe ushort * TileData_TileType
unsafe byte * TileData_TileBHeader
unsafe uint * TileData_TileLookup