1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/********************************************************************
*
*	File:		fsCParticleCloudEmitterComponent.h
*
*	Purpose:	A component which holds a ParticleEmitter.
*
*********************************************************************/

#ifndef fsCParticleCloudEmitterComponenthdr
#define fsCParticleCloudEmitterComponenthdr

#include <fsCore/src/fsCUniqueId.h>
#include "fsCParticleEmitterComponent.h"


class fsCParticleCloudEmitterComponent : public fsCParticleEmitterComponent
{
	friend class fsCComponentFactory;

public:

	static const fsStr mEntityPrefix;
	static const fsCUniqueId mTypeId;

protected:

	static fsIComponent* create(fsCEntity* pParent);

	void particelDataLoadDo(const fsCResourceName& pFileName) override;

	fsCParticleCloudEmitterComponent(fsCEntity* pParent);
	virtual ~fsCParticleCloudEmitterComponent();<--- Destructor in derived class

private:

	fsCResourceName spawnCloudImageFilenameGet(const fsCResourceName& pParticleFilename);

	fsStr levelCloudImageFilenameGet(const fsCResourceName& pParticleFilename);
	fsStr menuCloudImageFilenameGet(const fsCResourceName& pParticleFilename);

};

#endif