Skip to content

Commit

Permalink
Merge pull request #56 from C0kkie/add_invincible
Browse files Browse the repository at this point in the history
Add invincible setter/getter

Former-commit-id: 44fa382
  • Loading branch information
FabianTerhorst authored Sep 2, 2021
2 parents 84d0d85 + a1762ee commit 8c00644
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 8c00644

Please sign in to comment.