the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3#include "..\..\Common\Network\NetworkPlayerInterface.h"
4#include "SQRNetworkPlayer.h"
5
6// This is an implementation of the INetworkPlayer interface, for Sony platforms. It effectively wraps the SQRNetworkPlayer class in a non-platform-specific way.
7
8class NetworkPlayerSony : public INetworkPlayer
9{
10public:
11 // Common player interface
12 NetworkPlayerSony(SQRNetworkPlayer *sqrPlayer);
13 virtual unsigned char GetSmallId();
14 virtual void SendData(INetworkPlayer *player, const void *pvData, int dataSize, bool lowPriority, bool ack);
15 virtual bool IsSameSystem(INetworkPlayer *player);
16 virtual int GetOutstandingAckCount();
17 virtual int GetSendQueueSizeBytes( INetworkPlayer *player, bool lowPriority );
18 virtual int GetSendQueueSizeMessages( INetworkPlayer *player, bool lowPriority );
19 virtual int GetCurrentRtt();
20 virtual bool IsHost();
21 virtual bool IsGuest();
22 virtual bool IsLocal();
23 virtual int GetSessionIndex();
24 virtual bool IsTalking();
25 virtual bool IsMutedByLocalUser(int userIndex);
26 virtual bool HasVoice();
27 virtual bool HasCamera();
28 virtual int GetUserIndex();
29 virtual void SetSocket(Socket *pSocket);
30 virtual Socket *GetSocket();
31 virtual const wchar_t *GetOnlineName();
32 virtual wstring GetDisplayName();
33 virtual PlayerUID GetUID();
34
35 void SetUID(PlayerUID UID);
36
37 virtual void SentChunkPacket();
38 virtual int GetTimeSinceLastChunkPacket_ms();
39private:
40 SQRNetworkPlayer *m_sqrPlayer;
41 Socket *m_pSocket;
42 __int64 m_lastChunkPacketTime;
43};