2019-09-01 14:27:58 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifndef PROGRAM_LUA_ZM_INTEROP_HPP
|
|
|
|
#define PROGRAM_LUA_ZM_INTEROP_HPP
|
|
|
|
|
|
|
|
#define SOL_ALL_SAFETIES_ON 1
|
|
|
|
#include <sol/forward.hpp>
|
|
|
|
|
|
|
|
#include <zm/vec3.hpp>
|
|
|
|
|
|
|
|
#include <functional>
|
|
|
|
|
2021-03-06 23:14:48 +08:00
|
|
|
bool sol_lua_check(sol::types<zm::vec3>, lua_State* L, int index,
|
|
|
|
std::function<sol::check_handler_type> handler,
|
|
|
|
sol::stack::record& tracking);
|
2019-09-01 14:27:58 +08:00
|
|
|
|
2021-03-06 23:14:48 +08:00
|
|
|
zm::vec3 sol_lua_get(sol::types<zm::vec3>, lua_State* L,
|
|
|
|
int index, sol::stack::record& tracking);
|
2019-09-01 14:27:58 +08:00
|
|
|
|
2021-03-06 23:14:48 +08:00
|
|
|
int sol_lua_push(
|
|
|
|
sol::types<zm::vec3>, lua_State* L, const zm::vec3& v);
|
2019-09-01 14:27:58 +08:00
|
|
|
|
|
|
|
#endif // PROGRAM_LUA_ZM_INTEROP_HPP
|