Table of Contents

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

getUniverse Func<Universe>

Called to get the current Universe in the editor.

setUniverse Action<Universe>

Called to change the current Universe in the editor.

xmlData string

The XML string to parse.

refreshHandler Action

Called 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)

Parameters

oldUniverse Universe
newUniverse Universe