1 using Microsoft.Xna.Framework;
3 using System.Collections.Generic;
6 using System.Collections.Immutable;
28 public override string Name =>
"RuinGenerationParams";
30 [
Serialize(
true,
IsPropertySaveable.Yes, description:
"Are these params designed to be used for alien ruins targeted by missions. If false, the params are ignored when there's any missions targeting ruins."),
Editable]
38 System.Xml.XmlWriterSettings settings =
new System.Xml.XmlWriterSettings
41 NewLineOnAttributes =
true
44 IEnumerable<ContentPackage> packages = ContentPackageManager.LocalPackages;
46 packages = packages.Union(ContentPackageManager.VanillaCorePackage.ToEnumerable());
54 XDocument doc = XMLExtensions.TryLoadXml(configFile.Path);
55 if (doc ==
null) {
continue; }
readonly ContentPath Path
static XmlWriter Create(string path, System.Xml.XmlWriterSettings settings)
readonly ContentFile ContentFile
static readonly PrefabCollection< RuinGenerationParams > RuinParams
RuinGenerationParams(ContentXElement element, RuinConfigFile file)
static void SerializeProperties(ISerializableEntity obj, XElement element, bool saveIfDefault=false, bool ignoreEditable=false)