rpg-types 0.0.0

RPG Maker type definitions
Documentation
  • Coverage
  • 92.31%
    12 out of 13 items documented1 out of 4 items with examples
  • Size
  • Source code size: 6.23 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 19s Average build duration of successful builds.
  • all releases: 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • fqq

rpg-types

RPG Maker 类型定义库,提供 RPG Maker 系列游戏中使用的各种数据类型的 Rust 定义。

功能

  • 类型定义:提供 RPG Maker 游戏中常见数据结构的 Rust 类型定义
  • 错误处理:定义了专门的错误类型,用于处理 RPG Maker 数据相关的错误
  • 类型安全:使用 Rust 的类型系统确保数据操作的安全性

依赖

无外部依赖,纯 Rust 实现。

安装

将此库添加到你的 Cargo.toml 文件中:

[dependencies]
rpg-types = { path = "path/to/rpg-types" }

使用示例

使用错误类型

use rpg_types::errors::RpgError;

fn main() {
    let error = RpgError::InvalidData("Invalid RPG Maker data".to_string());
    println!("Error: {:?}", error);
}

模块结构

  • src/lib.rs:导出模块和公共 API
  • src/errors.rs:定义错误类型

支持的类型

  • 错误类型RpgError - 用于表示 RPG Maker 数据相关的错误

许可证

MIT 许可证