using UnityEngine;
namespace Crosstales.Common.Util
{
/// Base for collected constants of very general utility for the asset.
public abstract class BaseConstants
{
#region Constant variables
/// Author of the asset.
public const string ASSET_AUTHOR = "crosstales LLC";
/// URL of the asset author.
public const string ASSET_AUTHOR_URL = "https://www.crosstales.com";
/// URL of the crosstales assets in UAS.
public const string ASSET_CT_URL = "https://assetstore.unity.com/lists/crosstales-42213?aid=1011lNGT";
/// URL of the crosstales Discord-channel.
public const string ASSET_SOCIAL_DISCORD = "https://discord.gg/ZbZ2sh4";
/// URL of the crosstales Facebook-profile.
public const string ASSET_SOCIAL_FACEBOOK = "https://www.facebook.com/crosstales/";
/// URL of the crosstales Twitter-profile.
public const string ASSET_SOCIAL_TWITTER = "https://twitter.com/crosstales";
/// URL of the crosstales Youtube-profile.
public const string ASSET_SOCIAL_YOUTUBE = "https://www.youtube.com/c/Crosstales";
/// URL of the crosstales LinkedIn-profile.
public const string ASSET_SOCIAL_LINKEDIN = "https://www.linkedin.com/company/crosstales";
/// URL of the 3rd party asset "PlayMaker".
public const string ASSET_3P_PLAYMAKER = "https://assetstore.unity.com/packages/slug/368?aid=1011lNGT";
/// URL of the 3rd party asset "Volumetric Audio".
public const string ASSET_3P_VOLUMETRIC_AUDIO = "https://assetstore.unity.com/packages/slug/17125?aid=1011lNGT";
/// URL of the 3rd party asset "RockTomate".
public const string ASSET_3P_ROCKTOMATE = "https://assetstore.unity.com/packages/slug/156311?aid=1011lNGT";
/// URL of the "Badword Filter" asset.
public const string ASSET_BWF = "https://assetstore.unity.com/packages/slug/26255?aid=1011lNGT";
/// URL of the "DJ" asset.
public const string ASSET_DJ = "https://assetstore.unity.com/packages/slug/41993?aid=1011lNGT";
/// URL of the "File Browser" asset.
public const string ASSET_FB = "https://assetstore.unity.com/packages/slug/98713?aid=1011lNGT";
/// URL of the "Online Check" asset.
public const string ASSET_OC = "https://assetstore.unity.com/packages/slug/74688?aid=1011lNGT";
/// URL of the "Radio" asset.
public const string ASSET_RADIO = "https://assetstore.unity.com/packages/slug/32034?aid=1011lNGT";
/// URL of the "RT-Voice" asset.
public const string ASSET_RTV = "https://assetstore.unity.com/packages/slug/41068?aid=1011lNGT";
/// URL of the "Turbo Backup" asset.
public const string ASSET_TB = "https://assetstore.unity.com/packages/slug/98711?aid=1011lNGT";
/// URL of the "Turbo Builder" asset.
public const string ASSET_TPB = "https://assetstore.unity.com/packages/slug/98714?aid=1011lNGT";
/// URL of the "Turbo Switch" asset.
public const string ASSET_TPS = "https://assetstore.unity.com/packages/slug/60040?aid=1011lNGT";
/// URL of the "True Random" asset.
public const string ASSET_TR = "https://assetstore.unity.com/packages/slug/61617?aid=1011lNGT";
/// Factor for kilo bytes.
public const int FACTOR_KB = 1024;
/// Factor for mega bytes.
public const int FACTOR_MB = FACTOR_KB * 1024;
/// Factor for giga bytes.
public const int FACTOR_GB = FACTOR_MB * 1024;
/// Float value of 32768.
public const float FLOAT_32768 = 32768f;
/// Float tolerance.
public const float FLOAT_TOLERANCE = 0.0001f;
/// ToString for two decimal places.
public const string FORMAT_TWO_DECIMAL_PLACES = "0.00";
/// ToString for no decimal places.
public const string FORMAT_NO_DECIMAL_PLACES = "0";
/// ToString for percent.
public const string FORMAT_PERCENT = "0%";
// Default values
public const bool DEFAULT_DEBUG = false;
/// Path delimiter for Windows.
public const string PATH_DELIMITER_WINDOWS = @"\";
/// Path delimiter for Unix.
public const string PATH_DELIMITER_UNIX = "/";
#endregion
#region Changable variables
/// Development debug logging for the asset.
public static bool DEV_DEBUG = false;
// Text fragments for the asset
public static string TEXT_TOSTRING_START = " {";
public static string TEXT_TOSTRING_END = "}";
public static string TEXT_TOSTRING_DELIMITER = "', ";
public static string TEXT_TOSTRING_DELIMITER_END = "'";
// Prefixes for URLs and paths
public static string PREFIX_HTTP = "http://";
public static string PREFIX_HTTPS = "https://";
/// Kill processes after 5000 milliseconds.
public static int PROCESS_KILL_TIME = 5000;
/// Path to the cmd under Windows.
public static string CMD_WINDOWS_PATH = @"C:\Windows\system32\cmd.exe";
/// Show the BWF banner.
public static bool SHOW_BWF_BANNER = true;
/// Show the DJ banner.
public static bool SHOW_DJ_BANNER = true;
/// Show the FB banner.
public static bool SHOW_FB_BANNER = true;
/// Show the OC banner.
public static bool SHOW_OC_BANNER = true;
/// Show the Radio banner.
public static bool SHOW_RADIO_BANNER = true;
/// Show the RTV banner.
public static bool SHOW_RTV_BANNER = true;
/// Show the TB banner.
public static bool SHOW_TB_BANNER = true;
/// Show the TPB banner.
public static bool SHOW_TPB_BANNER = true;
/// Show the TPS banner.
public static bool SHOW_TPS_BANNER = true;
/// Show the TR banner.
public static bool SHOW_TR_BANNER = true;
#endregion
#region Properties
/// URL prefix for files.
public static string PREFIX_FILE
{
get
{
if ((BaseHelper.isWindowsBasedPlatform || BaseHelper.isWindowsEditor) && !BaseHelper.isMacOSEditor && !BaseHelper.isLinuxEditor)
{
return "file:///";
}
return "file://";
}
}
/// Application path.
public static string APPLICATION_PATH => BaseHelper.ValidatePath(Application.dataPath.Substring(0, Application.dataPath.LastIndexOf('/') + 1));
#endregion
}
}
// © 2015-2020 crosstales LLC (https://www.crosstales.com)