mirror of
https://github.com/Patoke/LCERenewed.git
synced 2026-10-10 16:05:11 +00:00
feat: init
This commit is contained in:
commit
25809b8455
18807 files changed
+3944357
No files matched your search
@@ -0,0 +1,49 @@
|
||||
#pragma once
|
||||
|
||||
#include "..\..\Common\Network\NetworkPlayerInterface.h"
|
||||
|
||||
// This is an implementation of the INetworkPlayer interface, for Xbox 360. It effectively wraps the IQNetPlayer class in a non-platform-specific way. It is
|
||||
// managed by PlatformNetworkManagerXbox.
|
||||
|
||||
class NetworkPlayerXbox : public INetworkPlayer
|
||||
{
|
||||
public:
|
||||
// Common player interface
|
||||
NetworkPlayerXbox(IQNetPlayer *qnetPlayer);
|
||||
NetworkPlayerXbox(IQNetPlayer *qnetPlayer, Socket *pSocket)
|
||||
{
|
||||
m_qnetPlayer = qnetPlayer;
|
||||
m_pSocket = pSocket;
|
||||
m_lastChunkPacketTime = 0;
|
||||
}
|
||||
virtual unsigned char GetSmallId();
|
||||
virtual void SendData(INetworkPlayer *player, const void *pvData, int dataSize, bool lowPriority, bool ack);
|
||||
virtual bool IsSameSystem(INetworkPlayer *player);
|
||||
virtual int GetOutstandingAckCount();
|
||||
virtual int GetSendQueueSizeBytes( INetworkPlayer *player, bool lowPriority );
|
||||
virtual int GetSendQueueSizeMessages( INetworkPlayer *player, bool lowPriority );
|
||||
virtual int GetCurrentRtt();
|
||||
virtual bool IsHost();
|
||||
virtual bool IsGuest();
|
||||
virtual bool IsLocal();
|
||||
virtual int GetSessionIndex();
|
||||
virtual bool IsTalking();
|
||||
virtual bool IsMutedByLocalUser(int userIndex);
|
||||
virtual bool HasVoice();
|
||||
virtual bool HasCamera();
|
||||
virtual int GetUserIndex();
|
||||
virtual void SetSocket(Socket *pSocket);
|
||||
virtual Socket *GetSocket();
|
||||
virtual const wchar_t *GetOnlineName();
|
||||
virtual std::wstring GetDisplayName();
|
||||
virtual PlayerUID GetUID();
|
||||
virtual void SentChunkPacket();
|
||||
virtual int GetTimeSinceLastChunkPacket_ms();
|
||||
|
||||
// Extra xbox-specific things
|
||||
IQNetPlayer *GetQNetPlayer();
|
||||
private:
|
||||
IQNetPlayer *m_qnetPlayer;
|
||||
Socket *m_pSocket;
|
||||
__int64 m_lastChunkPacketTime;
|
||||
};
|
||||
Reference in new issue
Block a user