## XIDInterf
Class XIIIQuickSLManager

source: C:\XIII\XIDInterf\Classes\XIIIQuickSLManager.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--XIDInterf.XIIIQuickSLManager

Direct Known Subclasses:None

class XIIIQuickSLManager
extends Engine.Actor

Variables
`ReturnCode,` | `IsEmpty`
`XIIIConsole` | `MyConsole`

States
QuickLoading, QuickSaving

Function Summary
`void` | `RequestQuickLoad( )`
`void` | `RequestQuickSave( )`

State QuickLoading Function Summary
`void` | `RequestQuickLoad( )`
`void` | `RequestQuickSave( )`

State QuickSaving Function Summary
`void` | `RequestQuickLoad( )`
`void` | `RequestQuickSave( )`

Source Code

    00001	class XIIIQuickSLManager extends Actor;
    00002
    00003	VAR int ReturnCode, IsEmpty;
    00004	VAR XIIIConsole MyConsole;
    00005
    00006	function RequestQuickSave( )
    00007	{
    00008	    GotoState( 'QuickSaving' );
    00009	}
    00010
    00011	function RequestQuickLoad( )
    00012	{
    00013	    GotoState( 'QuickLoading' );
    00014	}
    00015
    00016	state QuickSaving
    00017	{
    00018	    function RequestQuickSave( );
    00019	    function RequestQuickLoad( );
    00020	begin:
    00021	    class'GUIController'.Static.RequestWriteSlot(0);
    00022	    while ( !class'GUIController'.Static.IsWriteSlotFinished(ReturnCode))
    00023	    {
    00024	        sleep( 0.1 );
    00025	    }
    00026		if ( MyConsole!=none )
    00027			MyConsole.qsManager = none;
    00028	    Destroy( );
    00029	}
    00030
    00031	state QuickLoading
    00032	{
    00033	    function RequestQuickSave( );
    00034	    function RequestQuickLoad( );
    00035	begin:
    00036	    class'GUIController'.Static.RequestIsSlotEmpty( 0 );
    00037	    while ( !class'GUIController'.Static.IsSlotEmptyFinished( ReturnCode, IsEmpty ) )
    00038	    {
    00039	        sleep( 0.1 );
    00040	    }
    00041
    00042	    if ( ReturnCode>=0 && IsEmpty == 0 )
    00043	    {
    00044	        class'GUIController'.Static.RequestReadSlot( 0 );
    00045	        while ( !class'GUIController'.Static.IsReadSlotFinished( ReturnCode ) )
    00046	        {
    00047	            sleep( 0.1 );
    00048	        }
    00049	    }
    00050
    00051		if ( MyConsole!=none )
    00052			MyConsole.qsManager = none;
    00053	    Destroy( );
    00054	}
    00055
    00056
    00057
    00058	defaultproperties
    00059	{
    00060	}

End Source Code