C# Class Grey.Vox.VoxWorld

Exibir arquivo Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Properties

Property Type Description
pager RegionPager
regions Grey.Vox.Region[]
state Grey.Engine.VoxState
worldMin Point

Public Methods

Method Description
IsInArray ( int x, int z, int &ax, int &az ) : bool
PlaceRegion ( Region region ) : bool
ToIndex ( Point p ) : int
ToIndex ( int x, int z ) : int
TryCreateRegion ( int x, int z ) : Region
VoxWorld ( VoxState s ) : System

Method Details

IsInArray() public method

public IsInArray ( int x, int z, int &ax, int &az ) : bool
x int
z int
ax int
az int
return bool

PlaceRegion() public method

public PlaceRegion ( Region region ) : bool
region Region
return bool

ToIndex() public static method

public static ToIndex ( Point p ) : int
p Point
return int

ToIndex() public static method

public static ToIndex ( int x, int z ) : int
x int
z int
return int

TryCreateRegion() public method

public TryCreateRegion ( int x, int z ) : Region
x int
z int
return Region

VoxWorld() public method

public VoxWorld ( VoxState s ) : System
s Grey.Engine.VoxState
return System

Property Details

pager public_oe property

public RegionPager,Grey.Vox pager
return RegionPager

regions public_oe property

public Region[],Grey.Vox regions
return Grey.Vox.Region[]

state public_oe property

public VoxState,Grey.Engine state
return Grey.Engine.VoxState

worldMin public_oe property

public Point worldMin
return Point