2 using System.ComponentModel;
3 using System.Xml.Serialization;
13 [XmlElement(ElementName =
"Server")]
14 [DefaultValue(
"Standard")]
20 [XmlElement(ElementName =
"Client")]
21 [DefaultValue(
"Standard")]
28 [XmlArrayItem(ElementName =
"Dependency", IsNullable =
true, Type = typeof(
Dependency))]
35 [XmlElement(ElementName =
"UseNonPublicizedAssemblies")]
41 [XmlElement(ElementName =
"UseInternalAssemblyName")]
45 [XmlElement(ElementName =
"AutoGenerated")]
66 [XmlElement(ElementName =
"SteamWorkshopId")]
72 [XmlElement(ElementName =
"PackageName")]
98 static string SanitizeRunSetting(
string str) =>
104 _ => str[0].ToString().ToUpper() + str.Substring(1).ToLower()
113 return this.Client ==
"Forced";
115 return this.Server ==
"Forced";
122 return this.Client ==
"Standard";
124 return this.Server ==
"Standard";
string PackageName
Package Name of the dependency. Not needed if SteamWorkshopId is set.
ulong SteamWorkshopId
Steam Workshop ID of the dependency.
string Server
How should scripts be run on the server.
Dependency[] Dependencies
List of dependencies by either Steam Workshop ID or by Partial Inclusive Name (ie....
string Client
How should scripts be run on the client.
RunConfig(bool autoGenerated)
bool UseNonPublicizedAssemblies
Compiles the mod using non-publicized assemblies.
bool UseInternalAssemblyName
If the mod includes source files, the compiled assembly will be named "CompiledAssembly" and have the...
bool IsForcedOrStandard()