yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::MessageData Struct Reference

#include <message_data.h>

Public Member Functions

 MessageData ()=default
 
 MessageData (int id, int address, const std::string &rawString, const std::vector< uint8_t > &rawData, const std::string &parsedString, const std::vector< uint8_t > &parsedData)
 
 MessageData (const MessageData &other)
 
std::string OptimizeMessageForDictionary (std::string_view message_string, const std::vector< DictionaryEntry > &dictionary)
 
void SetMessage (const std::string &message, const std::vector< DictionaryEntry > &dictionary)
 

Public Attributes

int ID = 0
 
int Address = 0
 
std::string RawString
 
std::string ContentsParsed
 
std::vector< uint8_t > Data
 
std::vector< uint8_t > DataParsed
 

Detailed Description

Definition at line 205 of file message_data.h.

Constructor & Destructor Documentation

◆ MessageData() [1/3]

yaze::editor::MessageData::MessageData ( )
default

◆ MessageData() [2/3]

yaze::editor::MessageData::MessageData ( int id,
int address,
const std::string & rawString,
const std::vector< uint8_t > & rawData,
const std::string & parsedString,
const std::vector< uint8_t > & parsedData )
inline

Definition at line 214 of file message_data.h.

◆ MessageData() [3/3]

yaze::editor::MessageData::MessageData ( const MessageData & other)
inline

Definition at line 226 of file message_data.h.

References Address, ContentsParsed, Data, DataParsed, ID, and RawString.

Member Function Documentation

◆ OptimizeMessageForDictionary()

std::string yaze::editor::MessageData::OptimizeMessageForDictionary ( std::string_view message_string,
const std::vector< DictionaryEntry > & dictionary )
inline

Definition at line 239 of file message_data.h.

References yaze::editor::CHEESE, and yaze::editor::ReplaceAllDictionaryWords().

Referenced by SetMessage().

Here is the call graph for this function:

◆ SetMessage()

void yaze::editor::MessageData::SetMessage ( const std::string & message,
const std::vector< DictionaryEntry > & dictionary )
inline

Definition at line 269 of file message_data.h.

References ContentsParsed, OptimizeMessageForDictionary(), and RawString.

Here is the call graph for this function:

Member Data Documentation

◆ ID

◆ Address

int yaze::editor::MessageData::Address = 0

◆ RawString

std::string yaze::editor::MessageData::RawString

Definition at line 208 of file message_data.h.

Referenced by MessageData(), yaze::editor::ParseSingleMessage(), and SetMessage().

◆ ContentsParsed

std::string yaze::editor::MessageData::ContentsParsed

Definition at line 209 of file message_data.h.

Referenced by MessageData(), yaze::editor::ParseSingleMessage(), and SetMessage().

◆ Data

◆ DataParsed

std::vector<uint8_t> yaze::editor::MessageData::DataParsed

Definition at line 211 of file message_data.h.

Referenced by MessageData(), and yaze::editor::ParseSingleMessage().


The documentation for this struct was generated from the following file: