mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-07 22:56:30 -10:00
* Lua access to volumetric params * lua documentation error * address feedback * clang * typo
23 lines
676 B
C++
23 lines
676 B
C++
#pragma once
|
|
|
|
#include "nebula/volumetrics.h"
|
|
#include "scripting/ade_api.h"
|
|
|
|
namespace scripting::api {
|
|
|
|
struct volumetric_h {
|
|
volumetric_h() = default;
|
|
explicit volumetric_h(int idx);
|
|
|
|
int index = -1;
|
|
|
|
bool isValid() const;
|
|
volumetric_nebula* get() const;
|
|
|
|
static void serialize(lua_State* /*L*/, const scripting::ade_table_entry& /*tableEntry*/, const luacpp::LuaValue& value, ubyte* data, int& packet_size);
|
|
static void deserialize(lua_State* /*L*/, const scripting::ade_table_entry& /*tableEntry*/, char* data_ptr, ubyte* data, int& offset); // NOLINT(readability-non-const-parameter)
|
|
};
|
|
|
|
DECLARE_ADE_OBJ(l_Volumetric, volumetric_h);
|
|
|
|
} // namespace scripting::api
|