-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also includes partial support for communities. They can be created and you can join one, but no statistics will be shown since legacy Ranking isn't implemented. Partially solves #3
- Loading branch information
1 parent
dd45229
commit fbdc152
Showing
5 changed files
with
74 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
module github.com/PretendoNetwork/mario-kart-7 | ||
|
||
go 1.21 | ||
go 1.22.7 | ||
|
||
toolchain go1.23.2 | ||
|
||
require ( | ||
github.com/PretendoNetwork/grpc-go v1.0.2 | ||
github.com/PretendoNetwork/nex-go/v2 v2.0.1 | ||
github.com/PretendoNetwork/nex-protocols-common-go/v2 v2.0.2 | ||
github.com/PretendoNetwork/nex-protocols-go/v2 v2.0.1 | ||
github.com/PretendoNetwork/nex-go/v2 v2.0.5 | ||
github.com/PretendoNetwork/nex-protocols-common-go/v2 v2.0.7-0.20241116235837-ce1a92968ec9 | ||
github.com/PretendoNetwork/nex-protocols-go/v2 v2.0.4 | ||
github.com/PretendoNetwork/plogger-go v1.0.4 | ||
github.com/joho/godotenv v1.5.1 | ||
github.com/lib/pq v1.10.9 | ||
google.golang.org/grpc v1.63.0 | ||
google.golang.org/grpc v1.68.0 | ||
) | ||
|
||
require ( | ||
github.com/PretendoNetwork/pq-extended v1.0.0 // indirect | ||
github.com/dolthub/maphash v0.1.0 // indirect | ||
github.com/fatih/color v1.16.0 // indirect | ||
github.com/fatih/color v1.18.0 // indirect | ||
github.com/golang/protobuf v1.5.4 // indirect | ||
github.com/jwalton/go-supportscolor v1.2.0 // indirect | ||
github.com/klauspost/compress v1.17.7 // indirect | ||
github.com/lxzan/gws v1.8.1 // indirect | ||
github.com/klauspost/compress v1.17.11 // indirect | ||
github.com/lxzan/gws v1.8.8 // indirect | ||
github.com/mattn/go-colorable v0.1.13 // indirect | ||
github.com/mattn/go-isatty v0.0.20 // indirect | ||
github.com/rasky/go-lzo v0.0.0-20200203143853-96a758eda86e // indirect | ||
github.com/superwhiskers/crunch/v3 v3.5.7 // indirect | ||
golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect | ||
golang.org/x/mod v0.17.0 // indirect | ||
golang.org/x/net v0.24.0 // indirect | ||
golang.org/x/sys v0.19.0 // indirect | ||
golang.org/x/term v0.19.0 // indirect | ||
golang.org/x/text v0.14.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect | ||
google.golang.org/protobuf v1.33.0 // indirect | ||
golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f // indirect | ||
golang.org/x/mod v0.22.0 // indirect | ||
golang.org/x/net v0.31.0 // indirect | ||
golang.org/x/sys v0.27.0 // indirect | ||
golang.org/x/term v0.26.0 // indirect | ||
golang.org/x/text v0.20.0 // indirect | ||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241113202542-65e8d215514f // indirect | ||
google.golang.org/protobuf v1.35.2 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 3 additions & 8 deletions
11
nex/matchmake-extension/common/cleanup_search_matchmake_session.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
package nex_matchmake_extension_common | ||
|
||
import ( | ||
"github.com/PretendoNetwork/nex-go/v2/types" | ||
matchmaking_types "github.com/PretendoNetwork/nex-protocols-go/v2/match-making/types" | ||
match_making_types "github.com/PretendoNetwork/nex-protocols-go/v2/match-making/types" | ||
) | ||
|
||
func CleanupSearchMatchmakeSession(matchmakeSession *matchmaking_types.MatchmakeSession) { | ||
// Cleanup VR | ||
matchmakeSession.Attributes.SetIndex(1, types.NewPrimitiveU32(0)) | ||
|
||
// Cleanup participation count | ||
matchmakeSession.ParticipationCount.Value = 0 | ||
func CleanupSearchMatchmakeSession(matchmakeSession *match_making_types.MatchmakeSession) { | ||
// No changes needed | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters