Modot 2.0.0
Multiple new features, tweaks, and bugfixes.
Additions
- Extension methods for
Godot.Error
- Mod XML patches
IPatch
interfaceNodeAddPatch
to add or insert a new XML nodeNodeRemovePatch
to remove an XML nodeNodeReplacePatch
to replace an XML nodeAttributeSetPatch
to add or set the value of an attributeAttributeRemovePatch
to remove an attributeTargetedPatch
for targeting specific XML nodes using XPath stringsMultiPatch
for executing multiple patches in orderConditionalPatch
to execute patches based on a conditionICondition
interfaceModLoadedCondition
to check if a mod is loadedNodeExistsCondition
to check if an XPath query has any matchesOrCondition
to execute patch if one of many conditions are satisfiedAndCondition
to execute patch if all of many conditions are satisfiedNotCondition
to invert condition
LogPatch
to log XML data before and after applying another patch
Tweaks
- Namespaces and folders have been refactored
- Mod data is no longer exposed as an XML node
- Exposed as an XML document instead
- XML node types are compared using
is
rather thanNodeType
- Mod assemblies are now invoked only after all mods are loaded and all patches are applied
DirectoryExtensions.CopyContents()
now returns copied file paths in an array
Bugfixes
- Mod XML data is now properly loaded and stored with a consistently named root element
- (De)serialization works properly due to updated dependencies, including GDSerializer