naev 0.12.5
LuaSpfxData_t Struct Reference

Handles the special effects Lua-side. More...

Collaboration diagram for LuaSpfxData_t:

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

Detailed Description

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.

Field Documentation

◆ data

int LuaSpfxData_t::data

Reference to table of data.

Definition at line 47 of file nlua_spfx.c.

◆ flags

unsigned int LuaSpfxData_t::flags

Flags.

Definition at line 42 of file nlua_spfx.c.

◆ id

int LuaSpfxData_t::id

Unique ID.

Definition at line 41 of file nlua_spfx.c.

◆ pos

vec2 LuaSpfxData_t::pos

Position.

Definition at line 44 of file nlua_spfx.c.

◆ radius

double LuaSpfxData_t::radius

Used for rendering.

Definition at line 46 of file nlua_spfx.c.

◆ remove

int LuaSpfxData_t::remove

Reference to remove function.

Definition at line 52 of file nlua_spfx.c.

◆ render_bg

int LuaSpfxData_t::render_bg

Reference to background render function.

Definition at line 48 of file nlua_spfx.c.

◆ render_fg

int LuaSpfxData_t::render_fg

Reference to foreground render function.

Definition at line 50 of file nlua_spfx.c.

◆ render_mg

int LuaSpfxData_t::render_mg

Reference to middle render function.

Definition at line 49 of file nlua_spfx.c.

◆ sfx

LuaAudio_t LuaSpfxData_t::sfx

Sound effect.

Definition at line 53 of file nlua_spfx.c.

◆ ttl

double LuaSpfxData_t::ttl

Time to live.

Definition at line 43 of file nlua_spfx.c.

◆ update

int LuaSpfxData_t::update

Reference to update function.

Definition at line 51 of file nlua_spfx.c.

◆ vel

vec2 LuaSpfxData_t::vel

Velocity.

Definition at line 45 of file nlua_spfx.c.


The documentation for this struct was generated from the following file: