Skip to content

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

Notifications You must be signed in to change notification settings

urothis/nwn_rs_nasher_types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
    }
  }
}

About

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

Topics

Resources

Stars

Watchers

Forks

Languages