1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Implement item shop #70

This commit is contained in:
NG (Graham)
2026-01-01 20:34:12 -05:00
parent 83843377d7
commit 3aadbb91ba
16 changed files with 602 additions and 151 deletions

View File

@@ -63,6 +63,7 @@ pub trait UserAuthenticator {
#[async_trait::async_trait]
pub trait User<C>: ChatUser + SocialUser + LobbyUser + MultiplayerUser + SingleplayerUser + IntercomUser + CommonUser {
async fn unlocked_parts(&self) -> Vec<u32>;
async fn unlock_parts(&self, parts: &[u32]) -> Result<(), polariton_server::operations::SimpleOpError>;
async fn selected_garage(&self) -> (String, u32);
async fn select_garage(&self, slot: i32) -> Result<(), i16>;
async fn all_slots(&self) -> UserSlots<C>;
@@ -417,6 +418,7 @@ pub enum CurrencyOp {
Get,
Add(u64),
Sub(u64),
AddSub(i64),
}
#[async_trait::async_trait]