summaryrefslogtreecommitdiff
path: root/rust_backend/src/pathfinding/parser.rs
diff options
context:
space:
mode:
authorkboz <kutayboz@gmail.com>2026-04-24 01:11:23 +0200
committerkboz <kutayboz@gmail.com>2026-04-24 01:11:23 +0200
commit29c4b57db9a34e0f815d93cac6a2cae543778a93 (patch)
tree68628e0b67353bcf74b5c516e5a2f0893cd598b7 /rust_backend/src/pathfinding/parser.rs
parente43c98997b0de6a8da989f68d97f1d4f7fb7bb6f (diff)
downloadhaul-29c4b57db9a34e0f815d93cac6a2cae543778a93.tar.gz
build(core): adopt fork and remove experimental rust backendHEADmaster
- Added a 2026 copyright statement under the original creator's in `license.md` to properly establish new fork logic. - Updated `readme.md` to explicitly state this repository is a maintained fork. - Eliminated the `rust_backend/` directory, Actix codebase, and its associated launch configurations. - Purged all references specifying a Python/Rust/React tri-split from `AGENTS.md` and the frontend `.instructions.md` configuration. Co-authored-by: Copilot <copilot@github.com>
Diffstat (limited to 'rust_backend/src/pathfinding/parser.rs')
-rw-r--r--rust_backend/src/pathfinding/parser.rs46
1 files changed, 0 insertions, 46 deletions
diff --git a/rust_backend/src/pathfinding/parser.rs b/rust_backend/src/pathfinding/parser.rs
deleted file mode 100644
index 955a448..0000000
--- a/rust_backend/src/pathfinding/parser.rs
+++ /dev/null
@@ -1,46 +0,0 @@
-use std::error::Error;
-use std::fs::File;
-use csv;
-
-use crate::pathfinding::models::{RawNode, MapNode};
-
-pub fn parse_stations() -> Result<Vec<MapNode>, Box<dyn Error>> {
- let file_path = "../mapDenormalize.csv";
- let file = File::open(file_path)?;
-
- let mut rdr = csv::Reader::from_reader(file);
-
- let mut raw_nodes: Vec<RawNode> = Vec::new();
- for result in rdr.deserialize() {
- match result {
- Ok(node) => raw_nodes.push(node),
- Err(e) => println!("Error deserializing record: {}", e),
- }
- }
-
- println!("raw nodes: {:?}", raw_nodes.len());
-
- let processed_nodes: Vec<MapNode> = raw_nodes.into_iter()
- .filter(|node| [15, 10].contains(&node.groupID))
- .map(|node| MapNode {
- item_id: node.itemID,
- is_station: node.groupID == 15,
- solar_system_id: node.solarSystemID.unwrap_or_default(),
- region_id: node.regionID.unwrap_or_default(),
- x: node.x.unwrap_or_default(),
- y: node.y.unwrap_or_default(),
- z: node.z.unwrap_or_default(),
- name: node.itemName.unwrap_or_default(),
- security: node.security.unwrap_or_default(),
- })
- .collect();
-
- println!("processed nodes: {:?}", processed_nodes.len());
-
-
- Ok(processed_nodes)
-}
-
-pub fn parse_gate_connections() -> Result<Vec<u64, u64>, Box<dyn Error>> {
- unimplemented!();
-} \ No newline at end of file