From bca2d44c28abc85d4c48d4faa4b50d69e418bbfb Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 25 Nov 2024 20:28:18 -0800 Subject: [PATCH] delete staging and types --- validation/src/staging.rs | 25 ------------------------- validation/src/types.rs | 8 -------- 2 files changed, 33 deletions(-) delete mode 100644 validation/src/staging.rs delete mode 100644 validation/src/types.rs diff --git a/validation/src/staging.rs b/validation/src/staging.rs deleted file mode 100644 index 1177cfe..0000000 --- a/validation/src/staging.rs +++ /dev/null @@ -1,25 +0,0 @@ -use crate::types::Games; - -// This data structure just exists to remember the hash of the model file as it's uploaded -// so that the hash can be checked later to see if the file is changed -struct AssetVersion{ - //roblox asset id - asset_id:u64, - //hash of map file before upload - hash:u128, -} - -struct Git; - -struct Map{ - id:u64,//database entry - date:u64, - games:Games, - creator:String, - display_name:String, - //the staging model is created at the same time as the maps database entry - staging:AssetVersion, - //the main model does not exist before the submission is published for the first time - main:Option, - changelog:Git,//An entire git repo, ideally the xml of the roblox map -} diff --git a/validation/src/types.rs b/validation/src/types.rs deleted file mode 100644 index 4ea9fe1..0000000 --- a/validation/src/types.rs +++ /dev/null @@ -1,8 +0,0 @@ -bitflags::bitflags!{ - #[derive(Clone,Copy,Debug,Default)] - pub struct Games:u32{ - const Bhop=1<<0; - const Surf=1<<1; - const FlyTrials=1<<4; - } -}