moved internal/protocol -> cnet/protocol

This commit is contained in:
CPunch 2023-12-01 19:56:23 -06:00
parent b07e9ddbcb
commit 557117f093
20 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@ import (
"net"
"sync/atomic"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
)
const (

View File

@ -4,7 +4,7 @@ import (
"bytes"
"testing"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/matryer/is"
)

View File

@ -10,8 +10,8 @@ import (
"strconv"
"sync"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/protocol"
)
type PacketHandler func(peer *Peer, pkt protocol.Packet) error

View File

@ -11,7 +11,7 @@ import (
"time"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/matryer/is"
)

View File

@ -6,7 +6,7 @@ import (
"golang.org/x/crypto/bcrypt"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/georgysavva/scany/v2/sqlscan"
)

View File

@ -8,8 +8,8 @@ import (
"github.com/matryer/is"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/bitcomplete/sqltestutil"
)

View File

@ -3,7 +3,7 @@ package db
import (
"database/sql"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
)
type Inventory struct {

View File

@ -3,8 +3,8 @@ package db
import (
"database/sql"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/blockloop/scan"
)

View File

@ -8,9 +8,9 @@ import (
"math/rand"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/internal/redis"
"github.com/CPunch/gopenfusion/util"
)

View File

@ -4,8 +4,8 @@ import (
"context"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/internal/redis"
)

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/shard/entity"
)

View File

@ -4,7 +4,7 @@ import (
"sync/atomic"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
)
type NPC struct {

View File

@ -2,8 +2,8 @@ package entity
import (
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
)
type Player struct {

View File

@ -5,7 +5,7 @@ import (
"log"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/redis"
"github.com/CPunch/gopenfusion/shard/entity"
"github.com/CPunch/gopenfusion/util"

View File

@ -4,7 +4,7 @@ import (
"fmt"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/shard/entity"
"github.com/CPunch/gopenfusion/util"
)

View File

@ -4,9 +4,9 @@ import (
"context"
"github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/internal/redis"
"github.com/CPunch/gopenfusion/shard/entity"
)