Batch #10019 by ragnarok-clanker: forced by an admin (23 lower score(s), 187 changed function(s)); checked with 447 compiled unit(s), including every includer of Source/Client/Input/Language.h, Source/Client/Mode/ModeDragState.h, Source/Contents/Async/AsyncWorkMgr.h, Source/Contents/Emblems/EmblemCache.h, Source/Contents/Party/AdventurerAgencyMgr.h, Source/Contents/Party/AgencyRequestContext.h, Source/Contents/Party/ChangePartyMasterAsyncWork.h, Source/Contents/Party/LoadMyPartyAsyncWork.h, Source/Contents/Party/LoadPartyInfoAsyncWork.h, Source/Contents/Party/LoadPartyListAsyncWork.h, Source/Contents/Party/PartyInvitation.h, Source/Contents/Party/RegisterPartyAsyncWork.h, Source/Contents/Party/StopRecruitingAsyncWork.h, Source/Contents/Skills/PlayerSkillBundle.h, Source/Contents/UserData/CharacterConfigLoad.h, Source/Network/Packets/PartyJoinPacket.h, Source/UI/Chat/ChatSuggestions.h, Source/UI/Dialogs/UIWaitDBSaveWnd.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Lists/UIListBox.h, Source/UI/Party/UIRequestJoinPartyMgr.h, Source/UI/Shortcuts/NormalItemSlotLoad.h, Source/UI/Shortcuts/ShortcutDetails.h, Source/UI/Shortcuts/ShortcutPress.h, Source/UI/UIBasicCtrl.h, Source/UI/UIStaticItem.h, Source/UI/Window/FrameFocus.h, Source/UI/Window/UIFrameWnd.h, Source/UI/Window/UIVideoWnd.h, Source/UI/Window/WindowManagerWindows.h, Source/UI/Window/WindowMouseHit.h, Source/UI/Window/WindowOrdering.h.
31 lines
970 B
C++
31 lines
970 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_EMBLEMS_EMBLEMCACHE_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_EMBLEMS_EMBLEMCACHE_H
|
|
|
|
#include <cstdint>
|
|
#include <list>
|
|
#include <set>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class UIWindow;
|
|
#include "UI/Window/WindowManagerWindows.h"
|
|
|
|
struct EmblemCache {
|
|
std::uint32_t& guildId;
|
|
std::uint32_t& version;
|
|
std::vector<unsigned char>& data;
|
|
std::set<std::string>& invalid;
|
|
const std::string& accountName;
|
|
const char* rootDirectory;
|
|
const std::list<UIWindow*>* const& modeWindows;
|
|
WindowManagerWindows& windows;
|
|
|
|
std::string Filename(std::uint32_t guild, std::uint32_t revision) const;
|
|
bool IsInvalid(std::string path) const;
|
|
void MarkInvalid(std::string path);
|
|
void Store(const void* bytes, std::uint32_t size, std::uint32_t guild, std::uint32_t revision);
|
|
void Receive(std::uint16_t state, std::uint32_t guild, std::uint32_t revision, const unsigned char* bytes, int size);
|
|
void Refresh(std::uint32_t guild);
|
|
};
|
|
|
|
#endif
|