Crosstales.Common.Util.BaseConstants Class Reference

Base for collected constants of very general utility for the asset. More...

Inheritance diagram for Crosstales.Common.Util.BaseConstants:
Crosstales.RTVoice.Util.Constants

Static Public Attributes

const string COMMON_VERSION = "2024.1.1"
 Version of the Common. More...
 
const int COMMON_BUILD = 20240226
 Build number of the Common. More...
 
static readonly DateTime COMMON_CHANGED = new DateTime(2024, 3, 15)
 Change date of the Common (YYYY, MM, DD). More...
 
const string ASSET_AUTHOR = "crosstales LLC"
 Author of the asset. More...
 
const string ASSET_AUTHOR_URL = "https://www.crosstales.com"
 URL of the asset author. More...
 
const string ASSET_CT_URL = "https://assetstore.unity.com/lists/crosstales-42213?aid=1011lNGT"
 URL of the crosstales assets in UAS. More...
 
const string ASSET_SOCIAL_DISCORD = "https://discord.gg/ZbZ2sh4"
 URL of the crosstales Discord-channel. More...
 
const string ASSET_SOCIAL_FACEBOOK = "https://www.facebook.com/crosstales/"
 URL of the crosstales Facebook-profile. More...
 
const string ASSET_SOCIAL_TWITTER = "https://twitter.com/crosstales"
 URL of the crosstales Twitter-profile. More...
 
const string ASSET_SOCIAL_YOUTUBE = "https://www.youtube.com/c/Crosstales"
 URL of the crosstales Youtube-profile. More...
 
const string ASSET_SOCIAL_LINKEDIN = "https://www.linkedin.com/company/crosstales"
 URL of the crosstales LinkedIn-profile. More...
 
const string ASSET_3P_PLAYMAKER = "https://assetstore.unity.com/packages/slug/368?aid=1011lNGT"
 URL of the 3rd party asset "PlayMaker". More...
 
const string ASSET_3P_VOLUMETRIC_AUDIO = "https://assetstore.unity.com/packages/slug/17125?aid=1011lNGT"
 URL of the 3rd party asset "Volumetric Audio". More...
 
const string ASSET_3P_ROCKTOMATE = "https://assetstore.unity.com/packages/slug/156311?aid=1011lNGT"
 URL of the 3rd party asset "RockTomate". More...
 
const string ASSET_3P_RTFB = "https://assetstore.unity.com/packages/slug/113006?aid=1011lNGT"
 URL of the 3rd party asset "Runtime File Browser". More...
 
const string ASSET_BWF = "https://assetstore.unity.com/packages/slug/26255?aid=1011lNGT"
 URL of the "Badword Filter" asset. More...
 
const string ASSET_DJ = "https://assetstore.unity.com/packages/slug/41993?aid=1011lNGT"
 URL of the "DJ" asset. More...
 
const string ASSET_FB = "https://assetstore.unity.com/packages/slug/98713?aid=1011lNGT"
 URL of the "File Browser" asset. More...
 
const string ASSET_OC = "https://assetstore.unity.com/packages/slug/74688?aid=1011lNGT"
 URL of the "Online Check" asset. More...
 
const string ASSET_RADIO = "https://assetstore.unity.com/packages/slug/32034?aid=1011lNGT"
 URL of the "Radio" asset. More...
 
const string ASSET_RTV = "https://assetstore.unity.com/packages/slug/41068?aid=1011lNGT"
 URL of the "RT-Voice" asset. More...
 
const string ASSET_TB = "https://assetstore.unity.com/packages/slug/98711?aid=1011lNGT"
 URL of the "Turbo Backup" asset. More...
 
const string ASSET_TPB = "https://assetstore.unity.com/packages/slug/98714?aid=1011lNGT"
 URL of the "Turbo Builder" asset. More...
 
const string ASSET_TPS = "https://assetstore.unity.com/packages/slug/60040?aid=1011lNGT"
 URL of the "Turbo Switch" asset. More...
 
const string ASSET_TR = "https://assetstore.unity.com/packages/slug/61617?aid=1011lNGT"
 URL of the "True Random" asset. More...
 
