Files
omath/source/lua/lua_engine_source.cpp
2026-03-10 17:51:02 +03:00

27 lines
657 B
C++

//
// Created by orange on 07.03.2026.
//
#ifdef OMATH_ENABLE_LUA
#include "engine_utils.hpp"
#include <omath/engines/source_engine/camera.hpp>
#include <omath/engines/source_engine/constants.hpp>
namespace
{
struct SourceEngineTraits
{
using PitchAngle = omath::source_engine::PitchAngle;
using ViewAngles = omath::source_engine::ViewAngles;
using Camera = omath::source_engine::Camera;
};
} // namespace
namespace omath::lua::detail
{
void register_source_engine(sol::table& omath_table)
{
register_engine<SourceEngineTraits>(omath_table, "source");
}
} // namespace omath::lua::detail
#endif