Example #1
0
 private static extern void Console_AddCommand_float_void( String name , Function_float_void     function );
Example #2
0
    //=========================================================================================
    /// <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_float_void function )
    {
        // Abort if console not created:

        if ( m_created == false ) return;

        try
        {
            m_delegate_list.AddLast( function ); Console_AddCommand_float_void(name,function);
        }
        catch {;}
    }