mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
12 lines
375 B
C++
12 lines
375 B
C++
#include "GameServer.h"
|
|
|
|
namespace Script
|
|
{
|
|
void CreateScriptServiceBindings(sol::state_view aState)
|
|
{
|
|
auto scriptType =
|
|
aState.new_usertype<ScriptService>("ScriptService", sol::meta_function::construct, sol::no_constructor);
|
|
|
|
scriptType["get"] = []() -> ScriptService& { return GameServer::Get()->GetWorld().GetScriptService(); };
|
|
}
|
|
} // namespace Script
|