Skip to content

Commit

Permalink
Doc Upd
Browse files Browse the repository at this point in the history
  • Loading branch information
KionX committed Jul 18, 2022
1 parent 2a99999 commit 828138e
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 5 deletions.
15 changes: 10 additions & 5 deletions section/include/global.h
Expand Up @@ -3,7 +3,7 @@
GetClassNamePtr -> [[[Self]-4]+C]+8
GetParentClassNamePtr -> [[[[Self]-4]+24+1*4]]+8
TrueClassOffset -> -[[[Self]-4]+4]
TrueDataOffset -> -[[[Self]-4]+4]
ClassAncestors -> [[Self]-4]+24
Get debugging info about a Lua call:
Expand All @@ -27,10 +27,7 @@ const int g_EntityCategoryTypeInfo = 0x10C6E70;
const int g_CAiBrainTypeInfo = 0x10C6FA0;
const int g_CUIManager = 0x10A6450;
const int g_EngineStats = 0x10A67B8;

const int g_ExeVersion1 = 0x00876666;
const int g_ExeVersion2 = 0x0087612d;
const int g_ExeVersion3 = 0x004d3d40;
const int g_WRenViewport = 0x10C7C28;

const int ui_SelectTolerance = 0x0F57A90;
const int ui_ExtractSnapTolerance = 0x0F57A94;
Expand All @@ -51,6 +48,10 @@ const char d3d_WindowsCursor = 0x010A636E;

// Int const

const int g_ExeVersion1 = 0x00876666;
const int g_ExeVersion2 = 0x0087612d;
const int g_ExeVersion3 = 0x004d3d40;

const int ui_ProgressBarColor = 0x00F57BB8;

//Adress const
Expand Down Expand Up @@ -256,6 +257,10 @@ LuaObjectFinalize
00532380 CreateRProjectileBlueprint
0051B740 InitRProjectileBlueprint
005289D0 RegisterBlueprint(RRuleGameRules*, char* Category)
007FA230 CreateWRenViewport
007F66A0 InitWRenViewport
007EDFE0 GenerateRingCylinders
007EF5A0 RenderRings
00577890 InitSTIMap
005790E0 CreateCHeightField
0044FB90 GetTerrainHeight(float x, float z):int ecx
Expand Down
90 changes: 90 additions & 0 deletions section/include/moho.h
Expand Up @@ -18,6 +18,35 @@ struct luaFuncDescReg
void* ClassPtr; // C++ class type address. NULL if class none
};

struct vtable;
struct typeInfo
{ // 0x8 bytes
void* vtable;
int zero;
char* name;
};

struct classDesc
{ // 0x30+ bytes
// at 0x4
uint trueDataOffset; // subtraction
// at 0xC
void* typeInfo;
// at 0x20
void* beginParents; // +0x4
void* endParents; // -0x4
// at 0x28
classDesc* parents[];
//void* typeInfo;
};

struct vtable
{ // 0x8+ bytes
// at -0x4
void* classDesc;
void* methods[];
};

struct string
{ // 0x1c bytes
void* ptr1;
Expand Down Expand Up @@ -1189,3 +1218,64 @@ struct CNetUDPConnetor // : INetConnector
7 - Restart Requested
8 - Session Halted
*/

struct MapImager
{ // 0x14 bytes
void* vtable;
};

struct MeshThumbnailRenderer
{ // 0x3C bytes
void* vtable;
};

struct RangeRenderer
{ // 0x94 bytes
void* vtable;
};

struct VisionRenderer
{ // 0x78 bytes
void* vtable;
};

struct BoundaryRenderer
{ // 0x68 bytes
void* vtable;
};

struct Shadow
{ // 0x318 bytes
void* vtable;
};

struct Clutter
{ // 0x192C bytes
void* vtable;
};

struct Silhouette
{ // 0x74? bytes
void* vtable;
};

struct WRenViewport // : WD3DViewport
{ // 0x21A8 bytes
void* vtable;
// at 0x32C
MapImager mapImager;
// at 0x340
MeshThumbnailRenderer meshThumbnailRenderer;
// at 0x37C
RangeRenderer rangeRenderer;
// at 0x410
VisionRenderer visionRenderer;
// at 0x488
BoundaryRenderer boundaryRenderer;
// at 0x4F0
Shadow shadow;
// at 0x808
Clutter clutter;
// at 0x2134
Silhouette silhouette;
};

0 comments on commit 828138e

Please sign in to comment.