Trait scl_core::download::GameDownload
source · pub trait GameDownload<'a>: FabricDownloadExt + ForgeDownloadExt + VanillaDownloadExt + QuiltMCDownloadExt {
// Required method
fn download_game<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
vanilla: VersionInfo,
fabric: &'life2 str,
quiltmc: &'life3 str,
forge: &'life4 str,
optifine: &'life5 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait;
}
Expand description
一个游戏安装特质,如果你并不需要单独安装其它部件,则可以单独引入这个特质来安装游戏
Required Methods§
sourcefn download_game<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
&'life0 self,
version_name: &'life1 str,
vanilla: VersionInfo,
fabric: &'life2 str,
quiltmc: &'life3 str,
forge: &'life4 str,
optifine: &'life5 str
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
'life5: 'async_trait,
fn download_game<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, version_name: &'life1 str, vanilla: VersionInfo, fabric: &'life2 str, quiltmc: &'life3 str, forge: &'life4 str, optifine: &'life5 str ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,
根据参数安装一个游戏,允许安装模组加载器