2014-12-27 12:34:55 -07:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace TrueCraft.API.World
|
|
|
|
|
{
|
|
|
|
|
public interface IChunk
|
|
|
|
|
{
|
|
|
|
|
Coordinates2D Coordinates { get; set; }
|
|
|
|
|
bool IsModified { get; set; }
|
|
|
|
|
int[] HeightMap { get; }
|
|
|
|
|
byte[] Biomes { get; }
|
|
|
|
|
DateTime LastAccessed { get; set; }
|
2014-12-27 18:19:42 -07:00
|
|
|
|
byte[] Blocks { get; }
|
|
|
|
|
NibbleArray Metadata { get; }
|
|
|
|
|
NibbleArray BlockLight { get; }
|
|
|
|
|
NibbleArray SkyLight { get; }
|
2014-12-27 12:51:45 -07:00
|
|
|
|
byte GetBlockID(Coordinates3D coordinates);
|
2014-12-27 12:34:55 -07:00
|
|
|
|
byte GetMetadata(Coordinates3D coordinates);
|
|
|
|
|
byte GetSkyLight(Coordinates3D coordinates);
|
|
|
|
|
byte GetBlockLight(Coordinates3D coordinates);
|
2014-12-27 12:51:45 -07:00
|
|
|
|
void SetBlockID(Coordinates3D coordinates, byte value);
|
2014-12-27 12:34:55 -07:00
|
|
|
|
void SetMetadata(Coordinates3D coordinates, byte value);
|
|
|
|
|
void SetSkyLight(Coordinates3D coordinates, byte value);
|
|
|
|
|
void SetBlockLight(Coordinates3D coordinates, byte value);
|
|
|
|
|
}
|
|
|
|
|
}
|