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

Block data to be saved to file More...

Public Member Functions

 BlockData ()
 Default constructor for BlockData Sets all the block data for saving More...
 

Static Public Member Functions

static byte [] ConvertJaggedByteArrayToArray (byte[][,] jaggedArray)
 Converts a jagged byte array to a single byte array More...
 
static byte [][,] ConvertByteArrayToJaggedArray (byte[] byteArray, int lengthD1, int lengthD2, int lengthD3)
 Converts a single byte array to a jagged array More...
 
static byte [] ConvertJaggedBoolArrayToByteArray (bool[][,] jaggedArray)
 Converts a jagged bool array to a single byte array More...
 
static bool [][,] ConvertByteArrayToJaggedBoolArray (byte[] byteArray, int lengthD1, int lengthD2, int lengthD3)
 Converts a single byte array to a jagged array More...
 

Properties

byte [][,] BlockType [get]
 Storage for all the blockType data More...
 
bool [][,] RenderBlock [get]
 Storage for all the renderBlock data More...
 
float [,] FluidWeight [get]
 Storage for all the fluid weight data More...
 

Detailed Description

Block data to be saved to file

Constructor & Destructor Documentation

◆ BlockData()

TerrainEngine2D.BlockData.BlockData ( )

Default constructor for BlockData Sets all the block data for saving

Member Function Documentation

◆ ConvertByteArrayToJaggedArray()

static byte [][,] TerrainEngine2D.BlockData.ConvertByteArrayToJaggedArray ( byte []  byteArray,
int  lengthD1,
int  lengthD2,
int  lengthD3 
)
static

Converts a single byte array to a jagged array

Parameters
byteArrayThe byte array to convert
lengthD1Length of dimension 1
lengthD2Length of dimension 2
lengthD3Length of dimension 3
Returns
Returns the jagged array

◆ ConvertByteArrayToJaggedBoolArray()

static bool [][,] TerrainEngine2D.BlockData.ConvertByteArrayToJaggedBoolArray ( byte []  byteArray,
int  lengthD1,
int  lengthD2,
int  lengthD3 
)
static

Converts a single byte array to a jagged array

Parameters
byteArrayThe byte array to convert
lengthD1Length of dimension 1
lengthD2Length of dimension 2
lengthD3Length of dimension 3
Returns
Returns the jagged array

◆ ConvertJaggedBoolArrayToByteArray()

static byte [] TerrainEngine2D.BlockData.ConvertJaggedBoolArrayToByteArray ( bool  jaggedArray[][,])
static

Converts a jagged bool array to a single byte array

Parameters
jaggedArrayThe jagged array to convert
Returns
Returns the array of bytes

◆ ConvertJaggedByteArrayToArray()

static byte [] TerrainEngine2D.BlockData.ConvertJaggedByteArrayToArray ( byte  jaggedArray[][,])
static

Converts a jagged byte array to a single byte array

Parameters
jaggedArrayThe jagged array to convert
Returns
Returns the array of bytes

Property Documentation

◆ BlockType

byte [][,] TerrainEngine2D.BlockData.BlockType
get

Storage for all the blockType data

◆ FluidWeight

float [,] TerrainEngine2D.BlockData.FluidWeight
get

Storage for all the fluid weight data

◆ RenderBlock

bool [][,] TerrainEngine2D.BlockData.RenderBlock
get

Storage for all the renderBlock data


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