nwn_nasher_types

Crates.ionwn_nasher_types
lib.rsnwn_nasher_types
version0.3.1
sourcesrc
created_at2023-05-26 21:45:04.546473
updated_at2023-06-01 06:13:55.025154
descriptionA library to parse and de/serialize the files from the nwn community tool, nasher
homepagehttps://github.com/urothis/rs_nwn_nasher_types
repositoryhttps://github.com/urothis/rs_nwn_nasher_types
max_upload_size
id875415
size177,428
urothis (urothis)

documentation

README

rs_nwn_nasher_types

docs.rs crates.io Crates.io (latest)

A library that provides serialization of Neverwinter Nights json files generated via Nasher

This should allow for the creation of a Rust based module tooling.

Usage

Add the following to your Cargo.toml:

[dependencies]
nwn-nasher-types = "0.3"

Example

use nwn_nasher_types::*;

fn main() {
  let path = "src/module.ifo";
  let nw = NwType::from_file_path(path).expect("Failed to open file");
  match nw {
    Ok(value) => {
      println!("Value: {:?}", value);
    }
    Err(e) => {
      panic!("Failed to deserialize {:?}: {}", path, e);
    }
  }
}
Commit count: 41

cargo fmt