Skip to content

Commit

Permalink
Add invincible setter/getter
Browse files Browse the repository at this point in the history
Former-commit-id: ea11a49
  • Loading branch information
C0kkie committed Sep 2, 2021
1 parent 84d0d85 commit a1762ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/bindings/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,8 @@ extern V8Class v8Player("Player", v8Entity, nullptr, [](v8::Local<v8::FunctionTe

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

V8::SetAccessor<IPlayer, bool, &IPlayer::GetInvincible, &IPlayer::SetInvincible>(isolate, tpl, "invincible");

V8::SetMethod(isolate, tpl, "spawn", &Spawn);
V8::SetMethod(isolate, tpl, "setDateTime", &SetDateTime);
V8::SetMethod(isolate, tpl, "setWeather", &SetWeather);
Expand Down
2 changes: 1 addition & 1 deletion src/cpp-sdk

0 comments on commit a1762ee

Please sign in to comment.