Quantum 3 3.0.5

Static Public Member Functions | Static Public Attributes | List of all members
Quantum.Editor.QuantumEditorMenuDllToggle Class Reference

A static utility class that enabled Unity menu methods to toggle Quantum Debug and Release dlls by extracting a zip archive and overwriting the libraries. In earlier versions this was handed by the QUANTUM_DEBUG define and multiple version of dlls but the Quantum.Engine.dll has internal MonoBehaviours that lose the script guids this way. More...

Static Public Member Functions

static void SetToDebug ()
 Extracts the Debug versions of Quantum DLLs in the specified directory. More...
 
static bool SetToDebugCheck ()
 Checks if any of the Quantum DLLs are NOT Debug. Use this to check if SetToDebug needs to be called in order to switch to Debug. More...
 
static void SetToRelease ()
 Extracts the Release versions of Quantum DLLs in the specified directory. More...
 
static bool SetToReleaseCheck ()
 Checks if any of the Quantum DLLs are Debug. Use this to check if SetToRelease needs to be called in order to switch to Release. More...
 

Static Public Attributes

const string ExtractToDirectory = QuantumUnityEditorPaths.Root + "/Assemblies"
 Directory where the Quantum DLLs (Debug or Release) are extracted to. More...
 
static bool IsQuantumDeterministicDllDebug => isQuantumDeterministicDllDebug # GetAssemblyFileVersion<FP>().Contains("Debug")
 Checks if the Debug version of Quantum.Deterministic.dll is being used. More...
 
static bool IsQuantumEngineDllDebug => isQuantumEngineDllDebug # GetAssemblyFileVersion<Transform2D>().Contains("Debug")
 Checks if the Debug version of Quantum.Engine.dll is being used. More...
 

Detailed Description

A static utility class that enabled Unity menu methods to toggle Quantum Debug and Release dlls by extracting a zip archive and overwriting the libraries. In earlier versions this was handed by the QUANTUM_DEBUG define and multiple version of dlls but the Quantum.Engine.dll has internal MonoBehaviours that lose the script guids this way.

Member Function Documentation

◆ SetToDebugCheck()

static bool Quantum.Editor.QuantumEditorMenuDllToggle.SetToDebugCheck ( )
static

Checks if any of the Quantum DLLs are NOT Debug. Use this to check if SetToDebug needs to be called in order to switch to Debug.

Returns
true if either Quantum.Deterministic or Quantum.Engine.dll are NOT Debug. false otherwise.
if (QuantumEditorMenuDllToggle.SetToDebugCheck()) {
QuantumEditorMenuDllToggle.SetToDebug();
}

◆ SetToDebug()

static void Quantum.Editor.QuantumEditorMenuDllToggle.SetToDebug ( )
inlinestatic

Extracts the Debug versions of Quantum DLLs in the specified directory.

◆ SetToReleaseCheck()

static bool Quantum.Editor.QuantumEditorMenuDllToggle.SetToReleaseCheck ( )
static

Checks if any of the Quantum DLLs are Debug. Use this to check if SetToRelease needs to be called in order to switch to Release.

Returns
true if either Quantum.Deterministic or Quantum.Engine.dll are Debug. false otherwise.
if (QuantumEditorMenuDllToggle.SetToReleaseCheck()) {
QuantumEditorMenuDllToggle.SetToRelease();
}

◆ SetToRelease()

static void Quantum.Editor.QuantumEditorMenuDllToggle.SetToRelease ( )
inlinestatic

Extracts the Release versions of Quantum DLLs in the specified directory.

Member Data Documentation

◆ ExtractToDirectory

const string Quantum.Editor.QuantumEditorMenuDllToggle.ExtractToDirectory = QuantumUnityEditorPaths.Root + "/Assemblies"
static

Directory where the Quantum DLLs (Debug or Release) are extracted to.

◆ IsQuantumDeterministicDllDebug

bool Quantum.Editor.QuantumEditorMenuDllToggle.IsQuantumDeterministicDllDebug => isQuantumDeterministicDllDebug # GetAssemblyFileVersion<FP>().Contains("Debug")
static

Checks if the Debug version of Quantum.Deterministic.dll is being used.

◆ IsQuantumEngineDllDebug

bool Quantum.Editor.QuantumEditorMenuDllToggle.IsQuantumEngineDllDebug => isQuantumEngineDllDebug # GetAssemblyFileVersion<Transform2D>().Contains("Debug")
static

Checks if the Debug version of Quantum.Engine.dll is being used.