28 lines
1.7 KiB
C++
28 lines
1.7 KiB
C++
#pragma once
|
|
#include "gateway/protocol.hpp"
|
|
#include <optional>
|
|
namespace gateway {
|
|
struct RosterRealm { uint32_t realm_id=70; uint32_t virtual_address=0x01010046; uint32_t super_district=2; };
|
|
// Public static encoder-preflight reasons, never names/GUIDs or packet bytes.
|
|
// CountBound is roster-level; all remaining reasons preserve encoder order.
|
|
enum class RosterValidationReason:uint32_t {
|
|
Ok=0,CountBound=1,UnsupportedPair=2,GenderBound=3,NameShape=4,SourceIdentity=5,VisualType=6
|
|
};
|
|
RosterValidationReason forever_roster_row_reason(const Character&);
|
|
// Explicit partial native presentation view. Only source-valid unsupported
|
|
// race/class pairs may be withheld; malformed/common fields always reject.
|
|
// The caller retains the full source-owned roster and must disclose omissions.
|
|
std::vector<Character> forever_presented_roster(const std::vector<Character>&);
|
|
// Explicit user-approved VISUAL-ONLY aliases. Source Character identity,
|
|
// faction semantics, eligibility and gameplay capabilities are never changed.
|
|
std::optional<uint8_t> forever_roster_preview_race(const Character&);
|
|
std::vector<Character> forever_preview_roster(const std::vector<Character>&);
|
|
Bytes forever_roster_preview(const std::vector<Character>&,RosterRealm,bool realmless=false);
|
|
Bytes forever_account_roster_preview(const std::vector<Character>&,RosterRealm,bool realmless,bool sd_enabled);
|
|
Guid128 forever_player_guid(uint64_t counter,uint32_t realm);
|
|
Guid128 forever_guild_guid(uint32_t id,uint32_t realm);
|
|
Bytes forever_roster(const std::vector<Character>&,RosterRealm,bool realmless=true);
|
|
Bytes forever_account_roster(const std::vector<Character>&,RosterRealm,bool realmless,bool sd_enabled);
|
|
Bytes forever_restrictions(const std::vector<Character>&,RosterRealm);
|
|
}
|