private static extern void Console_AddCommand_void_string( String name , Function_void_string function );
//========================================================================================= /// <summary> /// Add a command to the console. /// </summary> /// /// <param name="function">Delegate to command function. /// Must be static. Must also match one of the pre-defined console /// function types. </param> //========================================================================================= public static void AddCommand( String name , Function_void_string function ) { // Abort if console not created: if ( m_created == false ) return; try { m_delegate_list.AddLast( function ); Console_AddCommand_void_string(name,function); } catch {;} }