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
- Area
- Dialog
- Faction
- Area comments
- Area information
- Module information
- Palette
- Journal
- Creature
- Door
- Encounter
- Item
- Store
- Placeable
- Sound
- Trigger
- Waypoint
Structs
- A struct that represents a localized string. Determined by the players’s language setting. https://nwnlexicon.com/index.php?title=PLAYER_LANGUAGE
- Represents a structured value in the Neverwinter Nights module file format.
- Represents a named value in the Neverwinter Nights module file format.
Enums
- Neverwinter Nights file types