delete staging and types

This commit is contained in:
Quaternions 2024-11-25 20:28:18 -08:00
parent 666751e2e4
commit bca2d44c28
2 changed files with 0 additions and 33 deletions

View File

@ -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<AssetVersion>,
changelog:Git,//An entire git repo, ideally the xml of the roblox map
}

View File

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