2020-06-13 18:32:09 -04:00
|
|
|
package d2server
|
|
|
|
|
2020-06-18 14:11:04 -04:00
|
|
|
import (
|
2020-09-20 17:52:01 -04:00
|
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2core/d2hero"
|
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-09-20 17:52:01 -04:00
|
|
|
GetPlayerState() *d2hero.HeroState
|
|
|
|
SetPlayerState(playerState *d2hero.HeroState)
|
2020-06-13 18:32:09 -04:00
|
|
|
}
|