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; - } -}