File size: 1,384 Bytes
7e9dc27 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | --[[
Project: SA Memory (Available from https://blast.hk/)
Developers: LUCHARE, FYP
Special thanks:
plugin-sdk (https://github.com/DK22Pac/plugin-sdk) for the structures and addresses.
Copyright (c) 2018 BlastHack.
]]
local shared = require 'SAMemory.shared'
shared.require 'CColSphere'
shared.require 'CColBox'
shared.require 'CColLine'
shared.require 'CColDisk'
shared.require 'CompressedVector'
shared.require 'CColTriangle'
shared.require 'CColTrianglePlane'
shared.ffi.cdef[[
typedef struct CCollisionData
{
unsigned short nNumSpheres;
unsigned short nNumBoxes;
unsigned short nNumTriangles;
unsigned char nNumLines;
struct
{
unsigned char bUsesDisks : 1;
unsigned char bNotEmpty : 1;
unsigned char b03 : 1;
unsigned char bHasFaceGroups : 1;
unsigned char bHasShadow : 1;
} nFlags;
CColSphere *pSpheres;
CColBox *pBoxes;
union
{
CColLine *pLines;
CColDisk *pDisks;
};
CompressedVector *pVertices;
CColTriangle *pTriangles;
CColTrianglePlane *pTrianglePlanes;
unsigned int nNumShadowTriangles;
unsigned int nNumShadowVertices;
CompressedVector *pShadowVertices;
CColTriangle *pShadowTriangles;
} CCollisionData;
]]
shared.validate_size('CCollisionData', 0x30)
|