ogmo3

Build Status Crates.io Documentation License

ogmo3 is a Rust crate for reading and writing Ogmo Editor 3 projects and levels.

It is modelled loosely off the API for Haxe's ogmo-3-lib (for now, at least), and aims to provide reasonably type-safe access to the entirety of Ogmo Editor 3.3.0's JSON schema.

Installation

toml [dependencies] ogmo3 = "0.1"

Usage

```rust use ogmo3::{Level, Project};

fn main() { let project = Project::fromfile("./example.ogmo").unwrap(); let level = Level::fromfile("./levels/level.json").unwrap(); } ```

For a full example of how to interpret the data in an Ogmo project, see the sample code.

Caveats

License

This project is licensed under the terms of the MIT License.