2020-06-13 18:32:09 -04:00
|
|
|
package d2server
|
|
|
|
|
2020-06-18 14:11:04 -04:00
|
|
|
import (
|
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2game/d2player"
|
2020-06-22 20:31:42 -04:00
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2client/d2clientconnectiontype"
|
2020-06-18 14:11:04 -04:00
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket"
|
|
|
|
)
|
2020-06-13 18:32:09 -04:00
|
|
|
|
2020-06-29 17:01:26 -04:00
|
|
|
// ClientConnection is an interface for abstracting local and remote
|
|
|
|
// clients.
|
2020-06-13 18:32:09 -04:00
|
|
|
type ClientConnection interface {
|
2020-07-17 22:11:16 -04:00
|
|
|
GetUniqueID() string
|
2020-06-22 20:31:42 -04:00
|
|
|
GetConnectionType() d2clientconnectiontype.ClientConnectionType
|
2020-06-13 18:32:09 -04:00
|
|
|
SendPacketToClient(packet d2netpacket.NetPacket) error
|
2020-06-18 14:11:04 -04:00
|
|
|
GetPlayerState() *d2player.PlayerState
|
|
|
|
SetPlayerState(playerState *d2player.PlayerState)
|
2020-06-13 18:32:09 -04:00
|
|
|
}
|