Skip to content

Commit

Permalink
chore: Update module version to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniElectra committed Apr 7, 2024
1 parent cf42289 commit ed01e5c
Show file tree
Hide file tree
Showing 905 changed files with 2,172 additions and 2,149 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# NEX Protocols Go
## NEX servers with protocol support in Go

[![GoDoc](https://godoc.org/github.com/PretendoNetwork/nex-protocols-go?status.svg)](https://godoc.org/github.com/PretendoNetwork/nex-protocols-go)
[![GoDoc](https://godoc.org/github.com/PretendoNetwork/nex-protocols-go/v2?status.svg)](https://godoc.org/github.com/PretendoNetwork/nex-protocols-go/v2)

### Other NEX libraries
[nex-go](https://github.com/PretendoNetwork/nex-go) - Barebones NEX/PRUDP server implementation
[nex-go](https://github.com/PretendoNetwork/nex-go/v2) - Barebones NEX/PRUDP server implementation

[nex-protocols-common-go](https://github.com/PretendoNetwork/nex-protocols-common-go) - NEX protocols used by many games with premade handlers and a high level API

### Install

`go get github.com/PretendoNetwork/nex-protocols-go`
`go get github.com/PretendoNetwork/nex-protocols-go/v2`

### Usage

`nex-protocols-go` provides a higher level API than the [NEX Go module](https://github.com/PretendoNetwork/nex-go) to the underlying PRUDP server by providing a set of NEX protocols. This module only provides access to the lower level raw RMC method calls, however, and all method handlers must be defined in full manually. For a higher level API, see the [common NEX method handlers module](https://github.com/PretendoNetwork/nex-protocols-common-go)
`nex-protocols-go` provides a higher level API than the [NEX Go module](https://github.com/PretendoNetwork/nex-go/v2) to the underlying PRUDP server by providing a set of NEX protocols. This module only provides access to the lower level raw RMC method calls, however, and all method handlers must be defined in full manually. For a higher level API, see the [common NEX method handlers module](https://github.com/PretendoNetwork/nex-protocols-common-go)

### Example, friends (Wii U) authentication server
### For a complete example, see the complete [Friends Server](https://github.com/PretendoNetwork/friends), and other game servers
Expand All @@ -23,8 +23,8 @@
package main

import (
nex "github.com/PretendoNetwork/nex-go"
ticket_granting "github.com/PretendoNetwork/nex-protocols-go/ticket-granting"
nex "github.com/PretendoNetwork/nex-go/v2"
ticket_granting "github.com/PretendoNetwork/nex-protocols-go/v2/ticket-granting"
)

var nexServer *nex.PRUDPServer
Expand Down
4 changes: 2 additions & 2 deletions aa-user/get_application_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package protocol

import (
nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetApplicationInfo(packet nex.PacketInterface) {
Expand Down
8 changes: 4 additions & 4 deletions aa-user/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"fmt"
"slices"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
aauser_types "github.com/PretendoNetwork/nex-protocols-go/aa-user/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
aauser_types "github.com/PretendoNetwork/nex-protocols-go/v2/aa-user/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

const (
Expand Down
6 changes: 3 additions & 3 deletions aa-user/register_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleRegisterApplication(packet nex.PacketInterface) {
Expand Down
8 changes: 4 additions & 4 deletions aa-user/set_application_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
aauser_types "github.com/PretendoNetwork/nex-protocols-go/aa-user/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
aauser_types "github.com/PretendoNetwork/nex-protocols-go/v2/aa-user/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleSetApplicationInfo(packet nex.PacketInterface) {
Expand Down
2 changes: 1 addition & 1 deletion aa-user/types/application_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"strings"

"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-go/v2/types"
)

// ApplicationInfo is a type within the AAUser protocol
Expand Down
6 changes: 3 additions & 3 deletions aa-user/unregister_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleUnregisterApplication(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/change_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleChangePassword(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/change_password_by_guest.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleChangePasswordByGuest(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/create_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleCreateAccount(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/create_account_with_custom_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleCreateAccountWithCustomData(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/custom_create_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleCustomCreateAccount(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/delete_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleDeleteAccount(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/disable_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleDisableAccount(packet nex.PacketInterface) {
Expand Down
4 changes: 2 additions & 2 deletions account-management/disconnect_all_principals.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package protocol

import (
nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleDisconnectAllPrincipals(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/disconnect_principal.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleDisconnectPrincipal(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/find_by_name_like.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleFindByNameLike(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/find_by_name_regex.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleFindByNameRegex(packet nex.PacketInterface) {
Expand Down
4 changes: 2 additions & 2 deletions account-management/get_account_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package protocol

import (
nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetAccountData(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/get_last_connection_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetLastConnectionStats(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/get_multiple_public_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetMultiplePublicData(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/get_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetName(packet nex.PacketInterface) {
Expand Down
4 changes: 2 additions & 2 deletions account-management/get_private_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package protocol

import (
nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetPrivateData(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/get_public_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetPublicData(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/get_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleGetStatus(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/lookup_or_create_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleLookupOrCreateAccount(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/nintendo_create_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package protocol
import (
"fmt"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleNintendoCreateAccount(packet nex.PacketInterface) {
Expand Down
6 changes: 3 additions & 3 deletions account-management/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"fmt"
"slices"

nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-go/types"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-go/v2/types"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions account-management/reset_password.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package protocol

import (
nex "github.com/PretendoNetwork/nex-go"
"github.com/PretendoNetwork/nex-protocols-go/globals"
nex "github.com/PretendoNetwork/nex-go/v2"
"github.com/PretendoNetwork/nex-protocols-go/v2/globals"
)

func (protocol *Protocol) handleResetPassword(packet nex.PacketInterface) {
Expand Down
Loading

0 comments on commit ed01e5c

Please sign in to comment.