Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CreateHeaderJson()

static string Terraria.Social.Base.AWorkshopEntry.CreateHeaderJson ( string contentTypeName,
ulong workshopEntryId,
string[] tags,
WorkshopItemPublicSettingId publicity,
string previewImagePath )
inlinestaticprotectedinherited

Definition at line 48 of file AWorkshopEntry.cs.

49 {
50 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
51 new JObject();
53 dictionary["WorkshopPublishedVersion"] = 1;
54 dictionary["ContentType"] = contentTypeName;
55 dictionary["SteamEntryId"] = workshopEntryId;
56 if (tags != null && tags.Length != 0)
57 {
58 dictionary["Tags"] = JArray.FromObject((object)tags);
59 }
60 dictionary["Publicity"] = publicity;
61 return JsonConvert.SerializeObject((object)dictionary, SerializerSettings);
62 }
static readonly JsonSerializerSettings SerializerSettings

References System.dictionary, and Terraria.Social.Base.AWorkshopEntry.SerializerSettings.

Referenced by Terraria.Social.Base.TexturePackWorkshopEntry.GetHeaderTextFor(), and Terraria.Social.Base.WorldWorkshopEntry.GetHeaderTextFor().