Skip to content

Commit

Permalink
server: Add Player.removeHeadBlendData
Browse files Browse the repository at this point in the history
  • Loading branch information
xLuxy committed Oct 21, 2023
1 parent 90d89d6 commit 0a5e1c5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/src/bindings/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,14 @@ static void SetHeadBlendData(const v8::FunctionCallbackInfo<v8::Value>& info)
player->SetHeadBlendData(shapeFirstID, shapeSecondID, shapeThirdID, skinFirstID, skinSecondID, skinThirdID, shapeMix, skinMix, thirdMix);
}

static void RemoveHeadBlendData(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE_CONTEXT();
V8_GET_THIS_BASE_OBJECT(player, IPlayer);

player->RemoveHeadBlendData();
}

static void GetHeadBlendData(const v8::FunctionCallbackInfo<v8::Value>& info)
{
V8_GET_ISOLATE_CONTEXT();
Expand Down Expand Up @@ -1557,6 +1565,7 @@ extern V8Class v8Player("Player",
V8Helpers::SetMethod(isolate, tpl, "setHeadBlendPaletteColor", &SetHeadBlendPaletteColor);
V8Helpers::SetMethod(isolate, tpl, "getHeadBlendPaletteColor", &GetHeadBlendPaletteColor);
V8Helpers::SetMethod(isolate, tpl, "setHeadBlendData", &SetHeadBlendData);
V8Helpers::SetMethod(isolate, tpl, "removeHeadBlendData", &RemoveHeadBlendData);
V8Helpers::SetMethod(isolate, tpl, "getHeadBlendData", &GetHeadBlendData);
V8Helpers::SetMethod(isolate, tpl, "setEyeColor", &SetEyeColor);
V8Helpers::SetMethod(isolate, tpl, "getEyeColor", &GetEyeColor);
Expand Down

0 comments on commit 0a5e1c5

Please sign in to comment.