#include #include #define SOL_ALL_SAFETIES_ON 1 #include void register_lua(sol::state& lua) { lua.new_usertype("entity", "position", sol::property(&entity::get_position, &entity::set_position)); }