Structuring

This commit is contained in:
2026-02-23 02:02:22 +01:00
parent 56fb719cca
commit 7b532981a1
6 changed files with 746 additions and 31 deletions
+25
View File
@@ -0,0 +1,25 @@
pub const CLOAKS: &[&str] = &[
"mercedes_flow",
"glitch",
"crimson_mark",
"bmw",
"amg",
"amg_petronas",
"ferrari",
"redbull",
];
pub const HATS: &[&str] = &["horns_black", "horns_white", "halo", "halo_black"];
enum CosmeticKind {
Hat,
Cloak,
}
async fn buy(kind: CosmeticKind, id: &str) -> Result<String, String> {
Ok(format!("Item bought successfully, congrats!"))
}
async fn equip(kind: CosmeticKind, id: &str) -> Result<String, String> {
Ok(format!("Item equipped"))
}