ScrapHacks/ScrapHacks/ScrapHack/Structures.h

66 lines
724 B
C
Raw Normal View History

2019-02-28 16:50:52 +00:00
#pragma once
2019-09-02 19:44:17 +00:00
template <typename T>
struct HashTableEntry;
2019-09-02 19:44:17 +00:00
struct Vector3
{
2019-02-28 16:50:52 +00:00
float x;
float y;
float z;
};
2019-09-02 19:44:17 +00:00
struct Matrix3x3
{
2019-02-28 16:50:52 +00:00
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;
2019-09-02 19:44:17 +00:00
map<string, PyMethodDef *> methods;
2019-02-28 16:50:52 +00:00
};
2019-09-02 19:44:17 +00:00
struct Entity
{
void *vmt;
const char *name;
};
2019-09-02 19:44:17 +00:00
struct EntityList
{
const char *name;
void *unk_1;
void *unk_2;
const char *mod;
const char *func;
};
2019-09-02 19:44:17 +00:00
template <typename T>
struct HashTable
{
uint32_t size;
2019-09-02 19:44:17 +00:00
HashTableEntry<T> **chains;
};
2019-09-02 19:44:17 +00:00
template <typename T>
struct HashTableEntry
{
T *data;
const char *name;
HashTableEntry *next;
};