Terrain Engine 2D  1.10
A 2D Block Engine
TerrainEngine2D.WorldModifier Class Reference

Controls modification of the World.Instance More...

Static Public Member Functions

static void PlaceFluid (int x, int y, float amount, int radius=0)
 Places fluid at a specific location in the world More...
 
static void RemoveFluid (int x, int y, int radius=0)
 Removes fluid from a specific location More...
 
static void SetBlock (int x, int y, bool replace, byte layer, byte blockType, int radius=0)
 Sets the block at a specific location of a specific layer More...
 
static void RemoveBlock (int x, int y, List< byte > layers, int radius=0)
 Removes blocks from a specified location in specified layers More...
 

Detailed Description

Controls modification of the World.Instance

Member Function Documentation

◆ PlaceFluid()

static void TerrainEngine2D.WorldModifier.PlaceFluid ( int  x,
int  y,
float  amount,
int  radius = 0 
)
static

Places fluid at a specific location in the world

Parameters
xX coordinate
yY coordinate
amountAmount of fluid to place
radiusHow many surrounding blocks get fluid

◆ RemoveBlock()

static void TerrainEngine2D.WorldModifier.RemoveBlock ( int  x,
int  y,
List< byte >  layers,
int  radius = 0 
)
static

Removes blocks from a specified location in specified layers

Parameters
xX coordinate
yY coordinate
layersLayers to remove blocks from
radiusHow many surrounding blocks to remove

◆ RemoveFluid()

static void TerrainEngine2D.WorldModifier.RemoveFluid ( int  x,
int  y,
int  radius = 0 
)
static

Removes fluid from a specific location

Parameters
xX coordinate
yY coordinate
radiusHow many surround blocks to remove fluid

◆ SetBlock()

static void TerrainEngine2D.WorldModifier.SetBlock ( int  x,
int  y,
bool  replace,
byte  layer,
byte  blockType,
int  radius = 0 
)
static

Sets the block at a specific location of a specific layer

Parameters
xX coordinate
yY coordinate
replaceWhether to replace the current block
layerLayer to modify
blockTypeBlock type to place
radiusRadius making up the area in which blocks will be placed

The documentation for this class was generated from the following file: