Class ProjectAssetDeletion
Decides what undo and redo do to the delete of a project asset. The disk may have changed since the delete, so they follow the disk, and they never delete a file that the user may still want.
public static class ProjectAssetDeletion
- Inheritance
-
objectProjectAssetDeletion
Methods
Redo(bool, bool, bool)
Decides whether a redo of the delete removes the asset.
public static bool Redo(bool isDeleted, bool deletedOutside, bool fileExists)
Parameters
isDeletedboolWhether the asset is deleted now.
deletedOutsideboolWhether the delete came from outside Game Studio.
fileExistsboolWhether the file of this asset exists.
Returns
- bool
False if the asset stays: a file that is back after a delete from outside keeps its asset, or a save could delete it.
Undo(bool, bool, bool)
Decides what an undo of the delete does.
public static ProjectAssetUndoAction Undo(bool isDeleted, bool fileHasAnotherAsset, bool fileExists)
Parameters
isDeletedboolWhether the asset is deleted now. A file that came back may have restored it already.
fileHasAnotherAssetboolWhether another asset now has the file or the location of this asset.
fileExistsboolWhether the file of this asset exists.