50 lines
534 B
C
50 lines
534 B
C
#pragma once
|
|
struct HashTableEntry;
|
|
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;
|
|
};
|
|
|
|
struct Entity {
|
|
void* VMT;
|
|
|
|
};
|
|
|
|
struct HashTable {
|
|
uint32_t size;
|
|
HashTableEntry** chains;
|
|
};
|
|
|
|
struct HashTableEntry {
|
|
Entity* data;
|
|
const char* name;
|
|
HashTableEntry* next;
|
|
}; |