Add MineGeo gameplay systems and interface

This commit is contained in:
2026-10-10 10:27:47 +05:00
parent bf01d9801d
commit 9af71c85c2
47 changed files with 9954 additions and 93 deletions

10
shared/permissions.ts Normal file
View File

@@ -0,0 +1,10 @@
export type AccountRole = "contributor" | "moderator" | "admin";
export type StaffRole = Exclude<AccountRole, "contributor">;
export function canReviewMaps(role: string | undefined): role is StaffRole {
return role === "moderator" || role === "admin";
}
export function isAdministrator(role: string | undefined) {
return role === "admin";
}