Skip to content

Commit

Permalink
Remove unstable monetisation options for games and mods
Browse files Browse the repository at this point in the history
  • Loading branch information
nickelc committed Nov 9, 2023
1 parent 4c8eadc commit 17ace1e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
4 changes: 2 additions & 2 deletions src/games.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ use crate::types::id::{GameId, ModId};

pub use crate::types::games::{
ApiAccessOptions, CommunityOptions, CurationOption, Downloads, Game, HeaderImage, Icon,
MaturityOptions, MonetisationOptions, OtherUrl, Platform, PresentationOption, Statistics,
SubmissionOption, TagOption, TagType, Theme,
MaturityOptions, OtherUrl, Platform, PresentationOption, Statistics, SubmissionOption,
TagOption, TagType, Theme,
};
pub use crate::types::Logo;
pub use crate::types::Status;
Expand Down
4 changes: 2 additions & 2 deletions src/mods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ use crate::teams::Members;
use crate::types::id::{FileId, GameId, ModId};

pub use crate::types::mods::{
CommunityOptions, Dependency, Event, EventType, Image, MaturityOption, Media, Mod,
MonetisationOptions, Platform, Popularity, Ratings, Statistics, Tag, Visibility,
CommunityOptions, Dependency, Event, EventType, Image, MaturityOption, Media, Mod, Platform,
Popularity, Ratings, Statistics, Tag, Visibility,
};
pub use crate::types::Logo;
pub use crate::types::Status;
Expand Down
12 changes: 0 additions & 12 deletions src/types/games.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ pub struct Game {
pub submission_option: SubmissionOption,
pub curation_option: CurationOption,
pub community_options: CommunityOptions,
#[serde(default)]
pub monetisation_options: MonetisationOptions,
pub api_access_options: ApiAccessOptions,
pub maturity_options: MaturityOptions,
pub ugc_name: String,
Expand Down Expand Up @@ -92,16 +90,6 @@ bitflags! {
| Self::SHOW_ON_HOMEPAGE.bits() | Self::SHOW_MORE_ON_HOMEPAGE.bits() | Self::ALLOW_CHANGE_STATUS.bits();
}

/// Monetisation options mods can enable.
#[derive(Default)]
pub struct MonetisationOptions: u8 {
const ENABLED = 1;
/// Recognition enabled.
const RECOGNITION = 2;
/// Marketplace enabled.
const MARKETPLACE = 4;
}

/// Level of API access allowed by a game.
pub struct ApiAccessOptions: u8 {
/// Allow third parties to access a game's API endpoints.
Expand Down
12 changes: 0 additions & 12 deletions src/types/mods.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ pub struct Mod {
pub date_live: u64,
pub maturity_option: MaturityOption,
pub community_options: CommunityOptions,
#[serde(default)]
pub monetisation_options: MonetisationOptions,
pub price: f32,
pub tax: u32,
pub logo: Logo,
Expand Down Expand Up @@ -73,16 +71,6 @@ bitflags! {
const EXPLICIT = 8;
const ALL = Self::ALCOHOL.bits() | Self::DRUGS.bits() | Self::VIOLENCE.bits() | Self::EXPLICIT.bits();
}

/// Monetisation options of a mod.
#[derive(Default)]
pub struct MonetisationOptions: u8 {
const ENABLED = 1;
/// Recognition enabled.
const RECOGNITION = 2;
/// Marketplace enabled.
const MARKETPLACE = 4;
}
}

/// See the [Mod Event Object](https://docs.mod.io/#mod-event-object) docs for more information.
Expand Down

0 comments on commit 17ace1e

Please sign in to comment.