Crate nwn_nasher_types

source ·
Expand description

Neverwinter Nights decompiled module file reader and writer

A library that provides serialization of Neverwinter Nights module 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.2"

Example

use nwn_nasher_types::*;

fn main() {
 let path = "assets/testing/test.ifo.json";
 let nw = NwType::from_file_path(path).expect("Failed to open file");
 match nw {
   NwType::ModuleInfo(value) => {
     println!("Value: {:?}", value);
   }
   _ => {}
 }
}

Modules

Structs

Enums

  • Neverwinter Nights file types