mirror of
https://github.com/Jous99/F4MP.git
synced 2026-01-13 00:20:54 +01:00
14 lines
331 B
C++
14 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
|