const int FACTOR_KB = 1024
 Factor for kilo bytes. More...
 
const int FACTOR_MB = FACTOR_KB * 1024
 Factor for mega bytes. More...
 
const int FACTOR_GB = FACTOR_MB * 1024
 Factor for giga bytes. More...
 
const float FLOAT_32768 = 32768f
 Float value of 32768. More...
 
const float FLOAT_TOLERANCE = 0.0001f
 Float tolerance. More...
 
const string FORMAT_TWO_DECIMAL_PLACES = "0.00"
 ToString for two decimal places. More...
 
const string FORMAT_NO_DECIMAL_PLACES = "0"
 ToString for no decimal places. More...
 
const string FORMAT_PERCENT = "0%"
 ToString for percent. More...
 
const bool DEFAULT_DEBUG = false
 
const string PATH_DELIMITER_WINDOWS = @"\"
 Path delimiter for Windows. More...
 
const string PATH_DELIMITER_UNIX = "/"
 Path delimiter for Unix. More...
 
static System.Text.RegularExpressions.Regex REGEX_LINEENDINGS => _regexLineEndings ?? (_regexLineEndings = new System.Text.RegularExpressions.Regex(@"[\u000A\u000B\u000C\u000D\u2028\u2029\u0085]+"))
 
static System.Text.RegularExpressions.Regex REGEX_EMAIL => _regexEmail ?? (_regexEmail = new System.Text.RegularExpressions.Regex(@"^(?("")("".+?""@)|(([0-9a-zA-Z]((\.(?!\.))|[-!#\$%&'\*\+/=\?\^`\{\}\|~\w])*)(?<=[0-9a-zA-Z])@))(?(\[)(\[(\d{1,3}\.){3}\d{1,3}\])|(([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,6}))$"))
 
static System.Text.RegularExpressions.Regex REGEX_CREDITCARD => _regexCreditCard ?? (_regexCreditCard = new System.Text.RegularExpressions.Regex(@"^((\d{4}[- ]?){3}\d{4})$"))
 
static System.Text.RegularExpressions.Regex REGEX_URL_WEB => _regexUrlWeb ?? (_regexUrlWeb = new System.Text.RegularExpressions.Regex(@"^(ht|f)tp(s?)\:\/\/[0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*(:(0-9)*)*(\/?)([a-zA-Z0-9\-\.\?\,\'\/\\\+&amp;%\$#_]*)?$"))
 
static System.Text.RegularExpressions.Regex REGEX_IP_ADDRESS => _regexIPAddress ?? (_regexIPAddress = new System.Text.RegularExpressions.Regex(@"^([0-9]{1,3}\.){3}[0-9]{1,3}$"))
 
static System.Text.RegularExpressions.Regex REGEX_INVALID_CHARS => _regexInvalidChars ?? (_regexInvalidChars = new System.Text.RegularExpressions.Regex(@"[^\w\.@-]"))
 
static System.Text.RegularExpressions.Regex REGEX_ALPHANUMERIC => _regexAlpha ?? (_regexAlpha = new System.Text.RegularExpressions.Regex(@"([A-Za-z0-9_]+)"))
 
static System.Text.RegularExpressions.Regex REGEX_CLEAN_SPACES => _regexCleanSpace ?? (_regexCleanSpace = new System.Text.RegularExpressions.Regex(@"\s+"))
 
static System.Text.RegularExpressions.Regex REGEX_CLEAN_TAGS => _regexCleanTags ?? (_regexCleanTags = new System.Text.RegularExpressions.Regex(@"<.*?>"))
 
static System.Text.RegularExpressions.Regex REGEX_DRIVE_LETTERS => _regexDriveLetters ?? (_regexDriveLetters = new System.Text.RegularExpressions.Regex(@"^[a-zA-Z]:"))
 
static System.Text.RegularExpressions.Regex REGEX_FILE => _regexFile ?? (_regexFile = new System.Text.RegularExpressions.Regex(@"^.*\.[\w]+$"))
 
const string ALPHABET_LATIN_UPPERCASE = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 
const string ALPHABET_LATIN_LOWERCASE = "abcdefghijklmnopqrstuvwxyz"
 
const string ALPHABET_EXT_UPPERCASE = "ÀÂÄÆÇÈÉÊËÎÏÔŒÙÛÜ"
 
const string ALPHABET_EXT_LOWERCASE = "àâäæçèéêëîïôœùûü"
 
static readonly string ALPHABET_LATIN = $"{ALPHABET_LATIN_UPPERCASE}{ALPHABET_EXT_UPPERCASE}{ALPHABET_LATIN_LOWERCASE}{ALPHABET_EXT_LOWERCASE}"
 
const string NUMBERS = "0123456789"
 
static readonly string SIGNS = $"{ALPHABET_LATIN}{NUMBERS}"
 
static bool DEV_DEBUG = false
 Development debug logging for the asset. More...
 
static string TEXT_TOSTRING_START = " {"
 
static string TEXT_TOSTRING_END = "}"
 
static string TEXT_TOSTRING_DELIMITER = "', "
 
static string TEXT_TOSTRING_DELIMITER_END = "'"
 
const string PREFIX_HTTP = "http://"
 
const string PREFIX_HTTPS = "https://"
 
static int PROCESS_KILL_TIME = 5000
 Kill processes after 5000 milliseconds. More...
 
static string CMD_WINDOWS_PATH = @"C:\Windows\system32\cmd.exe"
 Path to the cmd under Windows. More...
 
static bool SHOW_BWF_BANNER = true
 Show the BWF banner. More...
 
static bool SHOW_DJ_BANNER = true
 Show the DJ banner. More...
 
static bool SHOW_FB_BANNER = true
 Show the FB banner. More...
 
static bool SHOW_OC_BANNER = true
 Show the OC banner. More...
 
static bool SHOW_RADIO_BANNER = true
 Show the Radio banner. More...
 
static bool SHOW_RTV_BANNER = true
 Show the RTV banner. More...
 
static bool SHOW_TB_BANNER = true
 Show the TB banner. More...
 
static bool SHOW_TPB_BANNER = true
 Show the TPB banner. More...
 
static bool SHOW_TPS_BANNER = true
 Show the TPS banner. More...
 
static bool SHOW_TR_BANNER = true
 Show the TR banner. More...
 
static string APPLICATION_PATH => Crosstales.Common.Util.FileHelper.ValidatePath(Application.dataPath.Substring(0, Application.dataPath.LastIndexOf('/') + 1))
 Application path. More...
 

Properties

static string PREFIX_FILE [get]
 URL prefix for files. More...
 

Detailed Description

Base for collected constants of very general utility for the asset.

Member Data Documentation

◆ APPLICATION_PATH

string Crosstales.Common.Util.BaseConstants.APPLICATION_PATH => Crosstales.Common.Util.FileHelper.ValidatePath(Application.dataPath.Substring(0, Application.dataPath.LastIndexOf('/') + 1))
static

Application path.

◆ ASSET_3P_PLAYMAKER

const string Crosstales.Common.Util.BaseConstants.ASSET_3P_PLAYMAKER = "https://assetstore.unity.com/packages/slug/368?aid=1011lNGT"
static

URL of the 3rd party asset "PlayMaker".

◆ ASSET_3P_ROCKTOMATE

const string Crosstales.Common.Util.BaseConstants.ASSET_3P_ROCKTOMATE = "https://assetstore.unity.com/packages/slug/156311?aid=1011lNGT"
static

URL of the 3rd party asset "RockTomate".

◆ ASSET_3P_RTFB

const string Crosstales.Common.Util.BaseConstants.ASSET_3P_RTFB = "https://assetstore.unity.com/packages/slug/113006?aid=1011lNGT"
static

URL of the 3rd party asset "Runtime File Browser".

◆ ASSET_3P_VOLUMETRIC_AUDIO

const string Crosstales.Common.Util.BaseConstants.ASSET_3P_VOLUMETRIC_AUDIO = "https://assetstore.unity.com/packages/slug/17125?aid=1011lNGT"
static

URL of the 3rd party asset "Volumetric Audio".

◆ ASSET_AUTHOR

