Skip to content

Commit

Permalink
Merge tag 'dev/16.0.0-dev.129' into rc
Browse files Browse the repository at this point in the history
  • Loading branch information
vadzz-dev committed Jan 12, 2024
2 parents f1bca30 + 6cd36af commit 08d90c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions client/src/bindings/ClientBindingsMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,13 @@ static void GetMsPerGameMinute(const v8::FunctionCallbackInfo<v8::Value>& info)
V8_RETURN_INT(ICore::Instance().GetMsPerGameMinute());
}

static void GetServerTime(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE();

V8_RETURN_NUMBER(ICore::Instance().GetServerTime());
}

static void SetMsPerGameMinute(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE_CONTEXT();
Expand Down Expand Up @@ -1445,6 +1452,7 @@ extern V8Module altModule("alt",
// Time managements functions
V8Helpers::RegisterFunc(exports, "setMsPerGameMinute", &SetMsPerGameMinute);
V8Helpers::RegisterFunc(exports, "getMsPerGameMinute", &GetMsPerGameMinute);
V8Helpers::RegisterFunc(exports, "getServerTime", &GetServerTime);

// CEF rendering on texture
V8Helpers::RegisterFunc(exports, "isTextureExistInArchetype", &IsTextureExistInArchetype);
Expand Down
2 changes: 1 addition & 1 deletion shared/deps/cpp-sdk
Submodule cpp-sdk updated 1 files
+1 −0 ICore.h

0 comments on commit 08d90c0

Please sign in to comment.