1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// openstranded-map-tool — convert Stranded II .s2 maps to .osmap format
// Copyright (C) 2026 OpenStranded contributors
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
//! Convert Stranded II `.s2` map files to the `.osmap` (OpenStranded MAP) format.
//!
//! # Library
//!
//! ```rust
//! // Demonstrate API types — see README for full usage.
//! use openstranded_map_tool::OpenStrandedMap;
//!
//! fn _types_are_public() {
//! let _map = OpenStrandedMap {
//! meta: openstranded_map_tool::MapMeta {
//! name: "test".into(),
//! engine_version: "0.1.0".into(),
//! map_version: "0.1.0".into(),
//! source_file: String::new(),
//! s2_header: None,
//! created_at: String::new(),
//! },
//! terrain: openstranded_map_tool::TerrainData {
//! size: 16,
//! heights: vec![],
//! seaground_level: -2.0,
//! },
//! entities: vec![],
//! player_spawn: None,
//! environment: std::collections::HashMap::new(),
//! colormap: None,
//! grass: None,
//! password: String::new(),
//! scripts: vec![],
//! };
//! }
//! ```
//!
//! # CLI
//!
//! ```text
//! openstranded-map-tool convert <input.s2> [output.osmap]
//! openstranded-map-tool info <input.s2|.osmap>
//! ```
pub use ;
pub use s2_to_osmap;
pub use *;
/// Save an `OpenStrandedMap` to a RON file.