const string Crosstales.Common.Util.BaseConstants.ASSET_AUTHOR = "crosstales LLC"
static

Author of the asset.

◆ ASSET_AUTHOR_URL

const string Crosstales.Common.Util.BaseConstants.ASSET_AUTHOR_URL = "https://www.crosstales.com"
static

URL of the asset author.

◆ ASSET_BWF

const string Crosstales.Common.Util.BaseConstants.ASSET_BWF = "https://assetstore.unity.com/packages/slug/26255?aid=1011lNGT"
static

URL of the "Badword Filter" asset.

◆ ASSET_CT_URL

const string Crosstales.Common.Util.BaseConstants.ASSET_CT_URL = "https://assetstore.unity.com/lists/crosstales-42213?aid=1011lNGT"
static

URL of the crosstales assets in UAS.

◆ ASSET_DJ

const string Crosstales.Common.Util.BaseConstants.ASSET_DJ = "https://assetstore.unity.com/packages/slug/41993?aid=1011lNGT"
static

URL of the "DJ" asset.

◆ ASSET_FB

const string Crosstales.Common.Util.BaseConstants.ASSET_FB = "https://assetstore.unity.com/packages/slug/98713?aid=1011lNGT"
static

URL of the "File Browser" asset.

◆ ASSET_OC

const string Crosstales.Common.Util.BaseConstants.ASSET_OC = "https://assetstore.unity.com/packages/slug/74688?aid=1011lNGT"
static

URL of the "Online Check" asset.

◆ ASSET_RADIO

const string Crosstales.Common.Util.BaseConstants.ASSET_RADIO = "https://assetstore.unity.com/packages/slug/32034?aid=1011lNGT"
static

URL of the "Radio" asset.

◆ ASSET_RTV

const string Crosstales.Common.Util.BaseConstants.ASSET_RTV = "https://assetstore.unity.com/packages/slug/41068?aid=1011lNGT"
static

URL of the "RT-Voice" asset.

◆ ASSET_SOCIAL_DISCORD

const string Crosstales.Common.Util.BaseConstants.ASSET_SOCIAL_DISCORD = "https://discord.gg/ZbZ2sh4"
static

URL of the crosstales Discord-channel.

◆ ASSET_SOCIAL_FACEBOOK

const string Crosstales.Common.Util.BaseConstants.ASSET_SOCIAL_FACEBOOK = "https://www.facebook.com/crosstales/"
static

URL of the crosstales Facebook-profile.

◆ ASSET_SOCIAL_LINKEDIN

const string Crosstales.Common.Util.BaseConstants.ASSET_SOCIAL_LINKEDIN = "https://www.linkedin.com/company/crosstales"
static

URL of the crosstales LinkedIn-profile.

◆ ASSET_SOCIAL_TWITTER

const string Crosstales.Common.Util.BaseConstants.ASSET_SOCIAL_TWITTER = "https://twitter.com/crosstales"
static

URL of the crosstales Twitter-profile.

◆ ASSET_SOCIAL_YOUTUBE

const string Crosstales.Common.Util.BaseConstants.ASSET_SOCIAL_YOUTUBE = "https://www.youtube.com/c/Crosstales"
static

URL of the crosstales Youtube-profile.

◆ ASSET_TB

const string Crosstales.Common.Util.BaseConstants.ASSET_TB = "https://assetstore.unity.com/packages/slug/98711?aid=1011lNGT"
static

URL of the "Turbo Backup" asset.

◆ ASSET_TPB

const string Crosstales.Common.Util.BaseConstants.ASSET_TPB = "https://assetstore.unity.com/packages/slug/98714?aid=1011lNGT"
static

URL of the "Turbo Builder" asset.

◆ ASSET_TPS

const string Crosstales.Common.Util.BaseConstants.ASSET_TPS = "https://assetstore.unity.com/packages/slug/60040?aid=1011lNGT"
static

URL of the "Turbo Switch" asset.

◆ ASSET_TR

const string Crosstales.Common.Util.BaseConstants.ASSET_TR = "https://assetstore.unity.com/packages/slug/61617?aid=1011lNGT"
static

URL of the "True Random" asset.

◆ CMD_WINDOWS_PATH

