Logo
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Yukar.Engine.MapClusterBuilder Class Reference

Class to generate terrain mesh according to Common.Rom.Map More...

Classes

class  MapSlopePhysicsNotifyTarget
 A class for notifying a collider that a slope has been hit More...
 
class  MapTerrainPhysicsNotifyTarget
 Class for notifying colliders that terrain is hit More...
 

Public Member Functions

 MapClusterBuilder (int x, int z, MapData owner, Common.Rom.Map dat, bool topOnly, uint clusterSize, SharpKmyPhysics.PhysicsBase physics, bool delayedSmoothing)
 
void Dispose ()
 
void geomInvalidate ()
 
void buildBottomRequest ()
 
bool isSmoothInProgress ()
 
void buildCore (int x, int z)
 
void updateInternal ()
 
void updateInternalTopOnly ()
 
async void afterUpdate ()
 
void buildCollisions ()
 
void updateGeometry ()
 

Static Public Member Functions

static SharpKmyGfx.Color getColorByHeight (float height)
 

Public Attributes

List< SharpKmyGfx.VertexPositionNormalMapTexture2Color >[,] op_vlist
 
Common.Rom.Map data
 
int ix
 
int iz
 
int currentX
 
int currentZ
 
int currentY
 
int currentHeight
 
bool[] capped = new bool[4]
 
SharpKmyGfx.VertexBuffer vb
 
SharpKmyGfx.VertexBuffer avb
 
SharpKmyGfx.GeomCluster geomCluster
 
SharpKmyGfx.GeometryInstance geometryInstance
 
SharpKmyGfx.GeometryInstance selectionGeometry
 

Static Public Attributes

const float s_centerOffset = 0.5f
 
const float WATER_TOP_OFFST = 0.1f
 
static int MinY = -1
 
static int MaxY = -1
 

Properties

bool IsInvalid [get]
 

Detailed Description

Class to generate terrain mesh according to Common.Rom.Map

Constructor & Destructor Documentation

◆ MapClusterBuilder()

Yukar.Engine.MapClusterBuilder.MapClusterBuilder ( int  x,
int  z,
MapData  owner,
Common.Rom.Map  dat,
bool  topOnly,
uint  clusterSize,
SharpKmyPhysics.PhysicsBase  physics,
bool  delayedSmoothing 
)

Member Function Documentation

◆ afterUpdate()

async void Yukar.Engine.MapClusterBuilder.afterUpdate ( )

◆ buildBottomRequest()

void Yukar.Engine.MapClusterBuilder.buildBottomRequest ( )

◆ buildCollisions()

void Yukar.Engine.MapClusterBuilder.buildCollisions ( )

◆ buildCore()

void Yukar.Engine.MapClusterBuilder.buildCore ( int  x,
int  z 
)

◆ Dispose()

void Yukar.Engine.MapClusterBuilder.Dispose ( )

◆ geomInvalidate()

void Yukar.Engine.MapClusterBuilder.geomInvalidate ( )

◆ getColorByHeight()

static SharpKmyGfx.Color Yukar.Engine.MapClusterBuilder.getColorByHeight ( float  height)
static

◆ isSmoothInProgress()

bool Yukar.Engine.MapClusterBuilder.isSmoothInProgress ( )

◆ updateGeometry()

void Yukar.Engine.MapClusterBuilder.updateGeometry ( )

◆ updateInternal()

void Yukar.Engine.MapClusterBuilder.updateInternal ( )

◆ updateInternalTopOnly()

void Yukar.Engine.MapClusterBuilder.updateInternalTopOnly ( )

Member Data Documentation

◆ avb

SharpKmyGfx.VertexBuffer Yukar.Engine.MapClusterBuilder.avb

◆ capped

bool [] Yukar.Engine.MapClusterBuilder.capped = new bool[4]

◆ currentHeight

int Yukar.Engine.MapClusterBuilder.currentHeight

◆ currentX

int Yukar.Engine.MapClusterBuilder.currentX

◆ currentY

int Yukar.Engine.MapClusterBuilder.currentY

◆ currentZ

int Yukar.Engine.MapClusterBuilder.currentZ

◆ data

Common.Rom.Map Yukar.Engine.MapClusterBuilder.data

◆ geomCluster

SharpKmyGfx.GeomCluster Yukar.Engine.MapClusterBuilder.geomCluster

◆ geometryInstance

SharpKmyGfx.GeometryInstance Yukar.Engine.MapClusterBuilder.geometryInstance

◆ ix

int Yukar.Engine.MapClusterBuilder.ix

◆ iz

int Yukar.Engine.MapClusterBuilder.iz

◆ MaxY

int Yukar.Engine.MapClusterBuilder.MaxY = -1
static

◆ MinY

int Yukar.Engine.MapClusterBuilder.MinY = -1
static

◆ op_vlist

List<SharpKmyGfx.VertexPositionNormalMapTexture2Color> [,] Yukar.Engine.MapClusterBuilder.op_vlist

◆ s_centerOffset

const float Yukar.Engine.MapClusterBuilder.s_centerOffset = 0.5f
static

◆ selectionGeometry

SharpKmyGfx.GeometryInstance Yukar.Engine.MapClusterBuilder.selectionGeometry

◆ vb

SharpKmyGfx.VertexBuffer Yukar.Engine.MapClusterBuilder.vb

◆ WATER_TOP_OFFST

const float Yukar.Engine.MapClusterBuilder.WATER_TOP_OFFST = 0.1f
static

Property Documentation

◆ IsInvalid

bool Yukar.Engine.MapClusterBuilder.IsInvalid
get