rodecomp/Source/Contents/ForbiddenWords.h
ragnarok-clanker afaf9ab6db Decompile fn_22016 (CGameMode::ReceiveClanChat)
Batch #9023 by youko: 0 byte-identical, 1 confirmed by peer review.

- fn_22016 CGameMode::ReceiveClanChat: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, pedrao, dori
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-31 23:45:34 +00:00

23 lines
567 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_FORBIDDENWORDS_H
#define RAGNAROK_SOURCE_CONTENTS_FORBIDDENWORDS_H
#include <string>
#include <vector>
class CCommonObject;
class ResourceBytes;
struct ForbiddenWords {
/* 0000 */ std::vector<const char*> words;
bool Load(const char* name, CCommonObject& storage, ResourceBytes& file);
bool Allows(const char* text) const;
bool Contains(const char* text) const;
void Mask(char* text, std::string* value = nullptr) const;
};
static_assert(sizeof(ForbiddenWords) == 0xC);
extern ForbiddenWords g_forbiddenWords;
#endif