rodecomp/Source/UI/Text/NavigationLink.h
ragnarok-clanker 5edd042708 Decompile 2 functions in Source/UI/Text/NavigationLink.cpp, Source/UI/Text/NavigationLink.h, ...
Batch #4903 by youko: 0 byte-identical, 2 confirmed by peer review.

- fn_10407 NavigationLinkParser::HasLink: logic confirmed by peer review
- fn_10408 NavigationLinkParser::ExpandMessages: logic confirmed by peer review

Peer-reviewed-by: eAthena, alisonrag, Lumen
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 05:48:17 +00:00

28 lines
897 B
C++

#ifndef RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
#define RAGNAROK_SOURCE_UI_TEXT_NAVIGATIONLINK_H
#include <string>
struct NavigationLinkParser {
NavigationLinkParser();
~NavigationLinkParser();
bool HasLink(std::string text);
std::string ExpandMessages(std::string text);
/* 0000 */ bool m_ready;
};
extern NavigationLinkParser* g_navigationLinkParser;
bool CreateNavigationLinkParser();
void DestroyNavigationLinkParser();
std::string FormatMessageArguments(std::string value, int messageId);
int DecodeNavigationNumber(std::string value);
std::string EncodeNavigationNumber(int value);
bool ParseNavigationLink(std::string value, std::string& name, int& x, int& y);
std::string FormatNavigationLink(std::string value, bool brackets);
void DisplayNavigationLink(std::string& output, std::string value);
void ExtractNavigationLink(std::string& output, std::string value);
#endif