2using System.Collections.Generic;
3using Microsoft.Xna.Framework;
4using Microsoft.Xna.Framework.Graphics;
21 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
39 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
56 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
74 for (
int i = 0; i < tiles.Length; i++)
80 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
94 for (
int i = 0; i <
_tileIds.Length; i++)
121 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
137 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
146 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
156 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
173 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
190 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
207 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
230 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
259 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
288 public DebugDraw(SpriteBatch spriteBatch, Color color =
default(Color))
296 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
315 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
332 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
342 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
353 int num = x % 52 + y % 52;
360 return (
byte)(12 +
num);
376 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
386 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
406 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
428 public SetLiquid(
int type = 0,
byte value =
byte.MaxValue)
434 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
452 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
474 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
491 public override bool Apply(Point origin,
int x,
int y,
params object[] args)
501 for (
int i = 0; i < actions.Length - 1; i++)
503 actions[i].NextAction = actions[i + 1];
static Asset< Texture2D > MagicPixel
static Vector2 screenPosition
The position of the top left corner of the screen in world coordinates. Modify in M:Terraria....
override bool Apply(Point origin, int x, int y, params object[] args)
ClearTile(bool frameNeighbors=false)
override bool Apply(Point origin, int x, int y, params object[] args)
ClearWall(bool frameNeighbors=false)
override bool Apply(Point origin, int x, int y, params object[] args)
override bool Apply(Point origin, int x, int y, params object[] args)
override bool Apply(Point origin, int x, int y, params object[] args)
ContinueWrapper(GenAction action)
override bool Apply(Point origin, int x, int y, params object[] args)
Custom(CustomPerUnitAction perUnit)
override bool Apply(Point origin, int x, int y, params object[] args)
CustomPerUnitAction _perUnit
override bool Apply(Point origin, int x, int y, params object[] args)
DebugDraw(SpriteBatch spriteBatch, Color color=default(Color))
HalfBlock(bool value=true)
override bool Apply(Point origin, int x, int y, params object[] args)
PlaceTile(ushort type, int style=0)
override bool Apply(Point origin, int x, int y, params object[] args)
PlaceWall(ushort type, bool neighbors=true)
override bool Apply(Point origin, int x, int y, params object[] args)
override bool Apply(Point origin, int x, int y, params object[] args)
override bool Apply(Point origin, int x, int y, params object[] args)
Scanner(Ref< int > count)
override bool Apply(Point origin, int x, int y, params object[] args)
SetFrames(bool frameNeighbors=false)
SetHalfTile(bool halfTile)
override bool Apply(Point origin, int x, int y, params object[] args)
override bool Apply(Point origin, int x, int y, params object[] args)
SetLiquid(int type=0, byte value=byte.MaxValue)
override bool Apply(Point origin, int x, int y, params object[] args)
byte GetPaintIDForPosition(int x, int y)
override bool Apply(Point origin, int x, int y, params object[] args)
override bool Apply(Point origin, int x, int y, params object[] args)
SetTileKeepWall(ushort type, bool setSelfFrames=false, bool setNeighborFrames=true)
SetTile(ushort type, bool setSelfFrames=false, bool setNeighborFrames=true)
override bool Apply(Point origin, int x, int y, params object[] args)
Smooth(bool applyToNeighbors=false)
override bool Apply(Point origin, int x, int y, params object[] args)
override bool Apply(Point origin, int x, int y, params object[] args)
SwapSolidTile(ushort type)
TileScanner Output(Dictionary< ushort, int > resultsOutput)
override bool Apply(Point origin, int x, int y, params object[] args)
int GetCount(ushort tileId)
TileScanner(params ushort[] tiles)
Dictionary< ushort, int > _tileCounts
Dictionary< ushort, int > GetResults()
static GenAction Chain(params GenAction[] actions)
static GenAction Continue(GenAction action)
bool UnitApply(Point origin, int x, int y, params object[] args)
bool Apply(Point origin, int x, int y, params object[] args)
static ref Tilemap _tiles
static void TileFrame(int x, int y, bool frameNeighbors=false)
static void ClearTile(int x, int y, bool frameNeighbors=false)
static void ClearWall(int x, int y, bool frameNeighbors=false)
static bool SolidTile(Tile testTile)
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static void SquareWallFrame(int i, int j, bool resetFrame=true)
static bool SlopeTile(int i, int j, int slope=0, bool noEffects=false)
static void SmoothSlope(int x, int y, bool applyToNeighbors=true, bool sync=false)
Slopes a tile based on the tiles adjacent to it.
ref ushort type
Legacy code, use P:Terraria.Tile.TileType instead.
void ResetToType(ushort type)
Resets all of the data at this position except for the P:Terraria.Tile.WallType, and sets P:Terraria....
bool active()
Legacy code, use P:Terraria.Tile.HasTile instead.
A data structure used for accessing information about tiles, walls, wires, and liquids at a single po...