-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify mod config & parse mod dependencies
- Loading branch information
1 parent
9b4352f
commit 8538e34
Showing
7 changed files
with
51 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 7 additions & 2 deletions
9
src/models/project_type/mc_mod/config.rs → src/models/project_type/mc_mod/config/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use serde::{Serialize, Deserialize}; | ||
use crate::models::modrinth::DependencyType; | ||
|
||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct ModrinthConfig { | ||
pub project_id: String, | ||
pub staging: Option<bool>, | ||
#[serde(rename = "dependency")] | ||
pub dependencies: Vec<ModrinthDependency> | ||
} | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct ModrinthDependency { | ||
pub version_id: Option<String>, | ||
pub project_id: Option<String>, | ||
pub dependency_type: DependencyType | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters