mirror of
https://github.com/halpz/re3.git
synced 2025-06-27 03:06:17 +00:00
first part of CFileLoader
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
enum {
|
||||
EFFECT_LIGHT,
|
||||
EFFECT_PARTICLE,
|
||||
EFFECT_ATTRACTOR
|
||||
};
|
||||
|
||||
class C2dEffect
|
||||
{
|
||||
public:
|
||||
@ -7,26 +13,26 @@ public:
|
||||
float size;
|
||||
float innerRange;
|
||||
uint8 flash;
|
||||
uint8 wet;
|
||||
uint8 flare;
|
||||
uint8 shadowIntens;
|
||||
uint8 flag;
|
||||
uint8 roadReflection;
|
||||
uint8 flareType;
|
||||
uint8 shadowIntensity;
|
||||
uint8 flags;
|
||||
RwTexture *corona;
|
||||
RwTexture *shadow;
|
||||
};
|
||||
struct Particle {
|
||||
int particleType;
|
||||
float dir[3];
|
||||
CVector dir;
|
||||
float scale;
|
||||
};
|
||||
struct Attractor {
|
||||
CVector dir;
|
||||
uint8 flag;
|
||||
uint8 flags;
|
||||
uint8 probability;
|
||||
};
|
||||
|
||||
CVector pos;
|
||||
RwRGBA col;
|
||||
CRGBA col;
|
||||
uint8 type;
|
||||
union {
|
||||
Light light;
|
||||
@ -35,5 +41,13 @@ public:
|
||||
};
|
||||
|
||||
C2dEffect(void) {}
|
||||
void Shutdown(void){
|
||||
if(type == 0){ // TODO: enum
|
||||
if(light.corona)
|
||||
RwTextureDestroy(light.corona);
|
||||
if(light.shadow)
|
||||
RwTextureDestroy(light.shadow);
|
||||
}
|
||||
}
|
||||
};
|
||||
static_assert(sizeof(C2dEffect) == 0x34, "C2dEffect: error");
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "main.h"
|
||||
#include "General.h"
|
||||
#include "TxdStore.h"
|
||||
#include "Camera.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "main.h"
|
||||
#include "FileMgr.h"
|
||||
#include "ParticleMgr.h"
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "main.h"
|
||||
#include "Lights.h"
|
||||
#include "Camera.h"
|
||||
#include "Weather.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "main.h"
|
||||
#include "Lights.h"
|
||||
#include "ModelInfo.h"
|
||||
#include "Treadable.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "main.h"
|
||||
#include "Draw.h"
|
||||
#include "Camera.h"
|
||||
#include "Sprite.h"
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "common.h"
|
||||
#include "patcher.h"
|
||||
#include "main.h"
|
||||
#include "Draw.h"
|
||||
#include "Camera.h"
|
||||
#include "Sprite2d.h"
|
||||
|
Reference in New Issue
Block a user