F4MP/codigos originales/tiltedcode/Code/server/Scripting/World_Bindings.cpp

14 lines
331 B
C++
Raw Normal View History

#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