mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-12 23:40:53 +01:00
13 lines
331 B
C++
13 lines
331 B
C++
#include "GameServer.h"
|
|
#include "World.h"
|
|
|
|
namespace Script
|
|
{
|
|
void CreateWorldBindings(sol::state_view aState)
|
|
{
|
|
auto type =
|
|
aState.new_usertype<World>("World", sol::meta_function::construct, sol::no_constructor);
|
|
|
|
type["get"] = []() -> World& { return GameServer::Get()->GetWorld(); };
|
|
}
|
|
} // namespace Script
|