- Mirror the remaining non-Python 2V3 closure headers (98 more, 173 total): EffectLib, EterGrnLib, SpeedTreeLib, SphereLib, PRTerrainLib, EterImageLib, EterBase/Poly, cipher/tea, EterLib Grp*/IME/Input/MSWindow/StateManager, GameLib actor/map/race headers, EterPack. - SDK shims: granny.h, SpeedTreeRT.h, imm.h, Dimm.h (the SDK MIDL header, not mirrored), dinput/d3dx8 additions; D3D8 render-state enums, FVF macros and the COM resource hierarchy; more Win32 GDI/handle types with layout static_asserts. - PORT edits for MSVC-permissive code (typename, friend visibility, <algorithm>, pointer→uintptr_t) and PRTerrainLib/StdAfx.h dropping the ScriptLib/Python include. - port_logic links the vendored cryptopp/minilzo. - extension/src/platform: port_platform target with 103 generated stub files (1917 function stubs, 146 static members) from the new platform_stub.py (clang -ast-dump-filter); MT_PLATFORM_STUB() marks every unimplemented body. libmtgodot links port_platform and port_gate.sh builds it. Gate: macOS, Android, iOS, Windows (mingw) PASS; Linux BLOCKED (no toolchain). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
96 lines
2.2 KiB
C++
96 lines
2.2 KiB
C++
#pragma once
|
|
|
|
#include "Type.h"
|
|
|
|
class CEmitterProperty
|
|
{
|
|
friend class CParticleSystemData;
|
|
friend class CParticleSystemInstance;
|
|
public:
|
|
enum
|
|
{
|
|
EMITTER_SHAPE_POINT,
|
|
EMITTER_SHAPE_ELLIPSE,
|
|
EMITTER_SHAPE_SQUARE,
|
|
EMITTER_SHAPE_SPHERE,
|
|
};
|
|
|
|
enum
|
|
{
|
|
EMITTER_ADVANCED_TYPE_FREE,
|
|
EMITTER_ADVANCED_TYPE_OUTER,
|
|
EMITTER_ADVANCED_TYPE_INNER,
|
|
};
|
|
|
|
public:
|
|
CEmitterProperty();
|
|
virtual ~CEmitterProperty();
|
|
|
|
void Clear();
|
|
|
|
DWORD GetMaxEmissionCount()
|
|
{
|
|
return m_dwMaxEmissionCount;
|
|
}
|
|
|
|
float GetCycleLength()
|
|
{
|
|
return m_fCycleLength;
|
|
}
|
|
|
|
BOOL isCycleLoop()
|
|
{
|
|
return m_bCycleLoopFlag;
|
|
}
|
|
|
|
int GetLoopCount()
|
|
{
|
|
return m_iLoopCount;
|
|
}
|
|
|
|
|
|
BYTE GetEmitterShape();
|
|
BYTE GetEmitterAdvancedType();
|
|
BOOL isEmitFromEdge();
|
|
|
|
void GetEmittingSize(float fTime, float * pfValue);
|
|
void GetEmittingAngularVelocity(float fTime, float * pfValue);
|
|
|
|
void GetEmittingDirectionX(float fTime, float * pfValue);
|
|
void GetEmittingDirectionY(float fTime, float * pfValue);
|
|
void GetEmittingDirectionZ(float fTime, float * pfValue);
|
|
void GetEmittingVelocity(float fTime, float * pfValue);
|
|
void GetEmissionCountPerSecond(float fTime, float * pfValue);
|
|
void GetParticleLifeTime(float fTime, float * pfValue);
|
|
void GetParticleSizeX(float fTime, float * pfValue);
|
|
void GetParticleSizeY(float fTime, float * pfValue);
|
|
|
|
/////
|
|
|
|
DWORD m_dwMaxEmissionCount;
|
|
|
|
float m_fCycleLength;
|
|
BOOL m_bCycleLoopFlag;
|
|
int m_iLoopCount;
|
|
|
|
BYTE m_byEmitterShape;
|
|
BYTE m_byEmitterAdvancedType;
|
|
BOOL m_bEmitFromEdgeFlag;
|
|
D3DXVECTOR3 m_v3EmittingSize;
|
|
float m_fEmittingRadius;
|
|
|
|
D3DXVECTOR3 m_v3EmittingDirection;
|
|
|
|
//TTimeEventTableFloat m_TimeEventEmittingRadius;
|
|
TTimeEventTableFloat m_TimeEventEmittingSize;
|
|
TTimeEventTableFloat m_TimeEventEmittingAngularVelocity;
|
|
TTimeEventTableFloat m_TimeEventEmittingDirectionX;
|
|
TTimeEventTableFloat m_TimeEventEmittingDirectionY;
|
|
TTimeEventTableFloat m_TimeEventEmittingDirectionZ;
|
|
TTimeEventTableFloat m_TimeEventEmittingVelocity;
|
|
TTimeEventTableFloat m_TimeEventEmissionCountPerSecond;
|
|
TTimeEventTableFloat m_TimeEventLifeTime;
|
|
TTimeEventTableFloat m_TimeEventSizeX;
|
|
TTimeEventTableFloat m_TimeEventSizeY;
|
|
};
|