Skip to content

Commit

Permalink
Add new community options for games and mod objects
Browse files Browse the repository at this point in the history
nickelc committed Jun 3, 2024
1 parent 58e2dff commit a3e872f
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/types/games.rs
Original file line number Diff line number Diff line change
@@ -86,6 +86,14 @@ bitflags! {
const SHOW_ON_HOMEPAGE = 8;
const SHOW_MORE_ON_HOMEPAGE = 16;
const ALLOW_CHANGE_STATUS = 32;
/// Previews enabled (Game must be hidden).
const PREVIEWS = 64;
/// Preview URLs enabled (Previews must be enabled).
const PREVIEW_URLS = 128;
/// Allow negative ratings
const NEGATIVE_RATINGS = 256;
/// Allow mods to be edited via web.
const WEB_EDIT_MODS = 512;
}

/// Level of API access allowed by a game.
8 changes: 7 additions & 1 deletion src/types/mods.rs
Original file line number Diff line number Diff line change
@@ -56,9 +56,15 @@ newtype_enum! {

bitflags! {
/// Community options a mod can enable.
pub struct CommunityOptions: u8 {
pub struct CommunityOptions: u16 {
/// Comments enabled.
const COMMENTS = 1;
/// Previews enabled.
const PREVIEWS = 64;
/// Preview URLs enabled.
const PREVIEW_URLS = 128;
/// Allow mod dependencies
const ALLOW_DEPENDENCIES = 1024;
}

/// Maturity options a mod can be flagged.

0 comments on commit a3e872f

Please sign in to comment.