mirror of
https://github.com/k4zmu2a/SpaceCadetPinball.git
synced 2024-12-21 13:22:20 -05:00
5e94b5b513
Placeholders for T piball component classes.
75 lines
1.7 KiB
C++
75 lines
1.7 KiB
C++
#pragma once
|
|
|
|
|
|
struct datFileStruct;
|
|
|
|
struct errorMsg
|
|
{
|
|
int Code;
|
|
const char* Message;
|
|
};
|
|
|
|
struct soundListStruct
|
|
{
|
|
char* WavePtr;
|
|
int GroupIndex;
|
|
int Loaded;
|
|
float Volume;
|
|
char* PtrToSmth;
|
|
};
|
|
|
|
struct __declspec(align(4)) visualKickerStruct
|
|
{
|
|
float Unknown1F;
|
|
float Unknown2F;
|
|
float Unknown3F;
|
|
float Unknown4F;
|
|
float Unknown5F;
|
|
float Unknown6F;
|
|
float Unknown7F;
|
|
int SoundIndex;
|
|
};
|
|
|
|
|
|
struct __declspec(align(4)) visualStruct
|
|
{
|
|
float Unknown1F;
|
|
float Unknown2F;
|
|
int FloatArrSizeDiv8Sub2;
|
|
float* FloatArr;
|
|
int SoundIndex2;
|
|
visualKickerStruct Kicker;
|
|
int Unknown14Flag;
|
|
int SoundIndex4;
|
|
int SoundIndex3;
|
|
char* Bitmap8;
|
|
char* Bitmap16;
|
|
};
|
|
|
|
|
|
class loader
|
|
{
|
|
public:
|
|
static int error(int errorCode, int captionCode);
|
|
static void default_vsi(visualStruct* visual);
|
|
static int get_sound_id(int groupIndex);
|
|
static void unload();
|
|
static void loadfrom(datFileStruct* datFile);
|
|
static int query_handle(LPCSTR lpString);
|
|
static short query_visual_states(int groupIndex);
|
|
static int material(int groupIndex, visualStruct* visual);
|
|
static int kicker(int groupIndex, visualKickerStruct* kicker);
|
|
static int state_id(int groupIndex, int groupIndexOffset);
|
|
static int query_visual(int groupIndex, int groupIndexOffset, visualStruct* visual);
|
|
static char* query_name(int groupIndex);
|
|
static float* query_float_attribute(int groupIndex, int groupIndexOffset, int firstValue);
|
|
static __int16* query_iattribute(int groupIndex, int firstValue, int* arraySize);
|
|
static double play_sound(int soundIndex);
|
|
static datFileStruct* loader_table;
|
|
private:
|
|
static errorMsg loader_errors[];
|
|
static datFileStruct* sound_record_table;
|
|
static int sound_count;
|
|
static int loader_sound_count;
|
|
static soundListStruct sound_list[65];
|
|
};
|