Various helper functions. More...

Inheritance diagram for Crosstales.TB.Util.Helper:

Static Public Member Functions

static bool Backup ()
 Backup the project (legacy implementation). More...
 
static bool BackupNew ()
 Backup the project. More...
 
static bool Restore ()
 Restore the project (legacy implementation). More...
 
static bool RestoreNew ()
 Restore the project. More...
 
static void DeleteBackup ()
 Delete the backup for all platforms. More...
 
static void DeleteBackupSlot (int slot)
 Delete the given backup slot for all platforms. More...
 

Static Public Attributes

static string ScanInfo
 
static bool isDeleting
 
static Texture2D Action_Backup => loadImage(ref action_backup, "action_backup.png")
 
static Texture2D Action_Restore => loadImage(ref action_restore, "action_restore.png")
 
static Texture2D Logo_Asset => loadImage(ref logo_asset, "logo_asset_pro.png")
 
static Texture2D Logo_Asset_Small => loadImage(ref logo_asset_small, "logo_asset_small_pro.png")
 
static Texture2D Icon_Show => loadImage(ref icon_show, "icon_show.png")
 
static bool isBackupEnabled => Config.COPY_ASSETS || Config.COPY_LIBRARY || Config.COPY_SETTINGS || Config.COPY_PACKAGES
 Checks if the backup for the project is enabled. More...
 
static bool hasBackup => Crosstales.Common.Util.FileHelper.ExistsDirectory(Config.PATH_BACKUP)
 Checks if a backup for the project exists. More...
 
static bool hasBackupSlot => Crosstales.Common.Util.FileHelper.ExistsDirectory(Config.PATH_BACKUP_SLOT)
 Checks if a backup for the current slot exists. More...
 

Properties

static string? BackupInfo [get]
 Scans the backup usage information. More...
 

Detailed Description

Various helper functions.

Member Function Documentation

◆ Backup()

static bool Crosstales.TB.Util.Helper.Backup ( )
static

Backup the project (legacy implementation).

Returns
True if the backup was successful.

◆ BackupNew()

static bool Crosstales.TB.Util.Helper.BackupNew ( )
static

Backup the project.

Returns
True if the backup was successful.

◆ DeleteBackup()

static void Crosstales.TB.Util.Helper.DeleteBackup ( )
static

Delete the backup for all platforms.

◆ DeleteBackupSlot()

static void Crosstales.TB.Util.Helper.DeleteBackupSlot ( int  slot)
static

Delete the given backup slot for all platforms.

Parameters
slotBackup slot to delete

◆ Restore()

static bool Crosstales.TB.Util.Helper.Restore ( )
static

Restore the project (legacy implementation).

Returns
True if the restore was successful.

◆ RestoreNew()

static bool Crosstales.TB.Util.Helper.RestoreNew ( )
static

Restore the project.

Returns
True if the restore was successful.

Member Data Documentation

◆ hasBackup

bool Crosstales.TB.Util.Helper.hasBackup => Crosstales.Common.Util.FileHelper.ExistsDirectory(Config.PATH_BACKUP)
static

Checks if a backup for the project exists.

Returns
True if a backup for the project exists

◆ hasBackupSlot

bool Crosstales.TB.Util.Helper.hasBackupSlot => Crosstales.Common.Util.FileHelper.ExistsDirectory(Config.PATH_BACKUP_SLOT)
static

Checks if a backup for the current slot exists.

Returns
True if a backup for the current slot exists

◆ isBackupEnabled

bool Crosstales.TB.Util.Helper.isBackupEnabled => Config.COPY_ASSETS || Config.COPY_LIBRARY || Config.COPY_SETTINGS || Config.COPY_PACKAGES
static

Checks if the backup for the project is enabled.

Returns
True if a backup is enabled

Property Documentation

◆ BackupInfo

string? Crosstales.TB.Util.Helper.BackupInfo
staticget

Scans the backup usage information.

Returns
Backup usage information.

The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/TurboBackup/TurboBackup/Assets/Plugins/crosstales/TurboBackup/Scripts/Editor/Util/Helper.cs