Skip to content

Commit

Permalink
steam stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Riordan-DC committed Oct 9, 2024
1 parent bf95560 commit 602e8f7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_modules/godotsteam/doc_classes/Steam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7704,9 +7704,9 @@
</description>
</signal>
<signal name="lobby_data_update">
<param index="0" name="success" type="int" />
<param index="1" name="lobby_id" type="int" />
<param index="2" name="member_id" type="int" />
<param index="0" name="success" type="int" />
<param index="1" name="lobby_id" type="int" />
<param index="2" name="member_id" type="int" />
<description>
The lobby metadata has changed.
</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ uint64_t SteamMultiplayerPeer::get_lobby_id() {

void SteamMultiplayerPeer::_bind_methods() {
ClassDB::bind_method(D_METHOD("create_lobby", "lobby_type", "max_players"), &SteamMultiplayerPeer::create_lobby, DEFVAL(32));
ClassDB::bind_method(D_METHOD("set_existing_lobby", "lobby_id"), &SteamMultiplayerPeer::set_existing_lobby);
ClassDB::bind_method(D_METHOD("connect_lobby", "lobby_id"), &SteamMultiplayerPeer::join_lobby);
ClassDB::bind_method(D_METHOD("get_state"), &SteamMultiplayerPeer::get_state);
ClassDB::bind_method(D_METHOD("get_lobby_id"), &SteamMultiplayerPeer::get_lobby_id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ class SteamMultiplayerPeer : public MultiplayerPeer {
virtual int get_unique_id() const override;
virtual ConnectionStatus get_connection_status() const override;

void set_existing_lobby(uint64_t lobbyId) {
lobby_state = LOBBY_STATE::LOBBY_STATE_HOSTING;
this->lobby_id.SetFromUint64(lobbyId);
}

// all SteamGodot from here on down

enum CHANNEL_MANAGEMENT {
Expand Down
11 changes: 11 additions & 0 deletions riordans_build_instructions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_windows.html

scons platform=windows tools=yes target=editor -j10 custom_modules=./custom_modules


scons platform=windows target=template_debug arch=x86_64 custom_modules=./custom_modules -j10


I NEED A FEATURE FROM A PR!!!
Do this to cherry-pick the feature for our version.
https://stackoverflow.com/questions/5120038/is-it-possible-to-cherry-pick-a-commit-from-another-git-repository

0 comments on commit 602e8f7

Please sign in to comment.