C# Класс TShockAPI.SaveManager

Наследование: IDisposable
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
EnqueueTask void
SaveManager System
SaveWorker void

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
EnqueueTask ( SaveTask task ) : void
SaveManager ( ) : System
SaveWorker ( ) : void

Описание методов

Dispose() публичный Метод

Processes any outstanding saves, shutsdown the save thread and returns
public Dispose ( ) : void
Результат void

OnSaveWorld() публичный Метод

SaveWorld event handler which notifies users that the server may lag
public OnSaveWorld ( WorldSaveEventArgs args ) : void
args WorldSaveEventArgs
Результат void

SaveWorld() публичный Метод

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)
Результат void