3 个版本
| 0.1.2 | 2023 年 9 月 7 日 |
|---|---|
| 0.1.1 | 2023 年 9 月 7 日 |
| 0.1.0 | 2023 年 9 月 7 日 |
1792 in 解析器实现
51KB
1.5K SLoC
RG Formats
此软件包提供各种节奏游戏格式的解析器和序列化器。
目前,仅支持两种格式
sm,用于处理.sm文件sm_msd,用于处理.msd文件,这些文件是.sm和.ssc格式的底层。
文档
文档可以在 [docs-rs] 上找到。
示例用法
示例包含在 examples/ 文件夹中。
lib.rs:
节奏游戏格式
为各种节奏游戏格式提供各种处理器。
这些是目前可用的模块
- [
sm] 用于解析.sm文件。 sm_msd用于解析.msd文件,或通常用于处理.sm和.ssc格式的底层。
单击任意一个模块将提供更多信息。
使用方法
let sm_charts = rg_formats::sm::from_path("my_sm_file.sm")
// an outer io::Error<> indicates whether the file could be read
.expect("failed to open file")
// the inner error indicates whether the contents of the file were valid SM.
.expect("sm file was invalid");
依赖关系
~3–4.5MB
~80K SLoC