C# Class TShockAPI.SaveManager

Inheritance: IDisposable
Afficher le fichier Open project: NyxStudios/TShock

Private Properties

Свойство Type Description
EnqueueTask void
SaveManager System
SaveWorker void

Méthodes publiques

Méthode 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

Méthode Description
EnqueueTask ( SaveTask task ) : void
SaveManager ( ) : System
SaveWorker ( ) : void

Method Details

Dispose() public méthode

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

OnSaveWorld() public méthode

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

SaveWorld() public méthode

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)
Résultat void