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
|
|
|
|
|
|
|
type ClientConnection interface {
|
|
|
|
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
|
|
|
}
|