2020-09-15 08:10:38 +02:00
|
|
|
#pragma once
|
|
|
|
#include <d3d11.h>
|
|
|
|
#include <SimpleMath.h>
|
|
|
|
#include <Objects\objectslist.h>
|
|
|
|
#include <array>
|
|
|
|
#include <unordered_map>
|
|
|
|
struct ITEM_INFO;
|
2021-08-20 05:25:51 +02:00
|
|
|
namespace ten::Effects{
|
2020-09-15 08:10:38 +02:00
|
|
|
struct SimpleParticle {
|
|
|
|
DirectX::SimpleMath::Vector3 worldPosition;
|
|
|
|
float size;
|
|
|
|
float age;
|
|
|
|
float ageRate;
|
|
|
|
float life;
|
|
|
|
int room;
|
|
|
|
unsigned int sprite;
|
|
|
|
GAME_OBJECT_ID sequence;
|
|
|
|
bool active;
|
|
|
|
};
|
|
|
|
extern std::array<SimpleParticle, 15> simpleParticles;
|
|
|
|
|
|
|
|
SimpleParticle& getFreeSimpleParticle();
|
|
|
|
void TriggerSnowmobileSnow(ITEM_INFO* snowMobile);
|
|
|
|
void TriggerSpeedboatFoam(ITEM_INFO* boat);
|
|
|
|
void updateSimpleParticles();
|
|
|
|
}
|