AlphaFramework API
1.0.3
|
Common base for loading new XML data into a IUniverse. More...
Protected Member Functions | |
ImportXmlBase (Func< TUniverse > getUniverse, Action< TUniverse > setUniverse, string xmlData, Action refreshHandler) | |
Creates a new command for loading XML data into a TUniverse . More... | |
override void | OnFirstExecute () |
Imports the XML data More... | |
abstract void | TransferNonXmlData (TUniverse oldUniverse, TUniverse newUniverse) |
Transfers any non-serialized data from oldUniverse to newUniverse . More... | |
override void | OnRedo () |
Restores the imported XML data More... | |
override void | OnUndo () |
Restores the original XML data More... | |
Additional Inherited Members | |
Public Member Functions inherited from NanoByte::Common::Undo::FirstExecuteCommand | |
void | Execute () |
virtual void | Undo () |
Common base for loading new XML data into a IUniverse.
TUniverse | The specific type of IUniverse to load XML data for. |
TUniverse | : | class | |
TUniverse | : | IUniverse |
|
inlineprotected |
Creates a new command for loading XML data into a TUniverse .
getUniverse | Called to get the current TUniverse in the editor. |
setUniverse | Called to change the current TUniverse in the editor. |
xmlData | The XML string to parse. |
refreshHandler | Called when the presenter needs to be reset. |
|
inlineprotectedvirtual |
Imports the XML data
Implements NanoByte::Common::Undo::FirstExecuteCommand.
|
inlineprotectedvirtual |
Restores the imported XML data
Implements NanoByte::Common::Undo::FirstExecuteCommand.
|
inlineprotectedvirtual |
Restores the original XML data
Implements NanoByte::Common::Undo::FirstExecuteCommand.
|
protectedpure virtual |
Transfers any non-serialized data from oldUniverse to newUniverse .