Skip to content

Commit

Permalink
Add player moveSpeed getter
Browse files Browse the repository at this point in the history
Former-commit-id: a86b6f9
  • Loading branch information
LeonMrBonnie committed Sep 2, 2021
1 parent e9d5dee commit 3dae4a3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bindings/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,8 @@ extern V8Class v8Player("Player", v8Entity, nullptr, [](v8::Local<v8::FunctionTe

V8::SetAccessor<IPlayer, bool, &IPlayer::IsFlashlightActive>(isolate, tpl, "flashlightActive");

V8::SetAccessor<IPlayer, float, &IPlayer::GetMoveSpeed>(isolate, tpl, "moveSpeed");

V8::SetMethod(isolate, tpl, "spawn", &Spawn);
V8::SetMethod(isolate, tpl, "setDateTime", &SetDateTime);
V8::SetMethod(isolate, tpl, "setWeather", &SetWeather);
Expand Down

0 comments on commit 3dae4a3

Please sign in to comment.