Skip to content

Commit

Permalink
Fix receiving "NakamaRTAPI.PartyClose" message (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsnopek authored Apr 25, 2022
1 parent 94f1c81 commit 85cd707
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ The format is based on [keep a changelog](http://keepachangelog.com/) and this p
- Add support for "count_multple" on "NakamaSocket.add_matchmaker_async()" and "NakamaSocket.add_matchmaker_party_async()"
- Add C# support classes to better integrate the .NET client with the Mono version of Godot, allowing HTML5 exports to work

### Fixed

- Fix receiving "NakamaRTAPI.PartyClose" message

## [3.0.0] - 2022-03-28

### Added
Expand Down
4 changes: 2 additions & 2 deletions addons/com.heroiclabs.nakama/api/NakamaRTAPI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ class PartyClose extends NakamaAsyncResult:
# Party ID to close.
var party_id : String

func _init(p_id : String):
party_id = p_id
func _init(p_ex = null).(p_ex):
pass

func serialize():
return NakamaSerializer.serialize(self)
Expand Down
4 changes: 3 additions & 1 deletion addons/com.heroiclabs.nakama/socket/NakamaSocket.gd
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@ func add_matchmaker_party_async(p_party_id : String, p_query : String = "*", p_m
# @param p_party_id - The ID of the party.
# Returns a task to represent the asynchronous operation.
func close_party_async(p_party_id : String):
return _send_async(NakamaRTAPI.PartyClose.new(p_party_id))
var msg := NakamaRTAPI.PartyClose.new()
msg.party_id = p_party_id
return _send_async(msg)

# Create a party.
# @param p_open - Whether or not the party will require join requests to be approved by the party leader.
Expand Down

0 comments on commit 85cd707

Please sign in to comment.