1
0
KF2-Dev-Scripts/Engine/Classes/ParticleModuleLocationPrimitiveSphere.uc
2020-12-13 18:01:13 +03:00

38 lines
1.5 KiB
Ucode

//=============================================================================
// ParticleModuleLocationPrimitiveSphere
// Location primitive spawning within a Sphere.
// Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
//=============================================================================
class ParticleModuleLocationPrimitiveSphere extends ParticleModuleLocationPrimitiveBase
native(Particle)
editinlinenew
hidecategories(Object);
/** The radius of the sphere. Retrieved using EmitterTime. */
var(Location) rawdistributionfloat StartRadius;
cpptext
{
virtual void Spawn(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime);
/**
* Extended version of spawn, allows for using a random stream for distribution value retrieval
*
* @param Owner The particle emitter instance that is spawning
* @param Offset The offset to the modules payload data
* @param SpawnTime The time of the spawn
* @param InRandomStream The random stream to use for retrieving random values
*/
void SpawnEx(FParticleEmitterInstance* Owner, INT Offset, FLOAT SpawnTime, class FRandomStream* InRandomStream);
virtual void Render3DPreview(FParticleEmitterInstance* Owner, const FSceneView* View,FPrimitiveDrawInterface* PDI);
}
defaultproperties
{
Begin Object Class=DistributionFloatConstant Name=DistributionStartRadius
Constant=50.0
End Object
StartRadius=(Distribution=DistributionStartRadius)
bSupported3DDrawMode=true
}