This commit is contained in:
2026-03-10 17:51:02 +03:00
parent 30e3feb4f8
commit dd59579290
13 changed files with 386 additions and 244 deletions

View File

@@ -0,0 +1,26 @@
//
// Created by orange on 07.03.2026.
//
#ifdef OMATH_ENABLE_LUA
#include "engine_utils.hpp"
#include <omath/engines/unity_engine/camera.hpp>
#include <omath/engines/unity_engine/constants.hpp>
namespace
{
struct UnityEngineTraits
{
using PitchAngle = omath::unity_engine::PitchAngle;
using ViewAngles = omath::unity_engine::ViewAngles;
using Camera = omath::unity_engine::Camera;
};
} // namespace
namespace omath::lua::detail
{
void register_unity_engine(sol::table& omath_table)
{
register_engine<UnityEngineTraits>(omath_table, "unity");
}
} // namespace omath::lua::detail
#endif