diff --git a/README.md b/README.md index 7e1f81c5..91765004 100644 --- a/README.md +++ b/README.md @@ -55,8 +55,8 @@ package main import ( "fmt" - "github.com/PretendoNetwork/nex-go" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2" + "github.com/PretendoNetwork/nex-go/v2/types" ) func main() { diff --git a/account.go b/account.go index ab27101a..2dbf5e41 100644 --- a/account.go +++ b/account.go @@ -1,6 +1,6 @@ package nex -import "github.com/PretendoNetwork/nex-go/types" +import "github.com/PretendoNetwork/nex-go/v2/types" // Account represents a game server account. // diff --git a/byte_stream_out.go b/byte_stream_out.go index 447ab25f..252733fe 100644 --- a/byte_stream_out.go +++ b/byte_stream_out.go @@ -1,7 +1,7 @@ package nex import ( - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/types" crunch "github.com/superwhiskers/crunch/v3" ) diff --git a/connection_interface.go b/connection_interface.go index e86d8a35..3b1a3d20 100644 --- a/connection_interface.go +++ b/connection_interface.go @@ -4,7 +4,7 @@ package nex import ( "net" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/types" ) // ConnectionInterface defines all the methods a connection should have regardless of server type diff --git a/go.mod b/go.mod index 310f63a7..a58e19ae 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/PretendoNetwork/nex-go +module github.com/PretendoNetwork/nex-go/v2 go 1.21 diff --git a/hpp_client.go b/hpp_client.go index 6d8fa779..c298e5c8 100644 --- a/hpp_client.go +++ b/hpp_client.go @@ -3,7 +3,7 @@ package nex import ( "net" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/types" ) // HPPClient represents a single HPP client diff --git a/hpp_server.go b/hpp_server.go index 61f6085a..ee0df2e6 100644 --- a/hpp_server.go +++ b/hpp_server.go @@ -7,7 +7,7 @@ import ( "net/http" "strconv" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/types" ) // HPPServer represents a bare-bones HPP server diff --git a/init.go b/init.go index 27d94f2f..c95e6812 100644 --- a/init.go +++ b/init.go @@ -1,7 +1,7 @@ package nex import ( - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/types" "github.com/PretendoNetwork/plogger-go" ) diff --git a/kerberos.go b/kerberos.go index fa724bb0..a8251f66 100644 --- a/kerberos.go +++ b/kerberos.go @@ -8,7 +8,7 @@ import ( "errors" "fmt" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/types" ) // KerberosEncryption is a struct representing a Kerberos encryption utility diff --git a/prudp_connection.go b/prudp_connection.go index 4292e462..5bdea136 100644 --- a/prudp_connection.go +++ b/prudp_connection.go @@ -6,8 +6,8 @@ import ( "net" "time" - "github.com/PretendoNetwork/nex-go/constants" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/constants" + "github.com/PretendoNetwork/nex-go/v2/types" ) // PRUDPConnection implements an individual PRUDP virtual connection. diff --git a/prudp_endpoint.go b/prudp_endpoint.go index c7e643a6..a8c2e008 100644 --- a/prudp_endpoint.go +++ b/prudp_endpoint.go @@ -7,8 +7,8 @@ import ( "slices" "time" - "github.com/PretendoNetwork/nex-go/constants" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/constants" + "github.com/PretendoNetwork/nex-go/v2/types" ) // PRUDPEndPoint is an implementation of rdv::PRUDPEndPoint. diff --git a/prudp_packet.go b/prudp_packet.go index e2fed56a..93d1d9f1 100644 --- a/prudp_packet.go +++ b/prudp_packet.go @@ -3,7 +3,7 @@ package nex import ( "crypto/rc4" - "github.com/PretendoNetwork/nex-go/constants" + "github.com/PretendoNetwork/nex-go/v2/constants" ) // PRUDPPacket holds all the fields each packet should have in all PRUDP versions diff --git a/prudp_packet_interface.go b/prudp_packet_interface.go index 337acba7..cf5ef8f1 100644 --- a/prudp_packet_interface.go +++ b/prudp_packet_interface.go @@ -3,7 +3,7 @@ package nex import ( "net" - "github.com/PretendoNetwork/nex-go/constants" + "github.com/PretendoNetwork/nex-go/v2/constants" ) // PRUDPPacketInterface defines all the methods a PRUDP packet should have diff --git a/prudp_packet_lite.go b/prudp_packet_lite.go index 02b84f6e..11a253e2 100644 --- a/prudp_packet_lite.go +++ b/prudp_packet_lite.go @@ -7,7 +7,7 @@ import ( "fmt" "net" - "github.com/PretendoNetwork/nex-go/constants" + "github.com/PretendoNetwork/nex-go/v2/constants" ) // PRUDPPacketLite represents a PRUDPLite packet diff --git a/prudp_packet_v0.go b/prudp_packet_v0.go index 47eb7614..9f5cfd2a 100644 --- a/prudp_packet_v0.go +++ b/prudp_packet_v0.go @@ -9,7 +9,7 @@ import ( "net" "slices" - "github.com/PretendoNetwork/nex-go/constants" + "github.com/PretendoNetwork/nex-go/v2/constants" ) // PRUDPPacketV0 represents a PRUDPv0 packet diff --git a/prudp_packet_v1.go b/prudp_packet_v1.go index ec6f7e43..f462631f 100644 --- a/prudp_packet_v1.go +++ b/prudp_packet_v1.go @@ -9,7 +9,7 @@ import ( "fmt" "net" - "github.com/PretendoNetwork/nex-go/constants" + "github.com/PretendoNetwork/nex-go/v2/constants" ) // PRUDPPacketV1 represents a PRUDPv1 packet diff --git a/prudp_server.go b/prudp_server.go index fa50b017..b573779a 100644 --- a/prudp_server.go +++ b/prudp_server.go @@ -7,7 +7,7 @@ import ( "net" "runtime" - "github.com/PretendoNetwork/nex-go/constants" + "github.com/PretendoNetwork/nex-go/v2/constants" "github.com/lxzan/gws" ) diff --git a/rmc_message.go b/rmc_message.go index d6bd13e9..47ba827c 100644 --- a/rmc_message.go +++ b/rmc_message.go @@ -4,7 +4,7 @@ import ( "errors" "fmt" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2/types" ) // RMCMessage represents a message in the RMC (Remote Method Call) protocol diff --git a/stream_settings.go b/stream_settings.go index 6ee1fac0..374b3650 100644 --- a/stream_settings.go +++ b/stream_settings.go @@ -1,8 +1,8 @@ package nex import ( - "github.com/PretendoNetwork/nex-go/compression" - "github.com/PretendoNetwork/nex-go/encryption" + "github.com/PretendoNetwork/nex-go/v2/compression" + "github.com/PretendoNetwork/nex-go/v2/encryption" ) // StreamSettings is an implementation of rdv::StreamSettings. diff --git a/test/auth.go b/test/auth.go index 5e41e264..e163836a 100644 --- a/test/auth.go +++ b/test/auth.go @@ -4,9 +4,9 @@ package main import ( "fmt" - "github.com/PretendoNetwork/nex-go" - "github.com/PretendoNetwork/nex-go/constants" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2" + "github.com/PretendoNetwork/nex-go/v2/constants" + "github.com/PretendoNetwork/nex-go/v2/types" ) var authServer *nex.PRUDPServer diff --git a/test/generate_ticket.go b/test/generate_ticket.go index 0dcc4462..20af9741 100644 --- a/test/generate_ticket.go +++ b/test/generate_ticket.go @@ -3,8 +3,8 @@ package main import ( "crypto/rand" - "github.com/PretendoNetwork/nex-go" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2" + "github.com/PretendoNetwork/nex-go/v2/types" ) func generateTicket(source *nex.Account, target *nex.Account, sessionKeyLength int) []byte { diff --git a/test/hpp.go b/test/hpp.go index 03ca1bfe..76024e17 100644 --- a/test/hpp.go +++ b/test/hpp.go @@ -3,8 +3,8 @@ package main import ( "fmt" - "github.com/PretendoNetwork/nex-go" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2" + "github.com/PretendoNetwork/nex-go/v2/types" ) var hppServer *nex.HPPServer diff --git a/test/main.go b/test/main.go index 8c927b9d..b886de9a 100644 --- a/test/main.go +++ b/test/main.go @@ -3,8 +3,8 @@ package main import ( "sync" - "github.com/PretendoNetwork/nex-go" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2" + "github.com/PretendoNetwork/nex-go/v2/types" ) var wg sync.WaitGroup diff --git a/test/secure.go b/test/secure.go index 56eaff89..f80b3880 100644 --- a/test/secure.go +++ b/test/secure.go @@ -4,9 +4,9 @@ import ( "fmt" "net" - "github.com/PretendoNetwork/nex-go" - "github.com/PretendoNetwork/nex-go/constants" - "github.com/PretendoNetwork/nex-go/types" + "github.com/PretendoNetwork/nex-go/v2" + "github.com/PretendoNetwork/nex-go/v2/constants" + "github.com/PretendoNetwork/nex-go/v2/types" ) var secureServer *nex.PRUDPServer diff --git a/types/station_url.go b/types/station_url.go index 964f7a27..9bd50ac2 100644 --- a/types/station_url.go +++ b/types/station_url.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/PretendoNetwork/nex-go/constants" + "github.com/PretendoNetwork/nex-go/v2/constants" ) // StationURL is an implementation of rdv::StationURL. diff --git a/virtual_port.go b/virtual_port.go index fdf3d1fe..88362c70 100644 --- a/virtual_port.go +++ b/virtual_port.go @@ -1,6 +1,6 @@ package nex -import "github.com/PretendoNetwork/nex-go/constants" +import "github.com/PretendoNetwork/nex-go/v2/constants" // VirtualPort in an implementation of rdv::VirtualPort. // PRUDP will reuse a single physical socket connection for many virtual PRUDP connections.