My Project
Public Member Functions | Public Attributes | List of all members
ParaEngine::ChunkMaxHeight Struct Reference

chunk column's height map data More...

#include <ChunkMaxHeight.h>

Public Member Functions

 ChunkMaxHeight (int16_t nSolidHeight=0, int16_t nMaxHeight=0)
 
int16_t GetMaxHeight ()
 
int16_t GetMaxSolidHeight ()
 
void SetHeight (int16_t nHeight, bool bIsTransparent=false)
 
void AddBlockHeight (int16_t nHeight, bool bIsTransparent=false)
 only call this function at load time, since it can not erase height. More...
 
void ClearHeight ()
 clear all height 0
 

Public Attributes

int16_t m_nSolidHeight
 
int16_t m_nMaxHeight
 

Detailed Description

chunk column's height map data

Member Function Documentation

§ AddBlockHeight()

void ChunkMaxHeight::AddBlockHeight ( int16_t  nHeight,
bool  bIsTransparent = false 
)

only call this function at load time, since it can not erase height.

use SetHeight if one wants to erase block height to new values.


The documentation for this struct was generated from the following files: