VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Classes | Static Public Member Functions | Events | Static Private Member Functions | Static Private Attributes | List of all members
AVR.Core.AVR_DevConsole Class Reference

Class for the arc-vr developer's console. Functions as a singleton with only static members. Multiple independent consoles per scene/instance is not possible. More...

Classes

class  AVR_ConsoleCommand
 Represents a command for the AVR_Devconsole More...
 

Static Public Member Functions

static void init ()
 Initializes the DevConsole. Only the first execution will have an effect. More...
 
static void HandleLog (string logString, string stackTrace, LogType type)
 Executes a respective output based on logString, stackTrace and LogType. More...
 
static string get_text ()
 Get the complete output of this console as text. More...
 
static void clear ()
 Clear console output entirely. More...
 
static void cprint (string s, MonoBehaviour obj)
 Print with a caller-context variable. More...
 
static void cprint (string s, GameObject obj)
 Print with a caller-context variable. More...
 
static void cprint (string s, string obj)
 Print with a caller-context variable. More...
 
static void csuccess (string s, MonoBehaviour obj)
 Print success message with a caller-context variable. More...
 
static void csuccess (string s, GameObject obj)
 Print success message with a caller-context variable. More...
 
static void csuccess (string s, string obj)
 Print success message with a caller-context variable. More...
 
static void cwarn (string s, MonoBehaviour obj)
 Print warning message with a caller-context variable. More...
 
static void cwarn (string s, GameObject obj)
 Print warning message with a caller-context variable. More...
 
static void cwarn (string s, string obj)
 Print warning message with a caller-context variable. More...
 
static void cerror (string s, MonoBehaviour obj)
 Print error message with a caller-context variable. More...
 
static void cerror (string s, GameObject obj)
 Print error message with a caller-context variable. More...
 
static void cerror (string s, string obj)
 Print error message with a caller-context variable. More...
 
static void raw_print (string s)
 
static void print (string s)
 Print a given string on the console. More...
 
static void success (string s)
 Print a success message string on the console. More...
 
static void error (string s)
 Print a given error string on the console. More...
 
static void warn (string s)
 Print a given warning string on the console. More...
 
static string history (int t)
 Returns any command executed in the past.

Parameters
tIndex of the past command with t=0 being the most recent one.
More...
 
static void command (string s, bool addToHistory=true)
 Execute a given console command. More...
 
static void register_command (AVR_ConsoleCommand cmd)
 Registers a new command to the console. More...
 
static void register_command (string name, System.Action< string[]> func, int min_args=0, string desc="No description given.")
 Registers a new command to the console. More...
 
static void register_command (string name, System.Action< string[]> func, string desc)
 Registers a new command to the console. More...
 

Events

static System.Action< string > OnPrint = delegate { }
 
static System.Action< string > OnCommand = delegate { }
 

Static Private Member Functions

static void echo_command (string s)
 
static void register_all_attribute_commands ()
 
static void help_command (string arg)
 
static void print_all_available_commands ()
 
static void sample_command (string[] args)
 

Static Private Attributes

static string output_s
 
static List< string > output_history = new List<string>()
 
static List< string > command_history = new List<string>()
 
static int command_history_limit = 10
 
static List< AVR_ConsoleCommandcommands = new List<AVR_ConsoleCommand>()
 
static bool initialized = false
 
static int repeat_counter = 1
 

Detailed Description

Class for the arc-vr developer's console. Functions as a singleton with only static members. Multiple independent consoles per scene/instance is not possible.

Definition at line 17 of file AVR_DevConsole.cs.