ScrapHacks/ScrapHacks/ScrapHack/Structures.h

50 lines
534 B
C
Raw Normal View History

2019-02-28 16:50:52 +00:00
#pragma once
struct HashTableEntry;
2019-02-28 16:50:52 +00:00
struct Vector3 {
float x;
float y;
float z;
};
struct Matrix3x3 {
Vector3 a;
Vector3 b;
Vector3 c;
};
struct PyMethodDef
{
char *ml_name;
void *ml_meth;
int ml_flags;
char *ml_doc;
};
struct PyMod
{
char *name;
void *init_func;
};
struct Module
{
PyMod *mod;
map<string, PyMethodDef*> methods;
2019-02-28 16:50:52 +00:00
};
struct Entity {
void* VMT;
};
struct HashTable {
uint32_t size;
HashTableEntry** chains;
};
struct HashTableEntry {
Entity* data;
const char* name;
HashTableEntry* next;
};