C# Class TShockAPI.SaveManager

Inheritance: IDisposable
ファイルを表示 Open project: NyxStudios/TShock

Private Properties

Property Type Description
EnqueueTask void
SaveManager System
SaveWorker void

Public Methods

Method Description
Dispose ( ) : void

Processes any outstanding saves, shutsdown the save thread and returns

OnSaveWorld ( WorldSaveEventArgs args ) : void

SaveWorld event handler which notifies users that the server may lag

SaveWorld ( bool wait = true, bool resetTime = false, bool direct = false ) : void

Saves the map data

Private Methods

Method Description
EnqueueTask ( SaveTask task ) : void
SaveManager ( ) : System
SaveWorker ( ) : void

Method Details

Dispose() public method

Processes any outstanding saves, shutsdown the save thread and returns
public Dispose ( ) : void
return void

OnSaveWorld() public method

SaveWorld event handler which notifies users that the server may lag
public OnSaveWorld ( WorldSaveEventArgs args ) : void
args WorldSaveEventArgs
return void

SaveWorld() public method

Saves the map data
public SaveWorld ( bool wait = true, bool resetTime = false, bool direct = false ) : void
wait bool wait for all pending saves to finish (default: true)
resetTime bool reset the last save time counter (default: false)
direct bool use the realsaveWorld method instead of saveWorld event (default: false)
return void