Reconstruct readable C++ and organize cohesive source subsystems
Administrative source import: native x86 compilation passed for 423 authored units. Source placement and submission states are migrated separately; this commit does not imply peer acceptance.
Previous head: 35d2a8cb36
Payload SHA256: 592f016d2730c5593bb653aa054c1e5f76a6df72c8f5a09e66f74876e2e33dee
This commit is contained in:
parent
35d2a8cb36
commit
a47d20f8be
890 changed files with 11796 additions and 16664 deletions
|
|
@ -1,61 +0,0 @@
|
|||
#include "Network/Connection.h"
|
||||
#include "Network/PacketLengths.h"
|
||||
#include "Network/PartyJoinPacket.h"
|
||||
#include "UI/WindowManagerWindows.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
// ORIGINAL_SITE: 0x00CF7D40 in fn_21426 (fragment)
|
||||
void SendPartyJoin(
|
||||
CConnection& connection,
|
||||
const PacketLengths& lengths,
|
||||
const std::uint32_t* accountId,
|
||||
const std::uint32_t* characterId
|
||||
) {
|
||||
unsigned char packet[10];
|
||||
const std::uint16_t id = 0x0AE6;
|
||||
std::memcpy(packet, &id, sizeof(id));
|
||||
std::memcpy(packet + 6, accountId, sizeof(*accountId));
|
||||
std::memcpy(packet + 2, characterId, sizeof(*characterId));
|
||||
connection.Send(lengths.FixedLength(id), packet);
|
||||
}
|
||||
|
||||
// ORIGINAL_SITE: 0x00CF7CE6 in fn_21426 (fragment)
|
||||
void SendPartyJoinDecision(
|
||||
CConnection& connection,
|
||||
const PacketLengths& lengths,
|
||||
std::uint32_t characterId,
|
||||
bool accepted,
|
||||
const std::uint32_t* accountId
|
||||
) {
|
||||
unsigned char packet[11];
|
||||
const std::uint16_t id = 0x0AF8;
|
||||
std::memcpy(packet, &id, sizeof(id));
|
||||
std::memcpy(packet + 2, &characterId, sizeof(characterId));
|
||||
packet[10] = accepted;
|
||||
std::memcpy(packet + 6, accountId, sizeof(*accountId));
|
||||
connection.Send(lengths.FixedLength(id), packet);
|
||||
}
|
||||
|
||||
// ORIGINAL_SITE: 0x00CF7C15 in fn_21426 (fragment)
|
||||
void SendPartyInvitationDecision(
|
||||
CConnection& connection,
|
||||
const PacketLengths& lengths,
|
||||
WindowManagerWindows& windows,
|
||||
std::string& pendingName,
|
||||
std::uint32_t identity,
|
||||
bool accepted
|
||||
) {
|
||||
if (accepted) {
|
||||
windows.EnsureWindow(34);
|
||||
} else {
|
||||
pendingName.assign("", 0);
|
||||
}
|
||||
|
||||
unsigned char packet[7];
|
||||
const std::uint16_t id = 0x02C7;
|
||||
std::memcpy(packet, &id, sizeof(id));
|
||||
packet[6] = accepted;
|
||||
std::memcpy(packet + 2, &identity, sizeof(identity));
|
||||
connection.Send(lengths.FixedLength(id), packet);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue