C# 클래스 WhiteCore.Modules.FileBasedSimulationData

FileBased DataStore, do not store anything in any databases, instead save .sim files for it
상속: ISimulationDataStore, IDisposable
파일 보기 프로젝트 열기: WhiteCoreSim/WhiteCore-Dev

보호된 프로퍼티들

프로퍼티 타입 설명
_oldRegionLoader IRegionDataLoader
_regionData RegionData
_regionLoader IRegionDataLoader
defaultDataPath string
m_backupSaveTimer System.Timers.Timer
m_displayNotSavingNotice bool
m_fileName string
m_keepOldSave bool
m_mapcenter_x int
m_mapcenter_y int
m_oldSaveDirectory string
m_oldSaveHasBeenSaved bool
m_regionNameSeed string[]
m_removeArchiveDays int
m_requiresSave bool
m_saveBackupChanges bool
m_saveBackups bool
m_saveChanges bool
m_saveLock object
m_saveTimer System.Timers.Timer
m_scene IScene
m_shutdown bool
m_storeDirectory string
m_timeBetweenBackupSaves int
m_timeBetweenSaves int

공개 메소드들

메소드 설명
CacheDispose ( ) : void
CleanupRegionBackups ( IScene scene, string cmds ) : void

Cleanups the old region backups.

Copy ( ) : ISimulationDataStore
CreateNewRegion ( ISimulationBase simBase, int>.Dictionary currentInfo ) : WhiteCore.Framework.SceneInfo.RegionInfo
CreateNewRegion ( ISimulationBase simBase, WhiteCore.Framework.SceneInfo.RegionInfo regionInfo, int>.Dictionary currentInfo ) : WhiteCore.Framework.SceneInfo.RegionInfo

Initializes a new region using the passed regioninfo

CreateNewRegion ( ISimulationBase simBase, string regionName, int>.Dictionary currentInfo ) : WhiteCore.Framework.SceneInfo.RegionInfo
DeleteUpOldArchives ( int daysOld ) : void
Dispose ( ) : void
FileBasedSimulationData ( ) : System
FindBackupRegionFiles ( ) : List
FindRegionBackupFiles ( string regionName ) : List
FindRegionInfos ( bool &newRegion, ISimulationBase simBase ) : List
ForceBackup ( ) : void
GetLastBackupFileName ( string regionName ) : string
Initialise ( ) : void
LoadLandObjects ( ) : List

Around for legacy things

LoadObjects ( ) : List
LoadRegionInfo ( string fileName, ISimulationBase simBase ) : WhiteCore.Framework.SceneInfo.RegionInfo
LoadRegionNameInfo ( string regionName, ISimulationBase simBase ) : WhiteCore.Framework.SceneInfo.RegionInfo
LoadTerrain ( bool RevertMap, int RegionSizeX, int RegionSizeY ) : void
LoadWater ( bool RevertMap, int RegionSizeX, int RegionSizeY ) : void
RemoveRegion ( ) : void
RestoreBackupFile ( string fileName, string regionName ) : bool
RestoreLastBackup ( string regionName ) : bool

Restores the last backup.

SetRegion ( IScene scene ) : void
Shutdown ( ) : void
Tainted ( ) : void
UpdateRegionInfo ( IScene scene, string cmds ) : void

Updates the region info, allowing for changes etc.

UpdateRegionPrims ( IScene scene, string cmds ) : void

Sets the region prim capacity.

보호된 메소드들

메소드 설명
ReadBackup ( string fileName ) : void
ReadConfig ( ISimulationBase simBase ) : void

Read the config for the data loader

SaveBackup ( bool isOldSave ) : void

Save a backup of the sim

SerializeDateTime ( ) : string
UpdateRegionCapacity ( ) : void
m_backupSaveTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Save a backup into the oldSaveDirectory on the timer event

m_saveTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Save a backup on the timer event

비공개 메소드들

메소드 설명
BuildOldSaveFileName ( ) : string
BuildSaveFileName ( ) : string
BuildSaveFileName ( string name ) : string
CreateRegionFromConsole ( WhiteCore.Framework.SceneInfo.RegionInfo info, bool prompt, int>.Dictionary currentInfo ) : WhiteCore.Framework.SceneInfo.RegionInfo

Creates/updates a region from console.

GetRegionArchives ( ) : List

Gets any region preset OAR files.

GetRegionLocation ( WhiteCore.Framework.SceneInfo.RegionInfo &regInfo ) : bool

Gets the region location.

GetRegionName ( WhiteCore.Framework.SceneInfo.RegionInfo &regInfo ) : bool

Gets the name of the region.

GetRegionOptional ( WhiteCore.Framework.SceneInfo.RegionInfo &regInfo ) : bool

Gets the region optional settings.

GetRegionSize ( WhiteCore.Framework.SceneInfo.RegionInfo &regInfo ) : bool

Gets the size of the region.

ModifyRegionSettings ( WhiteCore.Framework.SceneInfo.RegionInfo &regInfo, bool advanced ) : bool

Modifies the region settings.

ReadFromData ( byte data ) : ITerrainChannel
WhiteCoreEventManager_OnGenericEvent ( string FunctionName, object parameters ) : object

Look for the backup event, and if it is there, trigger the backup of the sim

WriteTerrainToStream ( ITerrainChannel tModule ) : byte[]

메소드 상세

CacheDispose() 공개 메소드

public CacheDispose ( ) : void
리턴 void

CleanupRegionBackups() 공개 메소드

Cleanups the old region backups.
public CleanupRegionBackups ( IScene scene, string cmds ) : void
scene IScene Scene
cmds string Commands
리턴 void

Copy() 공개 메소드

public Copy ( ) : ISimulationDataStore
리턴 ISimulationDataStore

CreateNewRegion() 공개 메소드

public CreateNewRegion ( ISimulationBase simBase, int>.Dictionary currentInfo ) : WhiteCore.Framework.SceneInfo.RegionInfo
simBase ISimulationBase
currentInfo int>.Dictionary
리턴 WhiteCore.Framework.SceneInfo.RegionInfo

CreateNewRegion() 공개 메소드

Initializes a new region using the passed regioninfo
public CreateNewRegion ( ISimulationBase simBase, WhiteCore.Framework.SceneInfo.RegionInfo regionInfo, int>.Dictionary currentInfo ) : WhiteCore.Framework.SceneInfo.RegionInfo
simBase ISimulationBase Sim base.
regionInfo WhiteCore.Framework.SceneInfo.RegionInfo Region info.
currentInfo int>.Dictionary Current region info.
리턴 WhiteCore.Framework.SceneInfo.RegionInfo

CreateNewRegion() 공개 메소드

public CreateNewRegion ( ISimulationBase simBase, string regionName, int>.Dictionary currentInfo ) : WhiteCore.Framework.SceneInfo.RegionInfo
simBase ISimulationBase
regionName string
currentInfo int>.Dictionary
리턴 WhiteCore.Framework.SceneInfo.RegionInfo

DeleteUpOldArchives() 공개 메소드

public DeleteUpOldArchives ( int daysOld ) : void
daysOld int
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

FileBasedSimulationData() 공개 메소드

public FileBasedSimulationData ( ) : System
리턴 System

FindBackupRegionFiles() 공개 메소드

public FindBackupRegionFiles ( ) : List
리턴 List

FindRegionBackupFiles() 공개 메소드

public FindRegionBackupFiles ( string regionName ) : List
regionName string
리턴 List

FindRegionInfos() 공개 메소드

public FindRegionInfos ( bool &newRegion, ISimulationBase simBase ) : List
newRegion bool
simBase ISimulationBase
리턴 List

ForceBackup() 공개 메소드

public ForceBackup ( ) : void
리턴 void

GetLastBackupFileName() 공개 메소드

public GetLastBackupFileName ( string regionName ) : string
regionName string
리턴 string

Initialise() 공개 메소드

public Initialise ( ) : void
리턴 void

LoadLandObjects() 공개 메소드

Around for legacy things
public LoadLandObjects ( ) : List
리턴 List

LoadObjects() 공개 메소드

public LoadObjects ( ) : List
리턴 List

LoadRegionInfo() 공개 메소드

public LoadRegionInfo ( string fileName, ISimulationBase simBase ) : WhiteCore.Framework.SceneInfo.RegionInfo
fileName string
simBase ISimulationBase
리턴 WhiteCore.Framework.SceneInfo.RegionInfo

LoadRegionNameInfo() 공개 메소드

public LoadRegionNameInfo ( string regionName, ISimulationBase simBase ) : WhiteCore.Framework.SceneInfo.RegionInfo
regionName string
simBase ISimulationBase
리턴 WhiteCore.Framework.SceneInfo.RegionInfo

LoadTerrain() 공개 메소드

public LoadTerrain ( bool RevertMap, int RegionSizeX, int RegionSizeY ) : void
RevertMap bool
RegionSizeX int
RegionSizeY int
리턴 void

LoadWater() 공개 메소드

public LoadWater ( bool RevertMap, int RegionSizeX, int RegionSizeY ) : void
RevertMap bool
RegionSizeX int
RegionSizeY int
리턴 void

ReadBackup() 보호된 메소드

protected ReadBackup ( string fileName ) : void
fileName string
리턴 void

ReadConfig() 보호된 메소드

Read the config for the data loader
protected ReadConfig ( ISimulationBase simBase ) : void
simBase ISimulationBase
리턴 void

RemoveRegion() 공개 메소드

public RemoveRegion ( ) : void
리턴 void

RestoreBackupFile() 공개 메소드

public RestoreBackupFile ( string fileName, string regionName ) : bool
fileName string
regionName string
리턴 bool

RestoreLastBackup() 공개 메소드

Restores the last backup.
public RestoreLastBackup ( string regionName ) : bool
regionName string Region name.
리턴 bool

SaveBackup() 보호된 메소드

Save a backup of the sim
protected SaveBackup ( bool isOldSave ) : void
isOldSave bool
리턴 void

SerializeDateTime() 보호된 메소드

protected SerializeDateTime ( ) : string
리턴 string

SetRegion() 공개 메소드

public SetRegion ( IScene scene ) : void
scene IScene
리턴 void

Shutdown() 공개 메소드

public Shutdown ( ) : void
리턴 void

Tainted() 공개 메소드

public Tainted ( ) : void
리턴 void

UpdateRegionCapacity() 보호된 메소드

protected UpdateRegionCapacity ( ) : void
리턴 void

UpdateRegionInfo() 공개 메소드

Updates the region info, allowing for changes etc.
public UpdateRegionInfo ( IScene scene, string cmds ) : void
scene IScene Scene
cmds string Commands
리턴 void

UpdateRegionPrims() 공개 메소드

Sets the region prim capacity.
public UpdateRegionPrims ( IScene scene, string cmds ) : void
scene IScene Scene
cmds string Commands
리턴 void

m_backupSaveTimer_Elapsed() 보호된 메소드

Save a backup into the oldSaveDirectory on the timer event
protected m_backupSaveTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
sender object
e System.Timers.ElapsedEventArgs
리턴 void

m_saveTimer_Elapsed() 보호된 메소드

Save a backup on the timer event
protected m_saveTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void
sender object
e System.Timers.ElapsedEventArgs
리턴 void

프로퍼티 상세

_oldRegionLoader 보호되어 있는 프로퍼티

protected IRegionDataLoader _oldRegionLoader
리턴 IRegionDataLoader

_regionData 보호되어 있는 프로퍼티

protected RegionData,WhiteCore.Modules _regionData
리턴 RegionData

_regionLoader 보호되어 있는 프로퍼티

protected IRegionDataLoader _regionLoader
리턴 IRegionDataLoader

defaultDataPath 보호되어 있는 프로퍼티

protected string defaultDataPath
리턴 string

m_backupSaveTimer 보호되어 있는 프로퍼티

protected Timer,System.Timers m_backupSaveTimer
리턴 System.Timers.Timer

m_displayNotSavingNotice 보호되어 있는 프로퍼티

protected bool m_displayNotSavingNotice
리턴 bool

m_fileName 보호되어 있는 프로퍼티

protected string m_fileName
리턴 string

m_keepOldSave 보호되어 있는 프로퍼티

protected bool m_keepOldSave
리턴 bool

m_mapcenter_x 보호되어 있는 프로퍼티

protected int m_mapcenter_x
리턴 int

m_mapcenter_y 보호되어 있는 프로퍼티

protected int m_mapcenter_y
리턴 int

m_oldSaveDirectory 보호되어 있는 프로퍼티

protected string m_oldSaveDirectory
리턴 string

m_oldSaveHasBeenSaved 보호되어 있는 프로퍼티

protected bool m_oldSaveHasBeenSaved
리턴 bool

m_regionNameSeed 보호되어 있는 프로퍼티

protected string[] m_regionNameSeed
리턴 string[]

m_removeArchiveDays 보호되어 있는 프로퍼티

protected int m_removeArchiveDays
리턴 int

m_requiresSave 보호되어 있는 프로퍼티

protected bool m_requiresSave
리턴 bool

m_saveBackupChanges 보호되어 있는 프로퍼티

protected bool m_saveBackupChanges
리턴 bool

m_saveBackups 보호되어 있는 프로퍼티

protected bool m_saveBackups
리턴 bool

m_saveChanges 보호되어 있는 프로퍼티

protected bool m_saveChanges
리턴 bool

m_saveLock 보호되어 있는 프로퍼티

protected object m_saveLock
리턴 object

m_saveTimer 보호되어 있는 프로퍼티

protected Timer,System.Timers m_saveTimer
리턴 System.Timers.Timer

m_scene 보호되어 있는 프로퍼티

protected IScene m_scene
리턴 IScene

m_shutdown 보호되어 있는 프로퍼티

protected bool m_shutdown
리턴 bool

m_storeDirectory 보호되어 있는 프로퍼티

protected string m_storeDirectory
리턴 string

m_timeBetweenBackupSaves 보호되어 있는 프로퍼티

protected int m_timeBetweenBackupSaves
리턴 int

m_timeBetweenSaves 보호되어 있는 프로퍼티

protected int m_timeBetweenSaves
리턴 int