Class ImportXml
- Namespace
- FrameOfReference.Editor.World.Commands
- Assembly
- FrameOfReference.Editor.dll
Loads new XML data into a Universe.
public class ImportXml : ImportXmlBase<Universe>, IUndoCommand
- Inheritance
-
ImportXml
- Implements
- Inherited Members
- Extension Methods
Constructors
ImportXml(Func<Universe>, Action<Universe>, string, Action)
Creates a new command for loading XML data into a Universe.
public ImportXml(Func<Universe> getUniverse, Action<Universe> setUniverse, string xmlData, Action refreshHandler)
Parameters
getUniverseFunc<Universe>Called to get the current Universe in the editor.
setUniverseAction<Universe>Called to change the current Universe in the editor.
xmlDatastringThe XML string to parse.
refreshHandlerActionCalled when the presenter needs to be reset.
Methods
TransferNonXmlData(Universe, Universe)
Transfers any non-serialized data from oldUniverse to newUniverse.
protected override void TransferNonXmlData(Universe oldUniverse, Universe newUniverse)