feat: add global & server leveling, quests, achievements, guilds land-claiming, social & toggleable configs

This commit is contained in:
SCOPEDD committed 2026-09-29 03:24:27 -04:00
1 parent 4b79f69c20
commit b4cef85b1f
40 files changed
+10261 -27

No files matched your search

+14
View File
@@ -186,6 +186,13 @@ impl FromRequestParts<AppState> for MaybeUser {
pub struct AuthUser(pub UserRow);
impl std::ops::Deref for AuthUser {
type Target = UserRow;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl FromRequestParts<AppState> for AuthUser {
type Rejection = AppError;
async fn from_request_parts(parts: &mut Parts, state: &AppState) -> Result<Self, Self::Rejection> {
@@ -195,6 +202,13 @@ impl FromRequestParts<AppState> for AuthUser {
pub struct AdminUser(pub UserRow);
impl std::ops::Deref for AdminUser {
type Target = UserRow;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl FromRequestParts<AppState> for AdminUser {
type Rejection = AppError;
async fn from_request_parts(parts: &mut Parts, state: &AppState) -> Result<Self, Self::Rejection> {