14902Fermer14904
bearbecueLe 31/01/2011 à 14:35
HBO_CLASS_DEFINITION_BEGIN(CActionFactoryParticleSpawnerBase)
	.HBO_FIELD_DEFINITION(Infinite)
	[
		HBO::Properties::DefaultValue(false),
		HBO::Properties::Modified(&CActionFactoryParticleSpawnerBase::_OnPropertiesModified)
	]
	.HBO_FIELD_DEFINITION(DurationInSeconds)
	[
		HBO::Properties::DefaultValue(0.0f),
		HBO::Properties::Min(0.0f),
		HBO::Properties::Description("emission duration in seconds"),
		HBO::Properties::Modified(&CActionFactoryParticleSpawnerBase::_OnPropertiesModified),
		HBO::Properties::VisibleInEditor(&CActionFactoryParticleSpawnerBase::_DurationVisibility)
	]
	.HBO_FIELD_DEFINITION(DurationRelativeRandomDeviation)
	[
		HBO::Properties::DefaultValue(0.0f),
		HBO::Properties::MinMax(0.0f, 2.0f),
		HBO::Properties::Caracs(BaseField::Caracs_Slider),
		HBO::Properties::Description("emission duration relative random deviation"),
		HBO::Properties::Modified(&CActionFactoryParticleSpawnerBase::_OnPropertiesModified),
		HBO::Properties::VisibleInEditor(&CActionFactoryParticleSpawnerBase::_DurationVisibility)
	]
	.HBO_FIELD_DEFINITION(SpawnCountMode)
	[
		HBO::Properties::DefaultValue(PCM_ParticlesPerSecond),
		HBO::Properties::GTT("ParticlesPerSecond", PCM_ParticlesPerSecond),
		HBO::Properties::GTT("TotalParticleCount", PCM_ParticlePerSpawn),
		HBO::Properties::Modified(&CActionFactoryParticleSpawnerBase::_OnPropertiesModified)
	]
	.HBO_FIELD_DEFINITION(SpawnCount)
	[
		HBO::Properties::DefaultValue(1.0f),
		HBO::Properties::Modified(&CActionFactoryParticleSpawnerBase::_OnPropertiesModified)
	]
	.HBO_FIELD_DEFINITION(SpawnCountRelativeRandomDeviation)
	[
		HBO::Properties::DefaultValue(0.0f),
		HBO::Properties::MinMax(0.0f, 2.0f),
		HBO::Properties::Caracs(BaseField::Caracs_Slider),
		HBO::Properties::Description("0: no randomness, 1: from 0 to 'SpawnCount*2' particles, 0.5: from 'SpawnCount*(1 - 0.5)' to 'SpawnCount*(1 + 0.5)'")
	]
	.HBO_FIELD_DEFINITION(ContinuousSpawner)			[ HBO::Properties::DefaultValue(true) ]
	.HBO_FIELD_DEFINITION(Descriptor)				[ HBO::Properties::VisibleInEditor(&CActionFactoryParticleSpawnerBase::_DescriptorVisibility) ]
	.HBO_FIELD_DEFINITION(FluxFunction)				[ HBO::Properties::Description("Particle flux evaluator") ]
	.HBO_FIELD_DEFINITION(FluxFunctionTiledRelativeDuration)	[ HBO::Properties::DefaultValue(1.0f) ]
HBO_CLASS_DEFINITION_END
[nosmile]