mirror of
https://github.com/thegeneralist01/Scene-Manager-DevRepo
synced 2026-01-11 07:30:40 +01:00
Added DefineOverrides method
This commit is contained in:
parent
bed387ae9a
commit
03aa96090e
1 changed files with 10 additions and 0 deletions
|
|
@ -129,5 +129,15 @@ namespace SceneManager.Utils
|
||||||
{
|
{
|
||||||
ModifyItemInXML<List<T>>(path, t => t.Add(objectToAdd));
|
ModifyItemInXML<List<T>>(path, t => t.Add(objectToAdd));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal static XmlAttributeOverrides DefineOverrides()
|
||||||
|
{
|
||||||
|
XmlAttributeOverrides overrides = new XmlAttributeOverrides();
|
||||||
|
XmlAttributes attr = new XmlAttributes();
|
||||||
|
attr.XmlRoot = new XmlRootAttribute("Paths");
|
||||||
|
overrides.Add(typeof(List<Paths.Path>), attr);
|
||||||
|
|
||||||
|
return overrides;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue