|
|
@ -943,13 +943,13 @@ struct SendFriendInviteTrans : NetAuthTrans { |
|
|
|
void * m_param; |
|
|
|
void * m_param; |
|
|
|
|
|
|
|
|
|
|
|
// send
|
|
|
|
// send
|
|
|
|
wchar_t m_emailAddress[kMaxEmailAddressLength]; |
|
|
|
plString m_emailAddress; |
|
|
|
wchar_t m_toName[kMaxPlayerNameLength]; |
|
|
|
plString m_toName; |
|
|
|
plUUID m_inviteUuid; |
|
|
|
plUUID m_inviteUuid; |
|
|
|
|
|
|
|
|
|
|
|
SendFriendInviteTrans( |
|
|
|
SendFriendInviteTrans( |
|
|
|
const wchar_t emailAddr[], |
|
|
|
const plString& emailAddr, |
|
|
|
const wchar_t toName[], |
|
|
|
const plString& toName, |
|
|
|
const plUUID& inviteUuid, |
|
|
|
const plUUID& inviteUuid, |
|
|
|
FNetCliAuthSendFriendInviteCallback callback, |
|
|
|
FNetCliAuthSendFriendInviteCallback callback, |
|
|
|
void * param |
|
|
|
void * param |
|
|
@ -4411,8 +4411,8 @@ bool ChangePlayerNameRequestTrans::Recv ( |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
SendFriendInviteTrans::SendFriendInviteTrans ( |
|
|
|
SendFriendInviteTrans::SendFriendInviteTrans ( |
|
|
|
const wchar_t emailAddr[], |
|
|
|
const plString& emailAddr, |
|
|
|
const wchar_t toName[], |
|
|
|
const plString& toName, |
|
|
|
const plUUID& inviteUuid, |
|
|
|
const plUUID& inviteUuid, |
|
|
|
FNetCliAuthSendFriendInviteCallback callback, |
|
|
|
FNetCliAuthSendFriendInviteCallback callback, |
|
|
|
void * param |
|
|
|
void * param |
|
|
@ -4420,9 +4420,9 @@ SendFriendInviteTrans::SendFriendInviteTrans ( |
|
|
|
, m_callback(callback) |
|
|
|
, m_callback(callback) |
|
|
|
, m_param(param) |
|
|
|
, m_param(param) |
|
|
|
, m_inviteUuid(inviteUuid) |
|
|
|
, m_inviteUuid(inviteUuid) |
|
|
|
|
|
|
|
, m_toName(toName) |
|
|
|
|
|
|
|
, m_emailAddress(emailAddr) |
|
|
|
{ |
|
|
|
{ |
|
|
|
StrCopy(m_emailAddress, emailAddr, arrsize(m_emailAddress)); |
|
|
|
|
|
|
|
StrCopy(m_toName, toName, arrsize(m_toName)); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
@ -4430,12 +4430,15 @@ bool SendFriendInviteTrans::Send () { |
|
|
|
if (!AcquireConn()) |
|
|
|
if (!AcquireConn()) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plStringBuffer<uint16_t> emailAddress = m_emailAddress.ToUtf16(); |
|
|
|
|
|
|
|
plStringBuffer<uint16_t> toName = m_toName.ToUtf16(); |
|
|
|
|
|
|
|
|
|
|
|
const uintptr_t msg[] = { |
|
|
|
const uintptr_t msg[] = { |
|
|
|
kCli2Auth_SendFriendInviteRequest, |
|
|
|
kCli2Auth_SendFriendInviteRequest, |
|
|
|
m_transId, |
|
|
|
m_transId, |
|
|
|
(uintptr_t) &m_inviteUuid, |
|
|
|
(uintptr_t) &m_inviteUuid, |
|
|
|
(uintptr_t) m_emailAddress, |
|
|
|
(uintptr_t) emailAddress.GetData(), |
|
|
|
(uintptr_t) m_toName, |
|
|
|
(uintptr_t) toName.GetData(), |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
m_conn->Send(msg, arrsize(msg)); |
|
|
|
m_conn->Send(msg, arrsize(msg)); |
|
|
@ -5902,8 +5905,8 @@ void NetCliAuthChangePlayerNameRequest ( |
|
|
|
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
//============================================================================
|
|
|
|
void NetCliAuthSendFriendInvite ( |
|
|
|
void NetCliAuthSendFriendInvite ( |
|
|
|
const wchar_t emailAddress[], |
|
|
|
const plString& emailAddress, |
|
|
|
const wchar_t toName[], |
|
|
|
const plString& toName, |
|
|
|
const plUUID& inviteUuid, |
|
|
|
const plUUID& inviteUuid, |
|
|
|
FNetCliAuthSendFriendInviteCallback callback, |
|
|
|
FNetCliAuthSendFriendInviteCallback callback, |
|
|
|
void * param |
|
|
|
void * param |
|
|
|