8 #include "ParaScriptingCommon.h" 9 #include "ParaScriptingGlobal.h" 42 static int GetTextureCount(
float x,
float y);
52 static void GetTexturesInCell(
float x,
float y,
const object& out);
60 static bool RemoveTextureInCell(
float x,
float y,
int nIndex);
73 static void GetTexture__(
ParaAssetObject* pOut,
float x,
float y,
int nIndex);
82 static bool ReplaceTexture(
float x,
float y,
int nIndex,
ParaAssetObject& TextureAsset);
83 static bool ReplaceTexture_(
float x,
float y,
int nIndex,
const object& sTextureAsset);
101 static float GetElevation(
float x,
float y);
108 static DWORD GetRegionValue(
const char* sLayerName,
float x,
float y);
117 static DWORD GetRegionValue4(
const char* sLayerName,
float x,
float y,
const char* argb);
120 static string GetTerrainOnloadScript(
float x,
float y);
122 static const char * GetTerrainOnloadScript__(
float x,
float y);
125 static string GetTerrainElevFile(
float x,
float y);
127 static const char* GetTerrainElevFile__(
float x,
float y);
134 static void SaveTerrain(
bool bHeightMap,
bool bTextures);
141 static void ReloadTerrain(
bool bHeightMap,
bool bTextures);
146 static void UpdateTerrain();
147 static void UpdateTerrain1(
bool bForceUpdate);
158 static void SnapPointToVertexGrid(
float x,
float y,
float* vertex_x,
float* vertex_y);
161 static float GetVertexSpacing();
177 static void Paint(
const char* detailTexture,
float brushRadius,
float brushIntensity,
float maxIntensity,
bool erase,
float x,
float y);
182 static void Paint_(
int nDetailTextureID,
float brushRadius,
float brushIntensity,
float maxIntensity,
bool erase,
float x,
float y);
194 static void DigCircleFlat(
float x,
float y,
float radius,
float fFlatPercentage,
float factor);
210 static void Flatten (
float x,
float y,
float radius,
int flatten_op,
float elevation,
float factor);
223 static void RadialScale (
float x,
float y,
float scale_factor,
float min_dist,
float max_dist,
float smooth_factor);
239 static void GaussianHill (
float x,
float y,
float radius,
float hscale,
float standard_deviation,
float smooth_factor);
247 static void Spherical (
float x,
float y,
float radius,
float offset);
263 static void Roughen_Smooth (
float x,
float y,
float radius,
bool roughen,
bool big_grid,
float factor);
271 static void Ramp(
float x1,
float y1,
float x2,
float y2,
float radius,
float borderpercentage,
float factor);
282 static void AddHeightField(
float x,
float y,
const char* filename,
int nSmoothPixels);
303 static void MergeHeightField(
float x,
float y,
const char* filename,
int mergeOperation=0,
float weight1=1.0,
float weight2=1.0,
int nSmoothPixels=7);
309 static void UpdateHoles(
float x,
float y);
317 static bool IsHole(
float x,
float y);
326 static void SetHole(
float x,
float y,
bool bIsHold);
329 static bool IsModified();
337 static void SetContentModified(
float x,
float y,
bool bIsModified);
359 static void SetContentModified4(
float x,
float y,
bool bIsModified, DWORD dwModifiedBits);
362 static void SetAllLoadedModified(
bool bIsModified, DWORD dwModifiedBits);
372 static void EnableLighting(
bool bEnable);
379 static void PaintTerrainData (
float x,
float y,
float radius,
unsigned int data,
unsigned int dataMask,
unsigned int bitOffset);
381 static uint32 GetTerrainData (
float x,
float y,uint32 dataMask,byte bitOffset);
383 static void SetVisibleDataMask(uint32 mask,byte bitOffset);
394 static void EnterBlockWorld(
float x,
float y,
float z);
398 static void LeaveBlockWorld();
400 static bool IsInBlockWorld();
402 static void SaveBlockWorld(
bool saveToTemp);
404 static void DeleteAllBlocks();
410 static void SetBlockTemplateId(
float x,
float y,
float z,uint16_t templateId);
412 static void SetBlockTemplateIdByIdx(uint16_t x,uint16_t y,uint16_t z,uint32_t templateId);
414 static uint32_t GetBlockTemplateId(
float x,
float y,
float z);
416 static uint32_t GetBlockTemplateIdByIdx(uint16_t x,uint16_t y,uint16_t z);
423 static void SetBlockUserData(
float x,
float y,
float z,uint32_t data);
425 static void SetBlockUserDataByIdx(uint16_t x,uint16_t y,uint16_t z,uint32_t data);
427 static uint32_t GetBlockUserData(
float x,
float y,
float z);
429 static uint32_t GetBlockUserDataByIdx(uint16_t x,uint16_t y,uint16_t z);
444 static object Pick(
float rayX,
float rayY,
float rayZ,
float dirX,
float dirY,
float dirZ,
float fMaxDistance,
const object& result,uint32_t filter=0xffffffff);
445 static object MousePick(
float fMaxDistance,
const object& result,uint32_t filter=0xffffffff);
450 static bool RegisterBlockTemplate(uint16_t templateId,
const object& params);
452 static void SetTemplateTexture(uint16_t templateId,
const char* fileName);
454 static void SetBlockWorldYOffset(
float offset);
460 static object GetBlocksInRegion(int32_t startChunkX,int32_t startChunkY,int32_t startChunkZ,int32_t endChunkX,int32_t endChunkY,int32_t endChunkZ,
461 uint32_t matchType,
const object& result);
465 static object GetVisibleChunkRegion(
const object& result);
467 static void SetBlockWorldSunIntensity(
float value);
474 static void SelectBlock(uint16_t x,uint16_t y,uint16_t z,
bool isSelect);
475 static void SelectBlock1(uint16_t x,uint16_t y,uint16_t z,
bool isSelect,
int nGroupID);
480 static void DeselectAllBlock1(
int nGroupID);
482 static void DeselectAllBlock();
487 static void SetDamagedBlock(uint16_t x,uint16_t y,uint16_t z);
491 static void SetDamageDegree(
float damagedDegree);
500 static 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);
504 static int GetFirstBlock(uint16_t x,uint16_t y,uint16_t z,
int nBlockId, uint16_t nSide = 4, uint32_t max_dist = 32);
509 static int32_t GetChunkColumnTimeStamp(uint32_t chunkX, uint32_t chunkZ);
513 static void SetChunkColumnTimeStamp(uint32_t chunkX, uint32_t chunkZ, uint32_t nTimeStamp);
518 static const std::string& GetMapChunkData(uint32_t chunkX, uint32_t chunkZ,
bool bIncludeInit, uint32_t verticalSectionFilter);
520 static object ApplyMapChunkData(uint32_t chunkX, uint32_t chunkZ, uint32_t verticalSectionFilter,
const std::string& chunkData,
const object& out);
523 static void GetBlockFullData(uint16_t x, uint16_t y, uint16_t z, uint16_t* pId, uint32_t* pUserData);
Definition: SceneObject.h:15
different physics engine has different winding order.
Definition: EventBinding.h:32
Definition: enum_maker.hpp:46
it represents an attribute object associated with an object.
Definition: ParaScriptingGlobal.h:458
for luabind, The main drawback of this approach is that the compilation time will increase for the fi...
Definition: luaSQLite.cpp:1971
it represents an asset entity.
Definition: ParaScriptingCommon.h:85