2020-06-13 22:32:09 +00:00
|
|
|
package d2server
|
|
|
|
|
2020-06-18 18:11:04 +00:00
|
|
|
import (
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2game/d2player"
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket"
|
|
|
|
)
|
2020-06-13 22:32:09 +00:00
|
|
|
|
|
|
|
type ClientConnection interface {
|
|
|
|
GetUniqueId() string
|
|
|
|
GetConnectionType() string
|
|
|
|
SendPacketToClient(packet d2netpacket.NetPacket) error
|
2020-06-18 18:11:04 +00:00
|
|
|
GetPlayerState() *d2player.PlayerState
|
|
|
|
SetPlayerState(playerState *d2player.PlayerState)
|
2020-06-13 22:32:09 +00:00
|
|
|
}
|