C# Class OTAPI.Tile.DefaultTileCollection

Replicates the default functionality of a normal array.
Inheritance: ITileCollection
Mostra file Open project: DeathCradle/Open-Terraria-API

Protected Properties

Property Type Description
_tiles ].ITile[

Public Methods

Method Description
this ( int x, int y ) : ITile

Describes the get and set tile accessors that the vanilla server will use

Protected Methods

Method Description
DefaultTileCollection ( ITile collection ) : System

Initializes a new instance with the specified collection as the underlying source.

Private Methods

Method Description
DefaultTileCollection ( ) : System

Replicates the default terraria tile array constructor

GetNewTileCollection ( ) : ].ITile[

Creates a new 2D array instance of ITile using the default Terraria.Tile implementation. This cannot be compiled in the OTAPI solution as the Terraria.Tile will not implement ITile at compile time.

Method Details

DefaultTileCollection() protected method

Initializes a new instance with the specified collection as the underlying source.
protected DefaultTileCollection ( ITile collection ) : System
collection ITile
return System

this() public method

Describes the get and set tile accessors that the vanilla server will use
public this ( int x, int y ) : ITile
x int
y int
return ITile

Property Details

_tiles protected_oe property

protected ITile[,] _tiles
return ].ITile[