mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-02 17:52:49 -04:00
Decompile modelmgrAllocateSlots
This commit is contained in:
+5
-5
@@ -134,11 +134,11 @@ extern struct fireslot g_Fireslots[NUM_FIRESLOTS];
|
||||
extern struct casing g_Casings[20];
|
||||
extern struct boltbeam g_BoltBeams[8];
|
||||
extern struct lasersight g_LaserSights[4];
|
||||
extern struct model *var8009dd00;
|
||||
extern struct anim *var8009dd04;
|
||||
extern s32 var8009dd08;
|
||||
extern s32 var8009dd0c;
|
||||
extern struct var8009dd10 *var8009dd10[3];
|
||||
extern struct model *g_ModelSlots;
|
||||
extern struct anim *g_AnimSlots;
|
||||
extern s32 g_ModelNumObjs;
|
||||
extern s32 g_ModelNumChrs;
|
||||
extern struct modelrwdatabinding *g_ModelRwdataBindings[3];
|
||||
extern struct coord var8009dd20;
|
||||
extern f32 var8009dd2c;
|
||||
extern struct coord var8009dd30;
|
||||
|
||||
+8
-8
@@ -246,14 +246,14 @@ extern struct inventory_class invclass_default;
|
||||
extern struct weapon *g_Weapons[];
|
||||
extern u32 var800700ac;
|
||||
extern bool g_CasingsActive;
|
||||
extern s32 var800705a0;
|
||||
extern s32 var800705a4;
|
||||
extern bool var800705a8;
|
||||
extern s32 var800705ac;
|
||||
extern s32 var800705b0;
|
||||
extern s32 var800705b4;
|
||||
extern s32 var800705b8;
|
||||
extern s32 var800705bc;
|
||||
extern s32 g_MaxModels;
|
||||
extern s32 g_MaxAnims;
|
||||
extern bool g_ModelIsLvResetting;
|
||||
extern s32 g_ModelMostType1;
|
||||
extern s32 g_ModelMostType2;
|
||||
extern s32 g_ModelMostType3;
|
||||
extern s32 g_ModelMostModels;
|
||||
extern s32 g_ModelMostAnims;
|
||||
extern s32 g_ViRes;
|
||||
extern bool g_HiResEnabled;
|
||||
extern s32 var8007072c;
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
bool func0f0b28d0(struct model *model, struct modelfiledata *filedata);
|
||||
void func0f0b2904(void);
|
||||
struct model *modelInstantiate(struct modelfiledata *modelfiledata, bool arg1);
|
||||
struct model *modelInstantiateWithoutAnim(struct modelfiledata *modelfiledata);
|
||||
void modelFree(struct model *model);
|
||||
struct model *modelInstantiateWithAnim(struct modelfiledata *modelfiledata);
|
||||
void func0f0b32a0(struct model *model, struct modelnode *node, struct modelfiledata *headfiledata);
|
||||
struct anim *func0f0b32e4(void);
|
||||
void animTurnOff(struct anim *anim);
|
||||
bool modelmgrCanSlotFitRwdata(struct model *modelslot, struct modelfiledata *filedata);
|
||||
void modelmgrPrintCounts(void);
|
||||
struct model *modelmgrInstantiateModel(struct modelfiledata *modelfiledata, bool arg1);
|
||||
struct model *modelmgrInstantiateModelWithoutAnim(struct modelfiledata *modelfiledata);
|
||||
void modelmgrFreeModel(struct model *model);
|
||||
struct model *modelmgrInstantiateModelWithAnim(struct modelfiledata *modelfiledata);
|
||||
void modelmgr0f0b32a0(struct model *model, struct modelnode *node, struct modelfiledata *headfiledata);
|
||||
struct anim *modelmgrInstantiateAnim(void);
|
||||
void modelmgrFreeAnim(struct anim *anim);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
void func0f011110(void);
|
||||
void func0f011124(bool value);
|
||||
void func0f011130(s32 arg0, s32 numchrs);
|
||||
bool weaponLoadProjectileModels(s32 weaponnum);
|
||||
void modelmgrReset(void);
|
||||
void modelmgrSetLvResetting(bool value);
|
||||
void modelmgrAllocateSlots(s32 numobjs, s32 numchrs);
|
||||
bool modelmgrLoadProjectileModeldefs(s32 weaponnum);
|
||||
void playerInitEyespy(void);
|
||||
void playerReset(void);
|
||||
|
||||
|
||||
+2
-2
@@ -584,7 +584,7 @@ struct modelfiledata {
|
||||
struct model {
|
||||
/*0x00*/ u8 unk00;
|
||||
/*0x01*/ u8 unk01;
|
||||
/*0x02*/ s16 unk02;
|
||||
/*0x02*/ s16 rwdatalen; // in words
|
||||
/*0x04*/
|
||||
union {
|
||||
struct chrdata *chr;
|
||||
@@ -6335,7 +6335,7 @@ struct hovtype {
|
||||
/*0x30*/ f32 unk30;
|
||||
};
|
||||
|
||||
struct var8009dd10 {
|
||||
struct modelrwdatabinding {
|
||||
struct model *model;
|
||||
void *rwdata;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user