mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
convert_functions.py no longer hardcodes acceptable LOT_ values Added characters.h and surface_collision.h to convert_structs.py Prevented mod filenames with a slash in it from being considered acceptable Sanitized mod filenames when received from the server
41 lines
No EOL
627 B
C
41 lines
No EOL
627 B
C
#ifndef SMLUA_COBJECT_H
|
|
#define SMLUA_COBJECT_H
|
|
|
|
enum LuaValueType {
|
|
LVT_U8,
|
|
LVT_U16,
|
|
LVT_U32,
|
|
LVT_S8,
|
|
LVT_S16,
|
|
LVT_S32,
|
|
LVT_F32,
|
|
LVT_COBJECT,
|
|
LVT_COBJECT_P,
|
|
};
|
|
|
|
enum LuaObjectType {
|
|
LOT_NONE = 0,
|
|
LOT_VEC3S,
|
|
LOT_VEC3F,
|
|
LOT_MAX,
|
|
};
|
|
|
|
struct LuaObjectField {
|
|
const char* key;
|
|
enum LuaValueType valueType;
|
|
size_t valueOffset;
|
|
bool immutable;
|
|
u16 lot;
|
|
};
|
|
|
|
struct LuaObjectTable {
|
|
u16 lot;
|
|
struct LuaObjectField* fields;
|
|
u16 fieldCount;
|
|
};
|
|
|
|
bool smlua_valid_lot(u16 lot);
|
|
void smlua_cobject_init_globals(void);
|
|
void smlua_bind_cobject(void);
|
|
|
|
#endif |