Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
LuaParticleParams Namespace Reference

Functions

template<typename T >
void readNumericLuaValue (lua_State *L, T &ret)
 
template<typename T , size_t N>
void readNumericLuaValue (lua_State *L, Parameter< T, N > &ret)
 
void readLuaValue (lua_State *L, f32Parameter &ret)
 
void readLuaValue (lua_State *L, f32 &ret)
 
void readLuaValue (lua_State *L, u16 &ret)
 
void readLuaValue (lua_State *L, u8 &ret)
 
void readLuaValue (lua_State *L, v3fParameter &ret)
 
void readLuaValue (lua_State *L, v2fParameter &ret)
 
void readLuaValue (lua_State *L, TweenStyle &ret)
 
void readLuaValue (lua_State *L, AttractorKind &ret)
 
void readLuaValue (lua_State *L, BlendMode &ret)
 
template<typename T >
void readLuaValue (lua_State *L, RangedParameter< T > &field)
 
template<typename T >
void readLegacyValue (lua_State *L, const char *name, T &field)
 
template<typename T >
void readLegacyValue (lua_State *L, const char *name, RangedParameter< T > &field)
 
template<typename T >
void readTweenTable (lua_State *L, const char *name, TweenedParameter< T > &field)
 
u16 readAttachmentID (lua_State *L, const char *name)
 
void readTexValue (lua_State *L, ServerParticleTexture &tex)
 

Function Documentation

◆ readAttachmentID()

u16 LuaParticleParams::readAttachmentID ( lua_State * L,
const char * name )
inline

References ModApiBase::checkObject(), and ObjectRef::getobject().

Referenced by ModApiParticles::l_add_particlespawner(), and ModApiParticlesLocal::l_add_particlespawner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readLegacyValue() [1/2]

template<typename T >
void LuaParticleParams::readLegacyValue ( lua_State * L,
const char * name,
RangedParameter< T > & field )

References ParticleParamTypes::RangedParameter< T >::max, ParticleParamTypes::RangedParameter< T >::min, and readLuaValue().

+ Here is the call graph for this function:

◆ readLegacyValue() [2/2]

template<typename T >
void LuaParticleParams::readLegacyValue ( lua_State * L,
const char * name,
T & field )

Referenced by readTweenTable().

+ Here is the caller graph for this function:

◆ readLuaValue() [1/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
AttractorKind & ret )
inline

References string_to_enum().

+ Here is the call graph for this function:

◆ readLuaValue() [2/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
BlendMode & ret )
inline

References string_to_enum().

+ Here is the call graph for this function:

◆ readLuaValue() [3/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
f32 & ret )
inline

References readNumericLuaValue().

+ Here is the call graph for this function:

◆ readLuaValue() [4/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
f32Parameter & ret )
inline

References readNumericLuaValue().

Referenced by ModApiParticles::l_add_particle(), ModApiParticlesLocal::l_add_particle(), ModApiParticles::l_add_particlespawner(), ModApiParticlesLocal::l_add_particlespawner(), readLegacyValue(), readLuaValue(), readTexValue(), and readTweenTable().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readLuaValue() [5/10]

template<typename T >
void LuaParticleParams::readLuaValue ( lua_State * L,
RangedParameter< T > & field )

References ParticleParamTypes::RangedParameter< T >::bias, ParticleParamTypes::RangedParameter< T >::max, ParticleParamTypes::RangedParameter< T >::min, and readLuaValue().

+ Here is the call graph for this function:

◆ readLuaValue() [6/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
TweenStyle & ret )
inline

References string_to_enum().

+ Here is the call graph for this function:

◆ readLuaValue() [7/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
u16 & ret )
inline

References readNumericLuaValue().

+ Here is the call graph for this function:

◆ readLuaValue() [8/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
u8 & ret )
inline

References readNumericLuaValue().

+ Here is the call graph for this function:

◆ readLuaValue() [9/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
v2fParameter & ret )
inline

References check_v2f().

+ Here is the call graph for this function:

◆ readLuaValue() [10/10]

void LuaParticleParams::readLuaValue ( lua_State * L,
v3fParameter & ret )
inline

References check_v3f().

+ Here is the call graph for this function:

◆ readNumericLuaValue() [1/2]

template<typename T , size_t N>
void LuaParticleParams::readNumericLuaValue ( lua_State * L,
Parameter< T, N > & ret )
inline

References readNumericLuaValue(), and ParticleParamTypes::Parameter< T, PN >::val.

+ Here is the call graph for this function:

◆ readNumericLuaValue() [2/2]

template<typename T >
void LuaParticleParams::readNumericLuaValue ( lua_State * L,
T & ret )
inline

Referenced by readLuaValue(), readLuaValue(), readLuaValue(), readLuaValue(), and readNumericLuaValue().

+ Here is the caller graph for this function:

◆ readTexValue()

void LuaParticleParams::readTexValue ( lua_State * L,
ServerParticleTexture & tex )

References ParticleTexture::alpha, ParticleTexture::animated, ParticleTexture::animation, ParticleTexture::blendmode, read_animation_definition(), readLuaValue(), readTweenTable(), ParticleTexture::scale, and ServerParticleTexture::string.

Referenced by ModApiParticles::l_add_particle(), ModApiParticlesLocal::l_add_particle(), ModApiParticles::l_add_particlespawner(), and ModApiParticlesLocal::l_add_particlespawner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ readTweenTable()

template<typename T >
void LuaParticleParams::readTweenTable ( lua_State * L,
const char * name,
TweenedParameter< T > & field )

References ParticleParamTypes::TweenedParameter< T >::beginning, ParticleParamTypes::TweenedParameter< T >::end, readLegacyValue(), readLuaValue(), ParticleParamTypes::TweenedParameter< T >::reps, ParticleParamTypes::TweenedParameter< T >::start, and ParticleParamTypes::TweenedParameter< T >::style.

Referenced by ModApiParticles::l_add_particlespawner(), ModApiParticlesLocal::l_add_particlespawner(), and readTexValue().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: