Royal
A Rust library for parsing game dialogue message formats.
Features
- Parse structured dialogue messages
- Support for character names, message IDs, and box types
- Handle lipsync flags and wait-for-input markers
- Clean content extraction
Usage
Add this to your Cargo.toml:
[]
= "0.1.2"
Example usage:
use Message;
Message Format
The parser handles messages in the following format:
- Header:
[msg MESSAGE_TYPE_MESSAGE_ID [CHARACTER]] - Content markers:
[s]: Start of message[f 4 10 65535 0 0]: Lipsync marker[f 1 3 65535]: Message end marker[w]: Wait for input[e]: End of message
License
This project is licensed under the GNU General Public License v3.0 or later - see the LICENSE file for details.