string Crosstales.Common.Util.BaseConstants.CMD_WINDOWS_PATH = @"C:\Windows\system32\cmd.exe"
static

Path to the cmd under Windows.

◆ COMMON_BUILD

const int Crosstales.Common.Util.BaseConstants.COMMON_BUILD = 20240226
static

Build number of the Common.

◆ COMMON_CHANGED

readonly DateTime Crosstales.Common.Util.BaseConstants.COMMON_CHANGED = new DateTime(2024, 3, 15)
static

Change date of the Common (YYYY, MM, DD).

◆ COMMON_VERSION

const string Crosstales.Common.Util.BaseConstants.COMMON_VERSION = "2024.1.1"
static

Version of the Common.

◆ DEV_DEBUG

bool Crosstales.Common.Util.BaseConstants.DEV_DEBUG = false
static

Development debug logging for the asset.

◆ FACTOR_GB

const int Crosstales.Common.Util.BaseConstants.FACTOR_GB = FACTOR_MB * 1024
static

Factor for giga bytes.

◆ FACTOR_KB

const int Crosstales.Common.Util.BaseConstants.FACTOR_KB = 1024
static

Factor for kilo bytes.

◆ FACTOR_MB

const int Crosstales.Common.Util.BaseConstants.FACTOR_MB = FACTOR_KB * 1024
static

Factor for mega bytes.

◆ FLOAT_32768

const float Crosstales.Common.Util.BaseConstants.FLOAT_32768 = 32768f
static

Float value of 32768.

◆ FLOAT_TOLERANCE

const float Crosstales.Common.Util.BaseConstants.FLOAT_TOLERANCE = 0.0001f
static

Float tolerance.

◆ FORMAT_NO_DECIMAL_PLACES

const string Crosstales.Common.Util.BaseConstants.FORMAT_NO_DECIMAL_PLACES = "0"
static

ToString for no decimal places.

◆ FORMAT_PERCENT

const string Crosstales.Common.Util.BaseConstants.FORMAT_PERCENT = "0%"
static

ToString for percent.

◆ FORMAT_TWO_DECIMAL_PLACES

const string Crosstales.Common.Util.BaseConstants.FORMAT_TWO_DECIMAL_PLACES = "0.00"
static

ToString for two decimal places.

◆ PATH_DELIMITER_UNIX

const string Crosstales.Common.Util.BaseConstants.PATH_DELIMITER_UNIX = "/"
static

Path delimiter for Unix.

◆ PATH_DELIMITER_WINDOWS

const string Crosstales.Common.Util.BaseConstants.PATH_DELIMITER_WINDOWS = @"\"
static

Path delimiter for Windows.

◆ PROCESS_KILL_TIME

int Crosstales.Common.Util.BaseConstants.PROCESS_KILL_TIME = 5000
static

Kill processes after 5000 milliseconds.

◆ SHOW_BWF_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_BWF_BANNER = true
static

Show the BWF banner.

◆ SHOW_DJ_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_DJ_BANNER = true
static

Show the DJ banner.

◆ SHOW_FB_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_FB_BANNER = true
static

Show the FB banner.

◆ SHOW_OC_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_OC_BANNER = true
static

Show the OC banner.

◆ SHOW_RADIO_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_RADIO_BANNER = true
static

Show the Radio banner.

◆ SHOW_RTV_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_RTV_BANNER = true
static

Show the RTV banner.

◆ SHOW_TB_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_TB_BANNER = true
static

Show the TB banner.

◆ SHOW_TPB_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_TPB_BANNER = true
static

Show the TPB banner.

◆ SHOW_TPS_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_TPS_BANNER = true
static

Show the TPS banner.

◆ SHOW_TR_BANNER

bool Crosstales.Common.Util.BaseConstants.SHOW_TR_BANNER = true
static

Show the TR banner.

Property Documentation

◆ PREFIX_FILE

string Crosstales.Common.Util.BaseConstants.PREFIX_FILE
staticget

URL prefix for files.


The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/RTVoice/RTVoicePro/Assets/Plugins/crosstales/Common/Scripts/Util/BaseConstants.cs