|
virtual int | GetAttributeClassID () |
| attribute class ID should be identical, unless one knows how overriding rules work. More...
|
|
virtual const char * | GetAttributeClassName () |
| a static string, describing the attribute class object's name
|
|
virtual const char * | GetAttributeClassDescription () |
| a static string, describing the attribute class object
|
|
virtual int | InstallFields (CAttributeClass *pClass, bool bOverride) |
| this class should be implemented if one wants to add new attribute. More...
|
|
virtual IAttributeFields * | GetChildAttributeObject (const std::string &sName) |
| get attribute by child object. More...
|
|
virtual int | GetChildAttributeObjectCount (int nColumnIndex=0) |
| get the number of child objects (row count) in the given column. More...
|
|
virtual int | GetChildAttributeColumnCount () |
| we support multi-dimensional child object. More...
|
|
virtual IAttributeFields * | GetChildAttributeObject (int nRowIndex, int nColumnIndex=0) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetBlockRenderMethod_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetBlockRenderMethod_s, int) |
|
| ATTRIBUTE_METHOD (CBlockWorld, ResumeLightUpdate_s) |
|
| ATTRIBUTE_METHOD (CBlockWorld, SuspendLightUpdate_s) |
|
| ATTRIBUTE_METHOD (CBlockWorld, ResetAllLight_s) |
|
| ATTRIBUTE_METHOD (CBlockWorld, LockWorld_s) |
|
| ATTRIBUTE_METHOD (CBlockWorld, UnlockWorld_s) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, IsLightUpdateSuspended_s, bool *) |
|
| ATTRIBUTE_METHOD3 (CBlockWorld, SetChunkColumnTimeStamp_s, float) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetRenderDist_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetRenderDist_s, int) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetDirtyColumnCount_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetDirtyBlockCount_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, IsReadOnly_s, bool *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetReadOnly_s, bool) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, IsRemote_s, bool *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetIsRemote_s, bool) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, IsServerWorld_s, bool *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetIsServerWorld_s, bool) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, IsSaveLightMap_s, bool *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetSaveLightMap_s, bool) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, IsUseAsyncLoadWorld_s, bool *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetUseAsyncLoadWorld_s, bool) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetLightCalculationStep_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetLightCalculationStep_s, int) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetMaxCacheRegionCount_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetMaxCacheRegionCount_s, int) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetNumOfLockedBlockRegion_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetNumOfBlockRegion_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetTotalNumOfLoadedChunksInLockedBlockRegion_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, IsRenderBlocks_s, bool *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetRenderBlocks_s, bool) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetSunIntensity_s, float *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetSunIntensity_s, float) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetMinWorldPos_s, Vector3 *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetMinWorldPos_s, Vector3) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetMaxWorldPos_s, Vector3 *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, SetMaxWorldPos_s, Vector3) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetTotalChunksInMemory_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, GetTotalRenderableChunksInMemory_s, int *) |
|
| ATTRIBUTE_METHOD1 (CBlockWorld, UseLinearTorchBrightness_s, bool) |
|
| DEFINE_SCRIPT_EVENT (CBlockWorld, BeforeLoadBlockRegion) |
|
| DEFINE_SCRIPT_EVENT (CBlockWorld, LoadBlockRegion) |
|
| DEFINE_SCRIPT_EVENT (CBlockWorld, UnLoadBlockRegion) |
|
| DEFINE_SCRIPT_EVENT (CBlockWorld, SaveRegionCallbackScript) |
| NPL script to be called when a given region is flushed to disk.
|
|
| DEFINE_SCRIPT_EVENT (CBlockWorld, GeneratorScript) |
|
int | OnBeforeLoadBlockRegion (int x, int y) |
| called before block region is about to be loaded. More...
|
|
int | OnLoadBlockRegion (int x, int y) |
| called when block region has just loaded. More...
|
|
int | OnUnLoadBlockRegion (int x, int y) |
| called when block region has just unloaded. More...
|
|
int | OnSaveBlockRegion (int x, int y) |
| called when block region has just saved. More...
|
|
CBlockLightGridBase & | GetLightGrid () |
| get light grid
|
|
virtual const std::string & | GetIdentifier () |
|
virtual void | SetIdentifier (const std::string &sID) |
|
virtual void | EnterWorld (const string &sWorldDir, float x, float y, float z) |
|
virtual void | LeaveWorld () |
|
void | ClearAllBlockTemplates () |
|
void | SetActiveChunkRadius (int nActiveChunkRadius=12) |
| how many chunk
|
|
void | UpdateAllActiveChunks () |
|
const ParaEngine::Int32x3 & | GetMinWorldPos () const |
| minimum world position. More...
|
|
void | SetMinWorldPos (const ParaEngine::Int32x3 &val) |
|
const ParaEngine::Int32x3 & | GetMaxWorldPos () const |
| maximum world position. More...
|
|
void | SetMaxWorldPos (const ParaEngine::Int32x3 &val) |
|
uint16_t | GetMaxCacheRegionCount () const |
|
void | SetMaxCacheRegionCount (uint16_t val) |
|
virtual void | SetLightCalculationStep (uint32 nTicks) |
| how many lighting to calculate per tick for the lighting thread. More...
|
|
virtual uint32 | GetLightCalculationStep () |
|
BlockRegion * | GetRegion (uint16_t x, uint16_t y, uint16_t z, uint16_t &rs_x, uint16_t &rs_y, uint16_t &rs_z) |
| get region object More...
|
|
BlockRegion * | GetRegion (uint16_t region_x, uint16_t region_z) |
|
int32_t | GetActiveChunkDim () |
|
int32_t | GetActiveChunkDimY () |
|
bool | IsInBlockWorld () |
|
void | SetRenderBlocks (bool bValue) |
| whether it is readonly
|
|
bool | IsRenderBlocks () |
| whether it is readonly
|
|
bool | IsUseAsyncLoadWorld () const |
| whether we will use async world loader. More...
|
|
void | SetUseAsyncLoadWorld (bool val) |
|
void | SetReadOnly (bool bValue) |
| whether it is readonly
|
|
bool | IsReadOnly () |
| whether it is readonly
|
|
bool | IsVisibleChunkDirty () const |
| if true, it will check dirty bit for all active chunks in the next the render framemove
|
|
void | SetVisibleChunkDirty (bool val) |
|
void | SetIsRemote (bool bValue) |
| whether it is a remote world. More...
|
|
bool | IsRemote () |
| whether it is a remote world
|
|
void | SetIsServerWorld (bool bValue) |
| whether it is a server world. More...
|
|
bool | IsServerWorld () |
| whether it is server world
|
|
bool | IsGroupByChunkBeforeTexture () const |
| if true, when rendering blocks, always group by chunk first and then by texture. More...
|
|
void | SetGroupByChunkBeforeTexture (bool val) |
|
ParaEngine::mutex & | GetBlockWorldMutex () |
| when some thread is accessing the block world. More...
|
|
void | LockWorld () |
| use scoped_lock where ever possible. More...
|
|
void | UnlockWorld () |
| Unlock mutex.
|
|
BlockReadWriteLock & | GetReadWriteLock () |
| get read/write locker of this world
|
|
bool | IsSaveLightMap () const |
| whether to save light map to disk. More...
|
|
void | SaveLightMap (bool val) |
|
void | SaveBlockTemplateData () |
|
void | LoadBlockTemplateData () |
|
void | SaveToFile (bool saveToTemp) |
|
CWorldInfo & | GetWorldInfo () |
| return world info
|
|
BlockTemplate * | RegisterTemplate (uint16_t id, uint32_t attFlag, uint16_t category_id) |
|
bool | SetBlockVisible (uint16_t templateId, bool value, bool bRefreshWorld=true) |
| return true if refresh world is required. More...
|
|
void | RefreshBlockTemplate (uint16_t templateId) |
| refresh light and other attributes for all instances of given block template. More...
|
|
uint32_t | SetBlockId (uint16_t x, uint16_t y, uint16_t z, uint32_t nBlockID) |
|
uint32_t | GetBlockId (uint16_t x, uint16_t y, uint16_t z) |
|
uint32_t | SetBlockData (uint16_t x, uint16_t y, uint16_t z, uint32_t nBlockData) |
|
uint32_t | GetBlockData (uint16_t x, uint16_t y, uint16_t z) |
|
BlockTemplate * | GetBlockTemplate (uint16_t id) |
|
BlockTemplate * | GetBlockTemplate (uint16_t x, uint16_t y, uint16_t z) |
|
BlockTemplate * | GetBlockTemplate (Uint16x3 &blockId_ws) |
|
bool | MatchTemplateAttribute (uint16_t templateId, BlockTemplate::BlockAttrubiteFlag flag) |
|
void | SetTemplateTexture (uint16_t id, const char *textureName) |
|
ChunkMaxHeight * | GetHighestBlock (uint16_t blockX_ws, uint16_t blockZ_ws) |
|
virtual void | GetMaxBlockHeightWatchingSky (uint16_t blockX_ws, uint16_t blockZ_ws, ChunkMaxHeight *pResult) |
|
void | RefreshAllLightsInColumn (uint16_t chunkX_ws, uint16_t chunkZ_ws) |
|
void | NotifyBlockHeightMapChanged (uint16_t blockIdX_ws, uint16_t blockIdZ_ws, ChunkMaxHeight &prevBlockHeight) |
|
BlockIndex | GetBlockIndex (uint16_t x, uint16_t y, uint16_t z, bool bCreateIfNotExist=true) |
| return the BlockChunk and the block index inside the chunk. More...
|
|
BlockChunk * | GetChunk (uint16_t x, uint16_t y, uint16_t z, bool bCreateIfNotExist=true) |
| get chunk by world coordinates
|
|
void | SetBlockTemplateId (float x, float y, float z, uint16_t templateId) |
|
void | SetBlockTemplateIdByIdx (uint16_t x, uint16_t y, uint16_t z, uint16_t templateId) |
|
uint16_t | GetBlockTemplateId (float x, float y, float z) |
|
uint16_t | GetBlockTemplateIdByIdx (uint16_t x, uint16_t y, uint16_t z) |
|
void | SetBlockUserData (float x, float y, float z, uint32_t data) |
|
void | SetBlockUserDataByIdx (uint16_t x, uint16_t y, uint16_t z, uint32_t data) |
|
uint32_t | GetBlockUserData (float x, float y, float z) |
|
uint32_t | GetBlockUserDataByIdx (uint16_t x, uint16_t y, uint16_t z) |
|
bool | IsObstructionBlock (uint16_t x, uint16_t y, uint16_t z) |
|
Block * | GetBlock (uint16_t x, uint16_t y, uint16_t z) |
|
Block * | GetUnlockBlock (uint16_t x, uint16_t y, uint16_t z) |
|
void | SetChunkDirty (Uint16x3 &chunkId_ws, bool isDirty) |
|
void | SetChunkLightDirty (Uint16x3 &chunkId_ws) |
|
void | SetChunkColumnTimeStamp (uint16_t x, uint16_t z, uint16_t nTimeStamp) |
| set chunk column time stamp. More...
|
|
int32_t | GetChunkColumnTimeStamp (uint16_t x, uint16_t z) |
| get the time stamp of for the given chunk column -1 means region not loaded yet, 0 means not available, 1 means loaded before
|
|
bool | DoChunksNearChunkExist (uint16_t x, uint16_t y, uint16_t z, uint16_t radius) |
| Checks if any of the chunks within radius blocks of the given block exist. More...
|
|
bool | CheckChunkColumnsExist (int minX, int minY, int minZ, int maxX, int maxY, int maxZ) |
| Checks between a min and max all the chunks in between actually exist. More...
|
|
bool | ChunkColumnExists (uint16_t chunkX, uint16_t chunkZ) |
| Returns whether a chunk exists at chunk coordinates x, y.
|
|
bool | IsChunkLocked (uint32 worldX, uint32 worldZ) |
| whether the chunk at the given world position is locked. More...
|
|
int32_t | GetBlocksInRegion (Uint16x3 &startChunk_ws, Uint16x3 &endChunk_ws, uint32_t matchType, const luabind::adl::object &result, uint32_t verticalSectionFilter=0) |
|
int | GetDirtyColumnCount () |
| get number of dirty chunk columns for light calculations
|
|
int | GetDirtyBlockCount () |
| get the number of remaining dirty blocks
|
|
bool | IsCubeModePicking () |
| ignore sub-block level physics during Pick() function. More...
|
|
void | SetCubeModePicking (bool bIsCubeModePicking) |
|
bool | Pick (const Vector3 &rayOrig, const Vector3 &dir, float length, PickResult &result, uint32_t filter=0xffffffff) |
| picking in block world
|
|
int | FindFirstBlock (uint16_t x, uint16_t y, uint16_t z, uint16_t nSide=4, uint32_t max_dist=32, uint32_t attrFilter=0xffffffff, int nCategoryID=-1) |
| find a block in the side direction that matched filter from block(x,y,z) this function can be used to check for free space upward or download More...
|
|
int | GetFirstBlock (uint16_t x, uint16_t y, uint16_t z, int nBlockId, uint16_t nSide=5, uint32_t max_dist=32) |
| get the y pos of the first block of nBlockID, start searching from x, y, z in the side direction More...
|
|
bool | RefreshChunkColumn (int16_t curChunkWX, int16_t curChunkWZ) |
| this function is called, when the entire column is loaded
|
|
bool | IsChunkColumnInActiveRange (int16_t curChunkWX, int16_t curChunkWZ) |
| is the chunk column in active chunk region. More...
|
|
bool | GetBlockBrightness (Uint16x3 &blockId_ws, uint8_t *brightness, int nSize=27, int nLightType=-1) |
| get light brightness of current and 26 nearby block More...
|
|
bool | GetBlockMeshBrightness (Uint16x3 &blockId_ws, uint8_t *brightness, int nLightType=2) |
| if the block in not solid, we will simply return the block's brightness. More...
|
|
float | GetBlockBrightnessReal (const Vector3 &vPos, float *pBrightness=NULL) |
| get the interpolated block brightness at the given position. More...
|
|
float | GetBlockBrightnessReal (Uint16x3 &blockId_ws, float *pBrightness=NULL) |
|
void | SetSunIntensity (float intensity) |
|
float | GetSunIntensity () |
|
void | SetLightBlockDirty (Uint16x3 &blockId_ws, bool isSunLight) |
|
LightData * | GetLightData (uint16_t x, uint16_t y, uint16_t z, bool bCreateIfNotExist=true) |
| get block light data by world coordinates
|
|
void | SuspendLightUpdate () |
|
int | GetNumOfLockedBlockRegion () |
| get the total number of locked bock regions. More...
|
|
int | GetTotalNumOfLoadedChunksInLockedBlockRegion () |
|
int | GetNumOfBlockRegion () |
|
void | ResumeLightUpdate () |
|
bool | IsLightUpdateSuspended () |
|
float | GetLightBrightnessFloat (uint8_t brightness) |
|
uint8_t | GetLightBrightnessInt (uint8_t brightness) |
|
float | GetLightBrightnessLinearFloat (uint8_t brightness) |
|
void | GenerateLightBrightnessTable (bool bUseLinearBrightness=false) |
| Creates the light to brightness table.
|
|
void | OnViewCenterMove (float viewCenterX, float viewCenterY, float viewCenterZ) |
|
void | SetRenderDist (int nValue) |
| max number of blocks to render from eye to farthest one
|
|
int | GetRenderDist () |
|
BlockRenderMethod | GetBlockRenderMethod () |
| get how blocks are preferred to be rendered. More...
|
|
virtual void | SetBlockRenderMethod (BlockRenderMethod method) |
| how blocks are preferred to be rendered. More...
|
|
void | GetCurrentCenterChunkId (Int16x3 &oResult) |
|
const Uint16x3 & | GetEyeBlockId () |
|
void | SetEyeBlockId (const Uint16x3 &eyePos) |
|
const Uint16x3 & | GetEyeChunkId () |
|
const Int16x3 | GetMinActiveChunkId () |
|
void | OnGenerateTerrain (int nRegionX, int nRegionY, int nChunkX=-1, int nChunkZ=-1) |
| this function is called when region does not have matching disk file. More...
|
|
void | SelectBlock (uint16_t x, uint16_t y, uint16_t z, int nGroupID=0) |
| hight light select block More...
|
|
void | DeselectBlock (uint16_t x, uint16_t y, uint16_t z, int nGroupID=0) |
|
virtual void | AddRenderTask (BlockRenderTask *pRenderTask) |
|
void | DeselectAllBlock (int nGroupID=-1) |
|
BlockRegion * | CreateGetRegion (uint16_t block_x, uint16_t block_y, uint16_t block_z) |
| load region at the given position. More...
|
|
BlockRegion * | CreateGetRegion (uint16_t region_x, uint16_t region_z) |
|
virtual void | ClearBlockRenderCache () |
| clear block render cache
|
|
virtual void | OnFrameMove () |
|
RenderableChunk * | GetRenderableChunk (const Int16x3 &chunkPos) |
|
bool | UnloadRegion (uint16_t block_x, uint16_t block_y, uint16_t block_z, bool bAutoSave=true) |
| unload region from memory. More...
|
|
void | ResetAllLight () |
|
| ATTRIBUTE_METHOD1 (IAttributeFields, GetName_s, const char **) |
|
| ATTRIBUTE_METHOD1 (IAttributeFields, SetName_s, const char *) |
|
| ATTRIBUTE_METHOD (IAttributeFields, PrintObject_s) |
|
| ATTRIBUTE_METHOD (IAttributeFields, AddRef_s) |
|
| ATTRIBUTE_METHOD1 (IAttributeFields, GetRefCount_s, int *) |
|
| ATTRIBUTE_METHOD1 (IAttributeFields, SetTime_s, int) |
|
| ATTRIBUTE_METHOD1 (IAttributeFields, GetTime_s, int *) |
|
| ATTRIBUTE_METHOD (IAttributeFields, Release_s) |
|
virtual bool | IsModified () |
| whether some of the fields are modified.It is up to the implementation class to provide this functionality if necessary. More...
|
|
virtual void | SetModified (bool bModified) |
| set whether any field has been modified. More...
|
|
virtual bool | ValidateFields () |
| validate all fields and return true if validation passed. More...
|
|
virtual string | GetValidationMessage () |
| get the recent validation message due to the most recent call to ValidateFields()
|
|
virtual bool | ResetField (int nFieldID) |
| Reset the field to its initial or default value. More...
|
|
virtual bool | InvokeEditor (int nFieldID, const std::string &sParameters) |
| Invoke an (external) editor for a given field. More...
|
|
virtual bool | AddChildAttributeObject (IAttributeFields *pChild, int nRowIndex=-1, int nColumnIndex=0) |
| add child object. More...
|
|
virtual void * | QueryObjectByName (const std::string &sObjectType) |
| convert to object of a given type. More...
|
|
virtual void * | QueryObject (int nObjectType) |
| convert to object of a given type. More...
|
|
virtual int | GetTime () |
| get the current local time in case it is animated in milli seconds frames. More...
|
|
virtual void | SetTime (int nTime) |
|
virtual CDynamicAttributeField * | GetDynamicField (const std::string &sName) |
| Get a dynamic field with a given name. More...
|
|
virtual CDynamicAttributeField * | GetDynamicField (int nIndex) |
| Get a dynamic field with a given index. More...
|
|
virtual const char * | GetDynamicFieldNameByIndex (int nIndex) |
| get field name by index
|
|
virtual int | GetDynamicFieldCount () |
| how many dynamic field this object currently have. More...
|
|
virtual int | SetDynamicField (const std::string &sName, const CVariable &value) |
| set a dynamic field with a given name. More...
|
|
virtual int | AddDynamicField (const std::string &sName, ATTRIBUTE_FIELDTYPE dwType) |
| add dynamic field and return field index
|
|
virtual void | RemoveAllDynamicFields () |
| remove all dynamic fields
|
|
virtual int | SaveDynamicFieldsToString (std::string &output) |
| save only text dynamic fields to fieldname = value text strings. More...
|
|
virtual int | LoadDynamicFieldsFromString (const std::string &input) |
| load only text dynamic fields from string More...
|
|
CAttributeClass * | GetAttributeClass () |
| get the main attribute class object. More...
|
|
void | PrintObject () |
| print the content of this object to a text file at temp/doc/[ClassName].txt. More...
|
|
virtual void | Clone (IObject *obj) const |
| Clone the object's contains to a pointer. More...
|
|
virtual IObject * | Clone () const |
| Clone the object's contains and return a pointer to the newly created object. More...
|
|
virtual bool | Equals (const IObject *obj) const |
| Compare the object with another object. More...
|
|
virtual const IType * | GetType () const |
|
virtual std::string | ToString () const |
|
WeakPtr_type & | GetWeakReference () |
| get weak reference object. More...
|
|
virtual int | ProcessObjectEvent (const ObjectEvent &event) |
| this function is only used to backward compatibility of ParaObject:AddEvent() function. More...
|
|
void | addref () const |
| add reference count of the object. More...
|
|
bool | delref () const |
| decrease reference count of the object. More...
|
|
int | GetRefCount () const |
| get the reference count
|
|
virtual int | Release () |
|
CRefCounted * | AddToAutoReleasePool () |
| addref and releases the ownership sometime soon automatically (usually at the end of the current frame). More...
|
|