text: /*
   * Copyright (c) 2008-2015, NVIDIA CORPORATION.  All rights reserved.
   *
   * NVIDIA CORPORATION and its licensors retain all intellectual property
   * and proprietary rights in and to this software, related documentation
   * and any modifications thereto.  Any use, reproduction, disclosure or
   * distribution of this software and related documentation without an express
   * license agreement from NVIDIA CORPORATION is strictly prohibited.
   */
  
  
  // This file was generated by NxParameterized/scripts/GenParameterized.pl
  // Created: 2015.06.02 04:12:11
  
  #include "ApexEmitterAssetParameters_0p3.h"
  #include <string.h>
  #include <stdlib.h>
  
  using namespace NxParameterized;
  
  namespace physx
  {
  namespace apex
  {
  
  using namespace ApexEmitterAssetParameters_0p3NS;
  
  const char* const ApexEmitterAssetParameters_0p3Factory::vptr =
      NxParameterized::getVptr<ApexEmitterAssetParameters_0p3, ApexEmitterAssetParameters_0p3::ClassAlignment>();
  
  const physx::PxU32 NumParamDefs = 27;
  static NxParameterized::DefinitionImpl* ParamDefTable; // now allocated in buildTree [NumParamDefs];
  
  
  static const size_t ParamLookupChildrenTable[] =
  {
  	1, 4, 7, 10, 13, 14, 22, 23, 24, 25, 26, 2, 3, 5, 6, 8, 9, 11, 12, 15, 16, 17, 18,
  	19, 20, 21,
  };
  
  #define TENUM(type) physx::##type
  #define CHILDREN(index) &ParamLookupChildrenTable[index]
  static const NxParameterized::ParamLookupNode ParamLookupTable[NumParamDefs] =
  {
  	{ TYPE_STRUCT, false, 0, CHILDREN(0), 11 },
  	{ TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->densityRange), CHILDREN(11), 2 }, // densityRange
  	{ TYPE_F32, false, (size_t)(&((rangeStructF32_Type*)0)->min), NULL, 0 }, // densityRange.min
  	{ TYPE_F32, false, (size_t)(&((rangeStructF32_Type*)0)->max), NULL, 0 }, // densityRange.max
  	{ TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->rateRange), CHILDREN(13), 2 }, // rateRange
  	{ TYPE_F32, false, (size_t)(&((rangeStructF32_Type*)0)->min), NULL, 0 }, // rateRange.min
  	{ TYPE_F32, false, (size_t)(&((rangeStructF32_Type*)0)->max), NULL, 0 }, // rateRange.max
  	{ TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->lifetimeRange), CHILDREN(15), 2 }, // lifetimeRange
  	{ TYPE_F32, false, (size_t)(&((rangeStructF32_Type*)0)->min), NULL, 0 }, // lifetimeRange.min
  	{ TYPE_F32, false, (size_t)(&((rangeStructF32_Type*)0)->max), NULL, 0 }, // lifetimeRange.max
  	{ TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->velocityRange), CHILDREN(17), 2 }, // velocityRange
  	{ TYPE_VEC3, false, (size_t)(&((rangeStructVec3_Type*)0)->min), NULL, 0 }, // velocityRange.min
  	{ TYPE_VEC3, false, (size_t)(&((rangeStructVec3_Type*)0)->max), NULL, 0 }, // velocityRange.max
  	{ TYPE_U32, false, (size_t)(&((ParametersStruct*)0)->maxSamples), NULL, 0 }, // maxSamples
  	{ TYPE_STRUCT, false, (size_t)(&((ParametersStruct*)0)->lodParamDesc), CHILDREN(19), 7 }, // lodParamDesc
  	{ TYPE_U32, false, (size_t)(&((emitterLodParamDesc_Type*)0)->version), NULL, 0 }, // lodParamDesc.version
  	{ TYPE_F32, false, (size_t)(&((emitterLodParamDesc_Type*)0)->maxDistance), NULL, 0 }, // lodParamDesc.maxDistance
  	{ TYPE_F32, false, (size_t)(&((emitterLodParamDesc_Type*)0)->distanceWeight), NULL, 0 }, // lodParamDesc.distanceWeight
  	{ TYPE_F32, false, (size_t)(&((emitterLodParamDesc_Type*)0)->speedWeight), NULL, 0 }, // lodParamDesc.speedWeight
  	{ TYPE_F32, false, (size_t)(&((emitterLodParamDesc_Type*)0)->lifeWeight), NULL, 0 }, // lodParamDesc.lifeWeight
  	{ TYPE_F32, false, (size_t)(&((emitterLodParamDesc_Type*)0)->separationWeight), NULL, 0 }, // lodParamDesc.separationWeight
  	{ TYPE_F32, false, (size_t)(&((emitterLodParamDesc_Type*)0)->bias), NULL, 0 }, // lodParamDesc.bias
  	{ TYPE_REF, false, (size_t)(&((ParametersStruct*)0)->iofxAssetName), NULL, 0 }, // iofxAssetName
  	{ TYPE_REF, false, (size_t)(&((ParametersStruct*)0)->iosAssetName), NULL, 0 }, // iosAssetName
  	{ TYPE_REF, false, (size_t)(&((ParametersStruct*)0)->geometryType), NULL, 0 }, // geometryType
  	{ TYPE_F32, false, (size_t)(&((ParametersStruct*)0)->emitterDuration), NULL, 0 }, // emitterDuration
  	{ TYPE_U32, false, (size_t)(&((ParametersStruct*)0)->minSamplingFPS), NULL, 0 }, // minSamplingFPS
  };
  
  
  bool ApexEmitterAssetParameters_0p3::mBuiltFlag = false;
  NxParameterized::MutexType ApexEmitterAssetParameters_0p3::mBuiltFlagMutex;
  
  ApexEmitterAssetParameters_0p3::ApexEmitterAssetParameters_0p3(NxParameterized::Traits* traits, void* buf, PxI32* refCount) :
  	NxParameters(traits, buf, refCount)
  {
  	//mParameterizedTraits->registerFactory(className(), &ApexEmitterAssetParameters_0p3FactoryInst);
  
  	if (!buf) //Do not init data if it is inplace-deserialized
  	{
  		initDynamicArrays();
  		initStrings();
  		initReferences();
  		initDefaults();
  	}
  }
  
  ApexEmitterAssetParameters_0p3::~ApexEmitterAssetParameters_0p3()
  {
  	freeStrings();
  	freeReferences();
  	freeDynamicArrays();
  }
  
  void ApexEmitterAssetParameters_0p3::destroy()
  {
  	// We cache these fields here to avoid overwrite in destructor
  	bool doDeallocateSelf = mDoDeallocateSelf;
  	NxParameterized::Traits* traits = mParameterizedTraits;
  	physx::PxI32* refCount = mRefCount;
  	void* buf = mBuffer;
  
  	this->~ApexEmitterAssetParameters_0p3();
  
  	NxParameters::destroy(this, traits, doDeallocateSelf, refCount, buf);
  }
  
  const NxParameterized::DefinitionImpl* ApexEmitterAssetParameters_0p3::getParameterDefinitionTree(void)
  {
  	if (!mBuiltFlag) // Double-checked lock
  	{
  		NxParameterized::MutexType::ScopedLock lock(mBuiltFlagMutex);
  		if (!mBuiltFlag)
  		{
  			buildTree();
  		}
  	}
  
  	return(&ParamDefTable[0]);
  }
  
  const NxParameterized::DefinitionImpl* ApexEmitterAssetParameters_0p3::getParameterDefinitionTree(void) const
  {
  	ApexEmitterAssetParameters_0p3* tmpParam = const_cast<ApexEmitterAssetParameters_0p3*>(this);
  
  	if (!mBuiltFlag) // Double-checked lock
  	{
  		NxParameterized::MutexType::ScopedLock lock(mBuiltFlagMutex);
  		if (!mBuiltFlag)
  		{
  			tmpParam->buildTree();
  		}
  	}
  
  	return(&ParamDefTable[0]);
  }
  
  NxParameterized::ErrorType ApexEmitterAssetParameters_0p3::getParameterHandle(const char* long_name, Handle& handle) const
  {
  	ErrorType Ret = NxParameters::getParameterHandle(long_name, handle);
  	if (Ret != ERROR_NONE)
  	{
  		return(Ret);
  	}
  
  	size_t offset;
  	void* ptr;
  
  	getVarPtr(handle, ptr, offset);
  
  	if (ptr == NULL)
  	{
  		return(ERROR_INDEX_OUT_OF_RANGE);
  	}
  
  	return(ERROR_NONE);
  }
  
  NxParameterized::ErrorType ApexEmitterAssetParameters_0p3::getParameterHandle(const char* long_name, Handle& handle)
  {
  	ErrorType Ret = NxParameters::getParameterHandle(long_name, handle);
  	if (Ret != ERROR_NONE)
  	{
  		return(Ret);
  	}
  
  	size_t offset;
  	void* ptr;
  
  	getVarPtr(handle, ptr, offset);
  
  	if (ptr == NULL)
  	{
  		return(ERROR_INDEX_OUT_OF_RANGE);
  	}
  
  	return(ERROR_NONE);
  }
  
  void ApexEmitterAssetParameters_0p3::getVarPtr(const Handle& handle, void*& ptr, size_t& offset) const
  {
  	ptr = getVarPtrHelper(&ParamLookupTable[0], const_cast<ApexEmitterAssetParameters_0p3::ParametersStruct*>(&parameters()), handle, offset);
  }
  
  
  /* Dynamic Handle Indices */
  
  void ApexEmitterAssetParameters_0p3::freeParameterDefinitionTable(NxParameterized::Traits* traits)
  {
  	if (!traits)
  	{
  		return;
  	}
  
  	if (!mBuiltFlag) // Double-checked lock
  	{
  		return;
  	}
  
  	NxParameterized::MutexType::ScopedLock lock(mBuiltFlagMutex);
  
  	if (!mBuiltFlag)
  	{
  		return;
  	}
  
  	for (physx::PxU32 i = 0; i < NumParamDefs; ++i)
  	{
  		ParamDefTable[i].~DefinitionImpl();
  	}
  
  	traits->free(ParamDefTable);
  
  	mBuiltFlag = false;
  }
  
  #define PDEF_PTR(index) (&ParamDefTable[index])
  
  void ApexEmitterAssetParameters_0p3::buildTree(void)
  {
  
  	physx::PxU32 allocSize = sizeof(NxParameterized::DefinitionImpl) * NumParamDefs;
  	ParamDefTable = (NxParameterized::DefinitionImpl*)(mParameterizedTraits->alloc(allocSize));
  	memset(static_cast<void*>(ParamDefTable), 0, allocSize);
  
  	for (physx::PxU32 i = 0; i < NumParamDefs; ++i)
  	{
  		NX_PARAM_PLACEMENT_NEW(ParamDefTable + i, NxParameterized::DefinitionImpl)(*mParameterizedTraits);
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=0, longName=""
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[0];
  		ParamDef->init("", TYPE_STRUCT, "STRUCT", true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("longDescription", "This class contains the parameters for the APEX Emitter asset.  The APEX Emitter is sometimes described\nas a shaped APEX Emitter because it contains the box, sphere, and sphere shell shapes.  It also\nincludes an explicit shape that allows for preauthored particles positions and velocities and runtime\nparticle injections.\n", true);
  		HintTable[1].init("shortDescription", "APEX Emitter Asset Parameters", true);
  		ParamDefTable[0].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=1, longName="densityRange"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[1];
  		ParamDef->init("densityRange", TYPE_STRUCT, "rangeStructF32", true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("tweakable", "true", true);
  		ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #else
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("longDescription", "For an explicit emitter, the density is actually a spawn probability.  For the shaped emitters, it represents the density of the particles per unit volume.\n", true);
  		HintTable[1].init("shortDescription", "Desired density of spawned particles per unit of volume.", true);
  		HintTable[2].init("tweakable", "true", true);
  		ParamDefTable[1].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=2, longName="densityRange.min"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[2];
  		ParamDef->init("min", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[2].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=3, longName="densityRange.max"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[3];
  		ParamDef->init("max", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[3].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=4, longName="rateRange"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[4];
  		ParamDef->init("rateRange", TYPE_STRUCT, "rangeStructF32", true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("tweakable", "true", true);
  		ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #else
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("longDescription", "The emitter actor will use the maximum rate in the range if it is a rate-based shape, but it will back off to the minimum density if the actor is LOD resource limited.\n", true);
  		HintTable[1].init("shortDescription", "min if LOD limited / max if rate-based shape", true);
  		HintTable[2].init("tweakable", "true", true);
  		ParamDefTable[4].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=5, longName="rateRange.min"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[5];
  		ParamDef->init("min", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[5].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=6, longName="rateRange.max"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[6];
  		ParamDef->init("max", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[6].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=7, longName="lifetimeRange"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[7];
  		ParamDef->init("lifetimeRange", TYPE_STRUCT, "rangeStructF32", true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("tweakable", "true", true);
  		ParamDefTable[7].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #else
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("longDescription", "The emitter actor will create particles with a random lifetime (in seconds) within the lifetime range.\n", true);
  		HintTable[1].init("shortDescription", "Range (in sec) of particle lifetime", true);
  		HintTable[2].init("tweakable", "true", true);
  		ParamDefTable[7].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=8, longName="lifetimeRange.min"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[8];
  		ParamDef->init("min", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[8].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=9, longName="lifetimeRange.max"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[9];
  		ParamDef->init("max", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[9].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=10, longName="velocityRange"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[10];
  		ParamDef->init("velocityRange", TYPE_STRUCT, "rangeStructVec3", true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("gameScale", "true", true);
  		HintTable[1].init("tweakable", "true", true);
  		ParamDefTable[10].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #else
  
  		static HintImpl HintTable[4];
  		static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
  		HintTable[0].init("gameScale", "true", true);
  		HintTable[1].init("longDescription", "The emitter actor will create particles with a random velocity within the velocity range.\n", true);
  		HintTable[2].init("shortDescription", "Random velocity given within range", true);
  		HintTable[3].init("tweakable", "true", true);
  		ParamDefTable[10].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=11, longName="velocityRange.min"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[11];
  		ParamDef->init("min", TYPE_VEC3, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[11].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=12, longName="velocityRange.max"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[12];
  		ParamDef->init("max", TYPE_VEC3, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[12].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=13, longName="maxSamples"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[13];
  		ParamDef->init("maxSamples", TYPE_U32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("min", physx::PxU64(0), true);
  		ParamDefTable[13].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #else
  
  		static HintImpl HintTable[4];
  		static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("longDescription", "For an explicit emitter, Max Samples is ignored.  For shaped emitters, it is the maximum number of particles spawned in a step.\n", true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		HintTable[3].init("shortDescription", "Shaped emitter only. Max particles spawned each step.", true);
  		ParamDefTable[13].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=14, longName="lodParamDesc"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[14];
  		ParamDef->init("lodParamDesc", TYPE_STRUCT, "emitterLodParamDesc", true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("tweakable", "true", true);
  		ParamDefTable[14].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #else
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("shortDescription", "Bias given to this emitter when sharing IOS with another emitter", true);
  		HintTable[1].init("tweakable", "true", true);
  		ParamDefTable[14].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=15, longName="lodParamDesc.version"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[15];
  		ParamDef->init("version", TYPE_U32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		ParamDefTable[15].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #else
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("shortDescription", "Helpful documentation goes here", true);
  		ParamDefTable[15].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=16, longName="lodParamDesc.maxDistance"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[16];
  		ParamDef->init("maxDistance", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("min", physx::PxU64(0), true);
  		ParamDefTable[16].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #else
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("min", physx::PxU64(0), true);
  		HintTable[2].init("shortDescription", "Objects greater than this distance from the player will be culled more aggressively", true);
  		ParamDefTable[16].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=17, longName="lodParamDesc.distanceWeight"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[17];
  		ParamDef->init("distanceWeight", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("defaultValue", physx::PxU64(1), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		ParamDefTable[17].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #else
  
  		static HintImpl HintTable[4];
  		static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
  		HintTable[0].init("defaultValue", physx::PxU64(1), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		HintTable[3].init("shortDescription", "Weight given to distance parameter in LOD function", true);
  		ParamDefTable[17].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=18, longName="lodParamDesc.speedWeight"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[18];
  		ParamDef->init("speedWeight", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		ParamDefTable[18].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #else
  
  		static HintImpl HintTable[4];
  		static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		HintTable[3].init("shortDescription", "Weight given to velocity parameter in LOD function", true);
  		ParamDefTable[18].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=19, longName="lodParamDesc.lifeWeight"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[19];
  		ParamDef->init("lifeWeight", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		ParamDefTable[19].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #else
  
  		static HintImpl HintTable[4];
  		static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		HintTable[3].init("shortDescription", "Weight given to life remain parameter in LOD function", true);
  		ParamDefTable[19].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=20, longName="lodParamDesc.separationWeight"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[20];
  		ParamDef->init("separationWeight", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		ParamDefTable[20].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #else
  
  		static HintImpl HintTable[4];
  		static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("max", physx::PxU64(1), true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		HintTable[3].init("shortDescription", "Weight given to separation parameter in LOD function", true);
  		ParamDefTable[20].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=21, longName="lodParamDesc.bias"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[21];
  		ParamDef->init("bias", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("defaultValue", physx::PxU64(1), true);
  		HintTable[1].init("min", physx::PxU64(0), true);
  		ParamDefTable[21].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #else
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("defaultValue", physx::PxU64(1), true);
  		HintTable[1].init("min", physx::PxU64(0), true);
  		HintTable[2].init("shortDescription", "Bias given to objects spawned by this emitter, relative to other emitters in the same IOS", true);
  		ParamDefTable[21].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=22, longName="iofxAssetName"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[22];
  		ParamDef->init("iofxAssetName", TYPE_REF, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "The name of the instanced object effects asset that will render particles", true);
  		ParamDefTable[22].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  		static const char* const RefVariantVals[] = { "IOFX" };
  		ParamDefTable[22].setRefVariantVals((const char**)RefVariantVals, 1);
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=23, longName="iosAssetName"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[23];
  		ParamDef->init("iosAssetName", TYPE_REF, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  #else
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("shortDescription", "The asset name of the IOS and the type of IOS that will simulate particles", true);
  		ParamDefTable[23].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  		static const char* const RefVariantVals[] = { "NxFluidIosAsset", "NxBasicIosAsset", "ParticleIosAsset" };
  		ParamDefTable[23].setRefVariantVals((const char**)RefVariantVals, 3);
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=24, longName="geometryType"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[24];
  		ParamDef->init("geometryType", TYPE_REF, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("INCLUDED", physx::PxU64(1), true);
  		ParamDefTable[24].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #else
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("INCLUDED", physx::PxU64(1), true);
  		HintTable[1].init("longDescription", "Specifies the geometry type of the emitter", true);
  		HintTable[2].init("shortDescription", "Geometry Type", true);
  		ParamDefTable[24].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  		static const char* const RefVariantVals[] = { "EmitterGeomBoxParams", "EmitterGeomSphereParams", "EmitterGeomSphereShellParams", "EmitterGeomCylinderParams", "EmitterGeomExplicitParams" };
  		ParamDefTable[24].setRefVariantVals((const char**)RefVariantVals, 5);
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=25, longName="emitterDuration"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[25];
  		ParamDef->init("emitterDuration", TYPE_F32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[1];
  		static Hint* HintPtrTable[1] = { &HintTable[0], };
  		HintTable[0].init("min", physx::PxU64(0), true);
  		ParamDefTable[25].setHints((const NxParameterized::Hint**)HintPtrTable, 1);
  
  #else
  
  		static HintImpl HintTable[3];
  		static Hint* HintPtrTable[3] = { &HintTable[0], &HintTable[1], &HintTable[2], };
  		HintTable[0].init("longDescription", "Specifies a duration (in seconds) that the emitter will emit for after being enabled.\nAfter the specified duration, the emitter will turn off, unless it has already been explicitly turned off via an API call.\nThe special value 0.0f means there is no duration, and the emitter will remain on until explicitly turned off.", true);
  		HintTable[1].init("min", physx::PxU64(0), true);
  		HintTable[2].init("shortDescription", "Emitter duration time (in seconds)", true);
  		ParamDefTable[25].setHints((const NxParameterized::Hint**)HintPtrTable, 3);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// Initialize DefinitionImpl node: nodeIndex=26, longName="minSamplingFPS"
  	{
  		NxParameterized::DefinitionImpl* ParamDef = &ParamDefTable[26];
  		ParamDef->init("minSamplingFPS", TYPE_U32, NULL, true);
  
  #ifdef NX_PARAMETERIZED_HIDE_DESCRIPTIONS
  
  		static HintImpl HintTable[2];
  		static Hint* HintPtrTable[2] = { &HintTable[0], &HintTable[1], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("min", physx::PxU64(0), true);
  		ParamDefTable[26].setHints((const NxParameterized::Hint**)HintPtrTable, 2);
  
  #else
  
  		static HintImpl HintTable[4];
  		static Hint* HintPtrTable[4] = { &HintTable[0], &HintTable[1], &HintTable[2], &HintTable[3], };
  		HintTable[0].init("defaultValue", physx::PxU64(0), true);
  		HintTable[1].init("longDescription", "It is used to reduce discontinuity in case of fast moving Emitters, by limiting particles generation step max. time by inverse of this value.\n", true);
  		HintTable[2].init("min", physx::PxU64(0), true);
  		HintTable[3].init("shortDescription", "Defines minimum FPS at which particles are generating (0-value means no limit in FPS)", true);
  		ParamDefTable[26].setHints((const NxParameterized::Hint**)HintPtrTable, 4);
  
  #endif /* NX_PARAMETERIZED_HIDE_DESCRIPTIONS */
  
  
  
  
  
  	}
  
  	// SetChildren for: nodeIndex=0, longName=""
  	{
  		static Definition* Children[11];
  		Children[0] = PDEF_PTR(1);
  		Children[1] = PDEF_PTR(4);
  		Children[2] = PDEF_PTR(7);
  		Children[3] = PDEF_PTR(10);
  		Children[4] = PDEF_PTR(13);
  		Children[5] = PDEF_PTR(14);
  		Children[6] = PDEF_PTR(22);
  		Children[7] = PDEF_PTR(23);
  		Children[8] = PDEF_PTR(24);
  		Children[9] = PDEF_PTR(25);
  		Children[10] = PDEF_PTR(26);
  
  		ParamDefTable[0].setChildren(Children, 11);
  	}
  
  	// SetChildren for: nodeIndex=1, longName="densityRange"
  	{
  		static Definition* Children[2];
  		Children[0] = PDEF_PTR(2);
  		Children[1] = PDEF_PTR(3);
  
  		ParamDefTable[1].setChildren(Children, 2);
  	}
  
  	// SetChildren for: nodeIndex=4, longName="rateRange"
  	{
  		static Definition* Children[2];
  		Children[0] = PDEF_PTR(5);
  		Children[1] = PDEF_PTR(6);
  
  		ParamDefTable[4].setChildren(Children, 2);
  	}
  
  	// SetChildren for: nodeIndex=7, longName="lifetimeRange"
  	{
  		static Definition* Children[2];
  		Children[0] = PDEF_PTR(8);
  		Children[1] = PDEF_PTR(9);
  
  		ParamDefTable[7].setChildren(Children, 2);
  	}
  
  	// SetChildren for: nodeIndex=10, longName="velocityRange"
  	{
  		static Definition* Children[2];
  		Children[0] = PDEF_PTR(11);
  		Children[1] = PDEF_PTR(12);
  
  		ParamDefTable[10].setChildren(Children, 2);
  	}
  
  	// SetChildren for: nodeIndex=14, longName="lodParamDesc"
  	{
  		static Definition* Children[7];
  		Children[0] = PDEF_PTR(15);
  		Children[1] = PDEF_PTR(16);
  		Children[2] = PDEF_PTR(17);
  		Children[3] = PDEF_PTR(18);
  		Children[4] = PDEF_PTR(19);
  		Children[5] = PDEF_PTR(20);
  		Children[6] = PDEF_PTR(21);
  
  		ParamDefTable[14].setChildren(Children, 7);
  	}
  
  	mBuiltFlag = true;
  
  }
  void ApexEmitterAssetParameters_0p3::initStrings(void)
  {
  }
  
  void ApexEmitterAssetParameters_0p3::initDynamicArrays(void)
  {
  }
  
  void ApexEmitterAssetParameters_0p3::initDefaults(void)
  {
  
  	freeStrings();
  	freeReferences();
  	freeDynamicArrays();
  
  	densityRange.min = 1.0f;
  	densityRange.max = 1.0f;
  
  
  	rateRange.min = 1.0f;
  	rateRange.max = 1.0f;
  
  
  	lifetimeRange.min = 1.0f;
  	lifetimeRange.max = 1.0f;
  
  
  	velocityRange.min.x = 0.0f;
  	velocityRange.max.y = 0.0f;
  	velocityRange.min.y = 0.0f;
  	velocityRange.max.z = 0.0f;
  	velocityRange.min.z = 0.0f;
  	velocityRange.max.x = 0.0f;
  
  	maxSamples = physx::PxU32(0);
  	lodParamDesc.version = physx::PxU32(0);
  	lodParamDesc.maxDistance = physx::PxF32(0);
  	lodParamDesc.distanceWeight = physx::PxF32(1);
  	lodParamDesc.speedWeight = physx::PxF32(0);
  	lodParamDesc.lifeWeight = physx::PxF32(0);
  	lodParamDesc.separationWeight = physx::PxF32(0);
  	lodParamDesc.bias = physx::PxF32(1);
  	emitterDuration = physx::PxF32(PX_MAX_F32);
  	minSamplingFPS = physx::PxU32(0);
  
  	initDynamicArrays();
  	initStrings();
  	initReferences();
  }
  
  void ApexEmitterAssetParameters_0p3::initReferences(void)
  {
  	iofxAssetName = NULL;
  
  	iosAssetName = NULL;
  
  	geometryType = NULL;
  
  }
  
  void ApexEmitterAssetParameters_0p3::freeDynamicArrays(void)
  {
  }
  
  void ApexEmitterAssetParameters_0p3::freeStrings(void)
  {
  }
  
  void ApexEmitterAssetParameters_0p3::freeReferences(void)
  {
  	if (iofxAssetName)
  	{
  		iofxAssetName->destroy();
  	}
  
  	if (iosAssetName)
  	{
  		iosAssetName->destroy();
  	}
  
  	if (geometryType)
  	{
  		geometryType->destroy();
  	}
  
  }
  
  } // namespace apex
  } // namespace physx
  