![]() |
naev 0.12.5
|
Handles the special effects Lua-side. More...

Data Fields | |
| int | id |
| unsigned int | flags |
| double | ttl |
| vec2 | pos |
| vec2 | vel |
| double | radius |
| int | data |
| int | render_bg |
| int | render_mg |
| int | render_fg |
| int | update |
| int | remove |
| LuaAudio_t | sfx |
Handles the special effects Lua-side.
It has the advantage of automatically updating the position and audio, while Lua gives flexibility elsewhere.
Definition at line 40 of file nlua_spfx.c.
| int LuaSpfxData_t::data |
Reference to table of data.
Definition at line 47 of file nlua_spfx.c.
| unsigned int LuaSpfxData_t::flags |
Flags.
Definition at line 42 of file nlua_spfx.c.
| int LuaSpfxData_t::id |
Unique ID.
Definition at line 41 of file nlua_spfx.c.
| vec2 LuaSpfxData_t::pos |
Position.
Definition at line 44 of file nlua_spfx.c.
| double LuaSpfxData_t::radius |
Used for rendering.
Definition at line 46 of file nlua_spfx.c.
| int LuaSpfxData_t::remove |
Reference to remove function.
Definition at line 52 of file nlua_spfx.c.
| int LuaSpfxData_t::render_bg |
Reference to background render function.
Definition at line 48 of file nlua_spfx.c.
| int LuaSpfxData_t::render_fg |
Reference to foreground render function.
Definition at line 50 of file nlua_spfx.c.
| int LuaSpfxData_t::render_mg |
Reference to middle render function.
Definition at line 49 of file nlua_spfx.c.
| LuaAudio_t LuaSpfxData_t::sfx |
Sound effect.
Definition at line 53 of file nlua_spfx.c.
| double LuaSpfxData_t::ttl |
Time to live.
Definition at line 43 of file nlua_spfx.c.
| int LuaSpfxData_t::update |
Reference to update function.
Definition at line 51 of file nlua_spfx.c.
| vec2 LuaSpfxData_t::vel |
Velocity.
Definition at line 45 of file nlua_spfx.c.