C# Class Grey.Vox.Region

ファイルを表示 Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Properties

Property Type Description
changedCount int
loc Point
rBS Grey.Vox.RegionBoundaryState[]
rNX Region
voxels Grey.Vox.Voxel[]

Public Methods

Method Description
AddVoxel ( int x, int y, int z, ushort id ) : void
ApplyToAll ( Func f ) : void
LoadComplete ( ) : void
NotifyFacesChanged ( ) : void
RecalculateSeam ( int vi1, int vi2, int f ) : bool
RecalculateSeams ( int vi1, int vi2, int f ) : bool
Region ( VoxWorld w ) : System
RemoveVoxel ( int x, int y, int z ) : void
SetVoxel ( int x, int y, int z, ushort id ) : void
ToIndex ( Vector3I v ) : int
ToIndex ( int x, int y, int z ) : int

Method Details

AddVoxel() public method

public AddVoxel ( int x, int y, int z, ushort id ) : void
x int
y int
z int
id ushort
return void

ApplyToAll() public method

public ApplyToAll ( Func f ) : void
f Func
return void

LoadComplete() public method

public LoadComplete ( ) : void
return void

NotifyFacesChanged() public method

public NotifyFacesChanged ( ) : void
return void

RecalculateSeam() public method

public RecalculateSeam ( int vi1, int vi2, int f ) : bool
vi1 int
vi2 int
f int
return bool

RecalculateSeams() public method

public RecalculateSeams ( int vi1, int vi2, int f ) : bool
vi1 int
vi2 int
f int
return bool

Region() public method

public Region ( VoxWorld w ) : System
w VoxWorld
return System

RemoveVoxel() public method

public RemoveVoxel ( int x, int y, int z ) : void
x int
y int
z int
return void

SetVoxel() public method

public SetVoxel ( int x, int y, int z, ushort id ) : void
x int
y int
z int
id ushort
return void

ToIndex() public static method

public static ToIndex ( Vector3I v ) : int
v Microsoft.Xna.Framework.Vector3I
return int

ToIndex() public static method

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

Property Details

changedCount public_oe property

public int changedCount
return int

loc public_oe property

public Point loc
return Point

rBS public_oe property

public RegionBoundaryState[],Grey.Vox rBS
return Grey.Vox.RegionBoundaryState[]

rNX public_oe property

public Region,Grey.Vox rNX
return Region

voxels public_oe property

public Voxel[],Grey.Vox voxels
return Grey.Vox.Voxel[]