Skip to content

Commit

Permalink
feat(rbx_mantle,rbx_api): add VR playable device (#195)
Browse files Browse the repository at this point in the history
* feat(rbx_mantle,rbx_api): add VR playable device

* Add serde fix

---------

Co-authored-by: Blake Mealey <[email protected]>
  • Loading branch information
Etheroit and blake-mealey authored Aug 26, 2023
1 parent c0b2744 commit 9857df5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions mantle/rbx_api/src/experiences/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ pub enum ExperiencePlayableDevice {
Phone,
Tablet,
Console,
VR,
}

#[derive(Serialize, Deserialize, Clone)]
Expand Down
3 changes: 3 additions & 0 deletions mantle/rbx_mantle/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,8 @@ pub enum PlayableDeviceTargetConfig {
Phone,
Tablet,
Console,
#[serde(rename = "vr")]
VR,
}

#[derive(JsonSchema, Serialize, Deserialize, Clone, Copy)]
Expand Down Expand Up @@ -965,6 +967,7 @@ impl From<&ExperienceTargetConfigurationConfig> for ExperienceConfigurationModel
PlayableDeviceTargetConfig::Phone => ExperiencePlayableDevice::Phone,
PlayableDeviceTargetConfig::Tablet => ExperiencePlayableDevice::Tablet,
PlayableDeviceTargetConfig::Console => ExperiencePlayableDevice::Console,
PlayableDeviceTargetConfig::VR => ExperiencePlayableDevice::VR,
})
.collect();
}
Expand Down

1 comment on commit 9857df5

@vercel
Copy link

@vercel vercel bot commented on 9857df5 Aug 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.