From 5285964e3098ebd91e52f2cfbd1c22bcb27fbf37 Mon Sep 17 00:00:00 2001 From: Vadim Zubkov Date: Tue, 25 Jul 2023 17:46:04 +0300 Subject: [PATCH] server: add Vehicle.steeringAngle, Vehicle.accelerationLevel & Vehicle.brakeLevel --- server/src/bindings/Vehicle.cpp | 4 ++++ shared/deps/cpp-sdk | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/server/src/bindings/Vehicle.cpp b/server/src/bindings/Vehicle.cpp index 68405147..b914c626 100644 --- a/server/src/bindings/Vehicle.cpp +++ b/server/src/bindings/Vehicle.cpp @@ -367,6 +367,10 @@ extern V8Class v8Vehicle("Vehicle", V8Helpers::SetAccessor(isolate, tpl, "attached"); V8Helpers::SetAccessor(isolate, tpl, "attachedTo"); + V8Helpers::SetAccessor(isolate, tpl, "steeringAngle"); + V8Helpers::SetAccessor(isolate, tpl, "accelerationLevel"); + V8Helpers::SetAccessor(isolate, tpl, "brakeLevel"); + // Train getter/setter V8Helpers::SetAccessor(isolate, tpl, "isMissionTrain"); V8Helpers::SetAccessor(isolate, tpl, "trainTrackId"); diff --git a/shared/deps/cpp-sdk b/shared/deps/cpp-sdk index c5b83d73..6f3cb0c0 160000 --- a/shared/deps/cpp-sdk +++ b/shared/deps/cpp-sdk @@ -1 +1 @@ -Subproject commit c5b83d73b355d5a20d291b24122f439458a2e781 +Subproject commit 6f3cb0c0a691279bf4d511401271f85abb28b2df