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