yaze 0.2.0
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::app::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 ToString ()
 
std::string OptimizeMessageForDictionary (std::string messageString, const std::vector< DictionaryEntry > &dictionary)
 
void SetMessage (const std::string &message, const std::vector< DictionaryEntry > &dictionary)
 

Public Attributes

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

Detailed Description

Definition at line 89 of file message_data.h.

Constructor & Destructor Documentation

◆ MessageData() [1/3]

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

◆ MessageData() [2/3]

yaze::app::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 98 of file message_data.h.

◆ MessageData() [3/3]

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

Definition at line 110 of file message_data.h.

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

Member Function Documentation

◆ ToString()

std::string yaze::app::editor::MessageData::ToString ( )
inline

Definition at line 119 of file message_data.h.

References ContentsParsed, and ID.

◆ OptimizeMessageForDictionary()

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

Definition at line 123 of file message_data.h.

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

Referenced by SetMessage().

Here is the call graph for this function:

◆ SetMessage()

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

Definition at line 150 of file message_data.h.

References ContentsParsed, OptimizeMessageForDictionary(), and RawString.

Here is the call graph for this function:

Member Data Documentation

◆ ID

int yaze::app::editor::MessageData::ID

◆ Address

int yaze::app::editor::MessageData::Address

Definition at line 91 of file message_data.h.

Referenced by MessageData().

◆ RawString

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

Definition at line 92 of file message_data.h.

Referenced by MessageData(), and SetMessage().

◆ ContentsParsed

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

Definition at line 93 of file message_data.h.

Referenced by MessageData(), SetMessage(), and ToString().

◆ Data

std::vector<uint8_t> yaze::app::editor::MessageData::Data

◆ DataParsed

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

Definition at line 95 of file message_data.h.

Referenced by MessageData().


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