|
|
|
@ -29,7 +29,6 @@ distribution.
|
|
|
|
|
#include "integers.h"
|
|
|
|
|
#include "DFTypes.h"
|
|
|
|
|
#include "modules/Materials.h"
|
|
|
|
|
#include "DFHackAPI_C.h"
|
|
|
|
|
|
|
|
|
|
using namespace DFHack;
|
|
|
|
|
|
|
|
|
@ -37,13 +36,19 @@ using namespace DFHack;
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int8_t* (*alloc_byte_buffer_callback)(uint32_t);
|
|
|
|
|
int16_t* (*alloc_short_buffer_callback)(uint32_t);
|
|
|
|
|
int32_t* (*alloc_int_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern int8_t* (*alloc_byte_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern int16_t* (*alloc_short_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern int32_t* (*alloc_int_buffer_callback)(uint32_t);
|
|
|
|
|
|
|
|
|
|
uint8_t* (*alloc_ubyte_buffer_callback)(uint32_t);
|
|
|
|
|
uint16_t* (*alloc_ushort_buffer_callback)(uint32_t);
|
|
|
|
|
uint32_t* (*alloc_uint_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern uint8_t* (*alloc_ubyte_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern uint16_t* (*alloc_ushort_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern uint32_t* (*alloc_uint_buffer_callback)(uint32_t);
|
|
|
|
|
|
|
|
|
|
DFHACK_EXPORT extern char* (*alloc_char_buffer_callback)(uint32_t);
|
|
|
|
|
|
|
|
|
|
DFHACK_EXPORT extern t_matgloss* (*alloc_matgloss_buffer_callback)(int);
|
|
|
|
|
DFHACK_EXPORT extern t_descriptor_color* (*alloc_descriptor_buffer_callback)(int);
|
|
|
|
|
DFHACK_EXPORT extern t_matglossOther* (*alloc_matgloss_other_buffer_callback)(int);
|
|
|
|
|
|
|
|
|
|
struct c_colormodifier
|
|
|
|
|
{
|
|
|
|
@ -52,9 +57,9 @@ struct c_colormodifier
|
|
|
|
|
uint32_t colorlistLength;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
c_colormodifier* (*alloc_empty_colormodifier_callback)(void);
|
|
|
|
|
c_colormodifier* (*alloc_colormodifier_callback)(const char*, uint32_t);
|
|
|
|
|
c_colormodifier* (*alloc_colormodifier_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern c_colormodifier* (*alloc_empty_colormodifier_callback)(void);
|
|
|
|
|
DFHACK_EXPORT extern c_colormodifier* (*alloc_colormodifier_callback)(const char*, uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern c_colormodifier* (*alloc_colormodifier_buffer_callback)(uint32_t);
|
|
|
|
|
|
|
|
|
|
struct c_creaturecaste
|
|
|
|
|
{
|
|
|
|
@ -70,9 +75,9 @@ struct c_creaturecaste
|
|
|
|
|
uint32_t bodypartLength;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
c_creaturecaste* (*alloc_empty_creaturecaste_callback)(void);
|
|
|
|
|
c_creaturecaste* (*alloc_creaturecaste_callback)(const char*, const char*, const char*, const char*, uint32_t, uint32_t);
|
|
|
|
|
c_creaturecaste* (*alloc_creaturecaste_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern c_creaturecaste* (*alloc_empty_creaturecaste_callback)(void);
|
|
|
|
|
DFHACK_EXPORT extern c_creaturecaste* (*alloc_creaturecaste_callback)(const char*, const char*, const char*, const char*, uint32_t, uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern c_creaturecaste* (*alloc_creaturecaste_buffer_callback)(uint32_t);
|
|
|
|
|
|
|
|
|
|
struct c_creaturetype
|
|
|
|
|
{
|
|
|
|
@ -94,9 +99,9 @@ struct c_creaturetype
|
|
|
|
|
} tilecolor;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
c_creaturetype* (*alloc_empty_creaturetype_callback)(void);
|
|
|
|
|
c_creaturetype* (*alloc_creaturetype_callback)(const char*, uint32_t, uint32_t, uint8_t, uint16_t, uint16_t, uint16_t);
|
|
|
|
|
c_creaturetype* (*alloc_creaturetype_buffer_callback)(uint32_t);
|
|
|
|
|
DFHACK_EXPORT extern c_creaturetype* (*alloc_empty_creaturetype_callback)(void);
|
|
|
|
|
DFHACK_EXPORT extern c_creaturetype* (*alloc_creaturetype_callback)(const char*, uint32_t, uint32_t, uint8_t, uint16_t, uint16_t, uint16_t);
|
|
|
|
|
DFHACK_EXPORT extern c_creaturetype* (*alloc_creaturetype_buffer_callback)(uint32_t);
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|