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