Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThePhD/sol2
/ register_lua
Function
register_lua
examples/customization/source/lua_interop.cpp:8–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
6
#include <sol/sol.hpp>
7
8
void register_lua(sol::state& lua) {
9
lua.new_usertype<entity>(
"entity"
,
10
"position"
,
11
sol::property(
12
&entity::get_position, &entity::set_position));
13
}
Callers
1
main
Function · 0.85
Calls
1
property
Function · 0.85
Tested by
no test coverage detected