the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class Socket;
4
5// This is the platform independent interface for dealing with players within a network game. This should be used directly by game code (and GameNetworkManager) rather than the platform-specific implementations.
6
7class INetworkPlayer
8{
9public:
10 virtual ~INetworkPlayer() {}
11 virtual unsigned char GetSmallId() = 0;
12 virtual void SendData(INetworkPlayer *player, const void *pvData, int dataSize, bool lowPriority, bool ack) = 0;
13 virtual bool IsSameSystem(INetworkPlayer *player) = 0;
14 virtual int GetOutstandingAckCount() = 0;
15 virtual int GetSendQueueSizeBytes( INetworkPlayer *player, bool lowPriority ) = 0;
16 virtual int GetSendQueueSizeMessages( INetworkPlayer *player, bool lowPriority ) = 0;
17 virtual int GetCurrentRtt() = 0;
18 virtual bool IsHost() = 0;
19 virtual bool IsGuest() = 0;
20 virtual bool IsLocal() = 0;
21 virtual int GetSessionIndex() = 0;
22 virtual bool IsTalking() = 0;
23 virtual bool IsMutedByLocalUser(int userIndex) = 0;
24 virtual bool HasVoice() = 0;
25 virtual bool HasCamera() = 0;
26 virtual int GetUserIndex() = 0;
27 virtual void SetSocket(Socket *pSocket) = 0;
28 virtual Socket *GetSocket() = 0;
29 virtual const wchar_t *GetOnlineName() = 0;
30 virtual wstring GetDisplayName() = 0;
31 virtual PlayerUID GetUID() = 0;
32 virtual void SentChunkPacket() = 0;
33 virtual int GetTimeSinceLastChunkPacket_ms() = 0;
34};