blob: 9c750e95097002d283d1a36cfb6ac447df3c824b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
#include "stdafx.h"
#include "NetworkPlayerSony.h"
NetworkPlayerSony::NetworkPlayerSony(SQRNetworkPlayer *qnetPlayer)
{
m_sqrPlayer = qnetPlayer;
m_pSocket = NULL;
}
unsigned char NetworkPlayerSony::GetSmallId()
{
return m_sqrPlayer->GetSmallId();
}
void NetworkPlayerSony::SendData(INetworkPlayer *player, const void *pvData, int dataSize, bool lowPriority)
{
// TODO - handle priority
m_sqrPlayer->SendData( ((NetworkPlayerSony *)player)->m_sqrPlayer, pvData, dataSize );
}
bool NetworkPlayerSony::IsSameSystem(INetworkPlayer *player)
{
return m_sqrPlayer->IsSameSystem(((NetworkPlayerSony *)player)->m_sqrPlayer);
}
int NetworkPlayerSony::GetSendQueueSizeBytes( INetworkPlayer *player, bool lowPriority )
{
return 0; // TODO
}
int NetworkPlayerSony::GetSendQueueSizeMessages( INetworkPlayer *player, bool lowPriority )
{
return 0; // TODO
}
int NetworkPlayerSony::GetCurrentRtt()
{
return 0; // TODO
}
bool NetworkPlayerSony::IsHost()
{
return m_sqrPlayer->IsHost();
}
bool NetworkPlayerSony::IsGuest()
{
return false; // TODO
}
bool NetworkPlayerSony::IsLocal()
{
return m_sqrPlayer->IsLocal();
}
int NetworkPlayerSony::GetSessionIndex()
{
return m_sqrPlayer->GetSessionIndex();
}
bool NetworkPlayerSony::IsTalking()
{
return m_sqrPlayer->IsTalking();
}
bool NetworkPlayerSony::IsMutedByLocalUser(int userIndex)
{
return m_sqrPlayer->IsMutedByLocalUser(userIndex);
}
bool NetworkPlayerSony::HasVoice()
{
return m_sqrPlayer->HasVoice();
}
bool NetworkPlayerSony::HasCamera()
{
return false; // TODO
}
int NetworkPlayerSony::GetUserIndex()
{
return m_sqrPlayer->GetLocalPlayerIndex();
}
void NetworkPlayerSony::SetSocket(Socket *pSocket)
{
m_pSocket = pSocket;
}
Socket *NetworkPlayerSony::GetSocket()
{
return m_pSocket;
}
const wchar_t *NetworkPlayerSony::GetOnlineName()
{
return m_sqrPlayer->GetName();
}
wstring NetworkPlayerSony::GetDisplayName()
{
return m_sqrPlayer->GetName();
}
PlayerUID NetworkPlayerSony::GetUID()
{
return m_sqrPlayer->GetUID();
}
void NetworkPlayerSony::SetUID(PlayerUID UID)
{
m_sqrPlayer->SetUID(UID);
}
|