1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-20 03:16:26 -05:00
OpenDiablo2/d2networking/d2server/client_connection.go

18 lines
581 B
Go
Raw Normal View History

package d2server
2020-06-18 14:11:04 -04:00
import (
"github.com/OpenDiablo2/OpenDiablo2/d2game/d2player"
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2client/d2clientconnectiontype"
2020-06-18 14:11:04 -04:00
"github.com/OpenDiablo2/OpenDiablo2/d2networking/d2netpacket"
)
// ClientConnection is an interface for abstracting local and remote
// clients.
type ClientConnection interface {
GetUniqueID() string
GetConnectionType() d2clientconnectiontype.ClientConnectionType
SendPacketToClient(packet d2netpacket.NetPacket) error
2020-06-18 14:11:04 -04:00
GetPlayerState() *d2player.PlayerState
SetPlayerState(playerState *d2player.PlayerState)
}