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