|
| cMapPatch (UID_t rid, cMapPatch *pParentLOD, MAP_METERI_t x, MAP_METERI_t y, MAP_LOD_TYPE eLod) |
|
virtual | ~cMapPatch (void) |
|
virtual HRESULT | s_LoadStaticSection (cScriptSection *pScriptSection=nullptr)=0 |
|
virtual cMapBase * | get_MapBase () const =0 |
|
| STDMETHOD_ (XOBJTID_t, get_XObjTypeId)() const |
|
bool | isChannelLoaded (MAP_CHANNEL_t wChannel) const |
|
bool | isChannelDirty (MAP_CHANNEL_t wChannel) const |
|
void | addChannelLoaded (MAP_CHANNEL_t wChannel) |
|
void | addChannelDirty (MAP_CHANNEL_t wChannel) |
|
void | clearChannelDirty (MAP_CHANNEL_t wChannel) |
|
void | addChannelDirtyR (MAP_CHANNEL_t wChannel) |
|
bool | isSkirtChild () const |
|
virtual HRESULT | DisposeThis () |
| utility More...
|
|
| STDMETHOD_ (cString, get_Name)() const |
|
StrLen_t | GetNameFormat (char *pszName, bool bDir) const |
|
cStringF | GetFilePath (const FILECHAR_t *pszPostfix) const |
|
cMapPatchPtr | LoadPatchNeighbor (int dnx, int dny, MAP_CHANNEL_t uLoadChannels) const |
|
MAP_METERI_t | get_ScaleXY () const |
|
MAP_METERI_t | get_SizeXY () const |
|
MAP_METERI_t | get_URX () const |
|
MAP_METERI_t | get_URY () const |
|
void | GetURPoint (cPoint3f &ptw) const |
|
void | GetCenterPoint (cPoint3f &ptw) const |
|
void | GetURPPoint (cPoint2i &pt) const |
|
void | GetURPoint (cVector3f &vPt) const |
|
void | GetCenterPoint (cVector3f &vPt) const |
|
bool | isPointInPatch (MAP_METERI_t x, MAP_METERI_t y) const |
|
bool | isPointInPatch (const cVector3f &vPt) const |
|
void | GetPatchRect (cRectI &rect) const |
|
void | GetPatchRect (cRectf &rect) const |
|
void | CvtPatchToWorld (const cVector3f &vIn, cPoint3f &ptWOut) const |
|
cMapPatchPtr | get_ParentPatch () const |
|
cMapPatchPtr | GetChildPatch (int rx8, int ry8, MAP_CHANNEL_t uLoadFlags) const |
|
MAP_HEIGHT_t * | GetHPtr (MAP_PATCH_POINT_t x, MAP_PATCH_POINT_t y) |
|
MAP_HEIGHT_t | GetH (MAP_PATCH_POINT_t x, MAP_PATCH_POINT_t y) const |
|
bool | SetH (MAP_PATCH_POINT_t x, MAP_PATCH_POINT_t y, MAP_HEIGHT_t h) |
|
MAP_METERf_t | GetHX (float x, float y) |
|
bool | SetHX (float x, float y, MAP_METERf_t fHeight) |
|
MAP_METERf_t | GetHeightX (float x, float y) |
|
bool | SetHeightX (float x, float y, MAP_METERf_t fHeight) |
|
float | GetNormalP (float x, float y, cVector3f &vNorm) |
|
GINTERSECT_TYPE | GetHeightRayContactSegment (const cPoint3f &ptW1, const cVector3f &vDir, cVector3f &vPos1, cVector3f &vPos2, float fMaxRange) |
|
bool | GetHeightRayContact2 (cVector3f &vContact, const cVector3f &vPos1, const cVector3f &vPos2) |
|
MAP_METERf_t | get_WaterLevel () const |
|
virtual void | put_WaterLevel (MAP_METERf_t fWaterLevel) |
|
MAP_METERf_t | GetWaterLevelX (float x, float y) const |
|
MAP_TERRAIN_TYPE | GetTerrainType (const cPoint3f &pt, MAP_METERf_t fCharHeight, cVector3f *pvNorm, MAP_METERf_t *pfGroundLevel=nullptr, MAP_METERf_t *pfWaterLevel=nullptr) |
|
HRESULT | s_Invoke_Save (const cVariant &vArgs, cVariant &vValRet, cScriptContext *pContext) |
|
HRESULT | s_Invoke_Reload (const cVariant &vArgs, cVariant &vValRet, cScriptContext *pContext) |
|
HRESULT | s_Invoke_HeightUpdateSector (const cVariant &vArgs, cVariant &vValRet, cScriptContext *pContext) |
|
HRESULT | s_Invoke_HeightChange (const cVariant &vArgs, cVariant &vValRet, cScriptContext *pContext) |
|
HRESULT | s_Invoke_HeightUpdateSkirt (const cVariant &vArgs, cVariant &vValRet, cScriptContext *pContext) |
|
STDMETHOD() | s_PropPut (const cScriptableProp *pProp, const cVariant &vVal) |
|
STDMETHOD() | s_PropGet (const cScriptableProp *pProp, OUT cVariant &vValRet) |
|
STDMETHOD() | s_Invoke (const cScriptableMethod *pMethod, const cVariant &vArgs, cVariant &vValRet) |
|
virtual HRESULT | LoadXObject () |
|
virtual void | UnloadXObject () |
|
virtual HRESULT | ReloadXObject () |
|
virtual HRESULT | SaveXObject () |
|
virtual HRESULT | LoadChannels (MAP_CHANNEL_t uLoadFlags) |
|
virtual void | UnloadChannels (MAP_CHANNEL_t uLoadFlags) |
|
virtual HRESULT | WriteChannels (MAP_CHANNEL_t uWriteFlags, bool bCheckParent=true) |
|
HRESULT | HeightsImageWrite (bool bCheckParent=true) |
|
bool | HeightsImageLoad () |
|
bool | HeightsImageLock (bool bWrite) |
|
void | HeightsImageUnlock () |
|
void | HeightsAddRandom (float fScaler) |
|
void | HeightsGenerateRandom () |
|
bool | HeightsUpdateFromParent (bool bDoSkirt, bool bUpdate) |
|
bool | HeightsUpdateFromChildren (bool bDoSkirt, bool bUpdate) |
|
bool | HeightsUpdateChildren (bool bDoSkirt, bool bUpdate) |
|
bool | HeightsUpdateParent (bool bDoSkirt, bool bUpdate) |
|
bool | HeightsMakeSectorFromBlocks (bool bDoSkirt=true, bool bUpdate=false) |
|
bool | HeightsMakeBlockFromSector (bool bDoSkirt=true, bool bUpdate=false) |
|
bool | HeightsSkirtUpdate (bool bAllOrNothing, bool bChildren) |
|
void | HeightsSkirtCheck (bool bChanges) |
|
void | HeightsOffset (float fOffset, bool bUpdate) |
|
bool | NormalMap_Build (D3DCOLOR normalMap[(128+1)][(128+1)]) |
|
STDMETHOD() | s_WriteProps (IScriptableSetter ®) |
|
bool | s_LoadPatch () |
|
virtual HRESULT | UpdateChanges () |
|
HRESULT | SurfaceMapLoad () |
|
HRESULT | SurfaceMapWrite () |
|
size_t | SurfaceAllocateMap (bool bInit) |
|
MAP_SURFACE_ID_t | GetSurfacePtInt (MAP_METERI_t px, MAP_METERI_t py) |
|
bool | SurfacePtNoUpdate (int px, int py, MAP_SURFACE_ID_t eSurfaceID) |
|
bool | SetSurfacePtInt (int px, int py, MAP_SURFACE_ID_t eSurfaceID) |
|
MAP_SURFACE_ID_t | GetSurfacePt (MAP_METERI_t x, MAP_METERI_t y) |
|
bool | SetSurfacePt (MAP_METERI_t x, MAP_METERI_t y, MAP_SURFACE_ID_t eSurfaceID) |
|
template<class _TYPE > |
void | WorldToPatch (_TYPE &x, _TYPE &y) |
|
| CSCRIPT_CLASS_DEF1 (MapPatch, cXObjDef) |
|
virtual cScriptableInterfaceDefPtr _stdcall | get_ScriptInterfaceDef () const |
|
| cXObjDef (UID_t rid, cAtomRef aSymName) |
|
virtual | ~cXObjDef () |
|
STDMETHOD() | SetObjStateLoaded () |
| extra cleanup at the end of the load. More...
|
|
bool | hasSymName () const noexcept |
| Get the SYMNAME of the resource item. (Used for saving,scripting) may be number or name. More...
|
|
cAtomRef | get_SymNameA () const |
|
| STDMETHOD_ (cStringA, get_SymName)() const override |
|
STDMETHOD() | put_SymName (cAtomRef aSymName, bool bOverwrite=false) override |
|
HRESULT | put_SymName2 (cAtomRef aSymName) |
|
| STDMETHOD_ (cString, get_Name)() const override |
|
virtual cString | get_Description () const |
|
virtual void | put_Description (cString sDescription) |
|
virtual cString | get_DescriptionFull () const |
|
virtual bool | isResourceLoaded () const |
|
virtual void | CopyXObject (const cXObjDef *pDef) |
|
virtual int | get_BaseRefCount () const override |
|
STDMETHOD() | s_PropPut (const cScriptableProp *pProp, const cVariant &vVal) override |
|
STDMETHOD() | s_PropGet (const cScriptableProp *pProp, OUT cVariant &vValRet) override |
|
STDMETHOD() | s_Invoke (const cScriptableMethod *pMethod, const cVariant &vArgs, OUT cVariant &vValRet) override |
|
STDMETHOD() | s_WriteProps (IScriptableSetter ®) override |
|
virtual size_t | GetHeapStats (OUT ITERATE_t &iAllocCount) const override |
| allocs for all children. does NOT include sizeof(*this) More...
|
|
| cXObject (UID_t nUID=cUID::k_CLEAR, cXObjDef *pBaseDef=nullptr) |
|
virtual | ~cXObject () |
|
virtual bool | isValidCheck () const noexcept override |
|
| STDMETHOD_ (XOBJTID_t, get_XObjTypeId)() const |
|
const ATOMCHAR_t * | get_XObjTypeName () const |
|
bool | isValidUID () const noexcept |
|
UID_t | get_UIDValue () const noexcept |
|
UID_t | get_HashCode () const noexcept |
|
| STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept override |
|
void | put_UIDValuePrivate (UID_t dwIndex) |
|
| STDMETHOD_ (void, put_UIDValue)(UID_t dwIndex) |
|
| STDMETHOD_ (cString, get_Name)() const override |
|
STDMETHOD() | put_Name (cString sName) |
|
| STDMETHOD_ (cString, get_NameDeco)() const |
|
| STDMETHOD_ (cStringA, get_SymName)() const override |
|
STDMETHOD() | put_SymName (cAtomRef aSymName, bool bOverwrite=false) |
|
HRESULT | put_SymName2 (cAtomRef aSymName) |
|
cXObjDef * | get_BaseDef () const |
|
virtual bool | put_BaseDef (cXObjDef *pDef) |
|
| STDMETHOD_ (cAtomRef, get_BaseSymNameA)() const |
| shortcut for symbolic name for get_BaseDef() More...
|
|
virtual cRefPtr< cXObject > | get_ContainerObject () const |
|
virtual cVariant | get_ContainerVar () const |
|
STDMETHOD() | put_ContainerVar (const cVariant &vVal) |
|
bool | isMyContainer (const cXObject *pObjParent) const |
|
void | InitObjState () |
|
XObjState_TYPE | get_ObjState () const noexcept |
|
bool | put_ObjState (XObjState_TYPE eObjState) |
|
bool | isObjStateLoading () const noexcept |
|
bool | isObjStateLoading1 () const noexcept |
|
bool | isObjStateLoaded () const noexcept |
|
bool | isObjStateModified () const noexcept |
|
bool | isObjStateDisposed () const noexcept |
|
bool | isObjStateBad () const noexcept |
|
STDMETHOD() | SetObjStateLoaded () |
| extra cleanup at the end of the load. More...
|
|
void | SetObjStateBad () |
|
void | SetObjStateModified () |
|
void | ClearObjStateModified () |
|
const cTimeInt & | get_TimeSaved () const noexcept |
|
void | put_TimeSaved (cTimeInt timeSaved) |
|
void | UpdateTimeSaved () |
|
virtual cVarTuplePtr | FindTagA (cAtomRef aTagName) const |
| extra Properties/Tags More...
|
|
cVarTuplePtr | FindTag (const ATOMCHAR_t *pszTagName) const |
|
void | s_WritePropsTags (IScriptableSetter &Update) |
|
STDMETHOD() | s_PropPut (const cScriptableProp *pProp, const cVariant &vVal) override |
|
STDMETHOD() | s_PropGet (const cScriptableProp *pProp, OUT cVariant &vValRet) override |
|
STDMETHOD() | s_Invoke (const cScriptableMethod *pMethod, const cVariant &vArgs, OUT cVariant &vValRet) override |
|
STDMETHOD() | s_GetByName (const ATOMCHAR_t *pszPropName, OUT cVariant &rvValRet) override |
|
STDMETHOD() | s_TagPut (const ATOMCHAR_t *pszTagName, const cVariant &vValSet) |
|
STDMETHOD() | s_TagGet (const ATOMCHAR_t *pszTagName, OUT cVariant &vValRet) |
|
STDMETHOD() | s_LoadProps (IScriptableEnumerator &rProps) |
|
STDMETHOD() | s_EventSinkAdd (cXObjDef *pXObjDef, bool bRemove=false) |
|
cStringA | s_PropGetDumpStr (const cScriptableProp *pProp, XOBJ_DUMP_MASK_t uFlags=0) |
| Enumerate methods and props. reflection/introspection. More...
|
|
HRESULT | s_DumpKeys (cStreamOutput &rout, XOBJ_DUMP_MASK_t uFlags, const cScriptableProp *const *ppProps, ITERATE_t iQty) |
|
HRESULT | s_DumpHelp (cStreamOutput &rout, const cVariant &vArgs) |
|
virtual XOBJ_WEIRD_t | IsWeird () const |
|
virtual XOBJ_WEIRD_t | FixWeird () |
|
| IUNKNOWN_DISAMBIG_R (cThreadLockableRef) |
|
STDMETHOD() | QueryInterface (const IID &riid, void **ppvObject) override |
|
virtual | ~cScriptableObj () |
|
| STDMETHOD_ (cScriptableInterfaceDefPtr, get_ScriptInterfaceDef)() const |
|
STDMETHOD() | s_PropGet (const cScriptableProp *pProp, OUT cVariant &vValRet) override |
|
STDMETHOD() | s_PropPut (const cScriptableProp *pProp, const cVariant &vVal) override |
|
STDMETHOD() | s_Invoke (const cScriptableMethod *pMethod, const cVariant &vArgs, OUT cVariant &vValRet) override |
|
const cScriptableProp * | FindPropStr (const ATOMCHAR_t *pszPropName) const |
|
const cScriptableMethod * | FindMethodStr (const ATOMCHAR_t *pszPropName) const |
|
HRESULT | s_InvokeKey (const ATOMCHAR_t *pszMethodKey, const cVariant &vArgs, OUT cVariant &vValRet) |
|
| STDMETHOD_ (cVariant, s_Exec)(const ATOMCHAR_t *pszMethodKey |
|
STDMETHOD() | s_GetEnum (ITERATE_t i, OUT cStringA &rsPropName, OUT cVariant &rvValRet) override |
|
STDMETHOD() | s_GetByName (const ATOMCHAR_t *pszPropName, OUT cVariant &rvValRet) override |
|
STDMETHOD() | s_Put (const ATOMCHAR_t *pszPropName, const cVariant &vValSet) override |
|
void | s_LoadPropsCommandLine (cAppArgs &args) |
|
HRESULT | s_LoadPropsBase (IScriptableEnumerator &rProps) |
|
HRESULT | s_LoadPropVar (const ATOMCHAR_t *pszPropName, const cVariant &vVal) |
|
HRESULT | s_WritePropNULL (IScriptableSetter &s, const cScriptableProp *pProp) |
|
HRESULT | s_WriteProp (IScriptableSetter &s, const cScriptableProp *pProp) |
|
HRESULT | s_WritePropsClass (IScriptableSetter &s, const cScriptableInterfaceDef *pClass) |
|
HRESULT | s_WritePropsArray (IScriptableSetter &s, const cScriptableProp *pProps, IScriptableObj *pDefaultSkip=nullptr) |
|
STDMETHOD() | s_WriteProps (IScriptableSetter &s) |
|
| STDMETHOD_ (cVariant, s_Get)(const ATOMCHAR_t *pszPropName) |
|
cVariant | s_Get (const cScriptableProp &rProp) |
|
| STDMETHOD_ (cString, s_GetStr)(const ATOMCHAR_t *pszPropName) |
|
| STDMETHOD_ (float, s_GetFloat)(const ATOMCHAR_t *pszPropName) |
|
STDMETHOD() | GetTypeInfoCount (UINT *pctinfo) |
|
| cThreadLockableRef (int iStaticRefCount=0) noexcept |
|
virtual | ~cThreadLockableRef () |
|
virtual void | onThreadLockFail (TIMESYSD_t dwWaitMS) |
|
| cRefBase (int iRefCount=0) noexcept |
|
virtual | ~cRefBase () |
|
int | get_RefCount () const noexcept |
|
HASHCODE_t | get_HashCode () const noexcept |
|
| STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept |
|
virtual void | onFinalRelease () |
|
bool | isValidObj () const noexcept |
|
| STDMETHOD_ (ULONG, AddRef)(void) override |
|
| STDMETHOD_ (ULONG, Release)(void) override |
|
STDMETHOD() | QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override |
|
void | IncRefCount () |
|
void | DecRefCount () |
|
bool | isStaticConstruct () const noexcept |
|
void | StaticConstruct () |
|
void | StaticDestruct () |
|
bool | isDestructing () noexcept |
|
void | SetDestructing () |
|
THREADID_t | get_ThreadLockOwner () const |
|
virtual | ~CObject () |
|
virtual void | AssertValid () const |
| < memory allocation and structure definitions are valid. More...
|
|
virtual void | Serialize (cArchive &a) |
|
| cHeapObject () |
|
virtual | ~cHeapObject () |
|
bool | IsValidInsideN (INT_PTR index) const |
|
bool | IsValidInsidePtr (void const *pTest) const |
|
virtual size_t | GetHeapStatsThis (OUT ITERATE_t &iAllocCount) const |
|
A variably sized square area of the map. AKA Chunk. The base map Patch class overloaded for the server, map editor and client size based on MAP_LOD_TYPE = (Zone (64K), Oct (8192), Sector (1024), Block (128)) Just load/save the patch data. Don't worry about rendering it here. The patch is part of the LOD of the map. It has no real properties of its own so is NOT cXObject based.