Open main menu
Home
Random
Log in
Settings
About Stardew Valley Wiki
Disclaimers
Stardew Valley Wiki
Search
Changes
← Older edit
Newer edit →
Modding:Modder Guide/APIs/Content Packs
(view source)
Revision as of 02:17, 22 August 2019
2 bytes added
,
02:17, 22 August 2019
→Create a fake content pack
:
fix typo
Line 71:
Line 71:
<source lang="c#">
<source lang="c#">
// create with random manifest data
// create with random manifest data
−
IContentPack contentPack = this.Helper.
ContentPack
.CreateFake(
+
IContentPack contentPack = this.Helper.
ContentPacks
.CreateFake(
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
);
);
// create with given manifest fields
// create with given manifest fields
−
IContentPack contentPack = this.Helper.
ContentPack
.CreateFake(
+
IContentPack contentPack = this.Helper.
ContentPacks
.CreateFake(
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
directoryPath: Path.Combine(this.Helper.DirectoryPath, "content-pack"),
id: Guid.NewGuid().ToString("N"),
id: Guid.NewGuid().ToString("N"),
Pathoschild
translators
8,445
edits