30 lines
687 B
Markdown
30 lines
687 B
Markdown
|
StrafesNET File Format
|
||
|
======================
|
||
|
|
||
|
## Example
|
||
|
|
||
|
```rust
|
||
|
let file=std::fs::File::open(path)?;
|
||
|
let mut input=std::io::BufReader::new(file);
|
||
|
let snf=snf::read(input)?;
|
||
|
match snf{
|
||
|
snf::SNF::Map(map)=>{},
|
||
|
snf::SNF::Bot(bot)=>{},
|
||
|
snf::SNF::Demo(demo)=>{},
|
||
|
}
|
||
|
```
|
||
|
|
||
|
#### License
|
||
|
|
||
|
<sup>
|
||
|
Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
|
||
|
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.
|
||
|
</sup>
|
||
|
|
||
|
<br>
|
||
|
|
||
|
<sub>
|
||
|
Unless you explicitly state otherwise, any contribution intentionally submitted
|
||
|
for inclusion in this crate by you, as defined in the Apache-2.0 license, shall
|
||
|
be dual licensed as above, without any additional terms or conditions.
|
||
|
</sub>
|