Ejemplo n.º 1
0
 private static extern void Console_AddCommand_void_float( String name , Function_void_float     function );
Ejemplo n.º 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_void_float function )
    {
        // Abort if console not created:

        if ( m_created == false ) return;

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