moved internal/entity to shard/entity

This commit is contained in:
CPunch 2023-12-01 16:56:55 -06:00
parent e355af19ab
commit bcc999db38
12 changed files with 7 additions and 7 deletions

View File

@ -4,8 +4,8 @@ import (
"fmt"
"github.com/CPunch/gopenfusion/cnpeer"
"github.com/CPunch/gopenfusion/internal/entity"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/shard/entity"
)
func (server *ShardServer) freeChat(peer *cnpeer.CNPeer, pkt protocol.Packet) error {

View File

@ -3,7 +3,7 @@ package entity_test
import (
"testing"
"github.com/CPunch/gopenfusion/internal/entity"
"github.com/CPunch/gopenfusion/shard/entity"
"github.com/matryer/is"
)

View File

@ -1,7 +1,7 @@
package shard
import (
"github.com/CPunch/gopenfusion/internal/entity"
"github.com/CPunch/gopenfusion/shard/entity"
)
func (server *ShardServer) addEntity(e entity.Entity) {

View File

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

View File

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

View File

@ -6,7 +6,7 @@ import (
"os"
"github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/entity"
"github.com/CPunch/gopenfusion/shard/entity"
)
type NPCData struct {

View File

@ -6,10 +6,10 @@ import (
"github.com/CPunch/gopenfusion/cnpeer"
"github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/entity"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/internal/redis"
"github.com/CPunch/gopenfusion/internal/service"
"github.com/CPunch/gopenfusion/shard/entity"
)
type PacketHandler func(peer *cnpeer.CNPeer, pkt protocol.Packet) error