Property | Type | Description | |
---|---|---|---|
AddEntry | void | ||
BlockDB | System | ||
CacheClear | void | ||
CheckAlignment | void | ||
CountNewerEntries | int | ||
EnforceLimit | void | ||
EnforceTimeLimit | void | ||
EnsureCapacity | void | ||
Flush | void | ||
Init | void | ||
LimitCapacity | void | ||
Lookup | fCraft.BlockDBEntry[] | ||
OnPlayerPlacedBlock | void | ||
OpenAppend | |||
OpenRead | |||
Preload | void | ||
TrimFile | void |
Method | Description | |
---|---|---|
AutoToggleIfNeeded ( ) : bool |
If EnabledState is set to Auto, calling this auto-enables / auto-disables BlockDB depending on world's BuildSecurity.MinRank and BlockDBAutoEnableRank config key.
|
|
Clear ( ) : void |
Clears cache and deletes the .fbdb file.
|
|
GetReadLock ( ) : IDisposable |
Acquires and returns a shared (read) lock for this BlockDB. Disposing the object returned by this method releases the lock.
|
|
GetWriteLock ( ) : IDisposable |
Acquires and returns an exclusive (write) lock for this BlockDB. Disposing the object returned by this method releases the lock.
|
|
LoadSettings ( System.Xml.Linq.XElement el ) : void | ||
Lookup ( int max ) : fCraft.BlockDBEntry[] | ||
Lookup ( int max, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
Lookup ( int max, Vector3I coords ) : fCraft.BlockDBEntry[] |
Returns list of all changes done to the map at the given coordinate, newest to oldest.
|
|
Lookup ( int max, [ area ) : fCraft.BlockDBEntry[] | ||
Lookup ( int max, [ area, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
Lookup ( int max, [ area, [ info, bool exclude ) : fCraft.BlockDBEntry[] | ||
Lookup ( int max, [ area, [ info, bool exclude, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
Lookup ( int max, [ info, bool exclude ) : fCraft.BlockDBEntry[] | ||
Lookup ( int max, [ info, bool exclude, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
SaveSettings ( ) : System.Xml.Linq.XElement | ||
SaveSettings ( string rootName ) : System.Xml.Linq.XElement | ||
Traverse ( [ processor ) : void |
Traverses the database, newest to oldest entries, processing each entry with the given IBlockDBQueryProcessor.
|
Method | Description | |
---|---|---|
AddEntry ( |
||
BlockDB ( [ world ) : System | ||
CacheClear ( ) : void | ||
CheckAlignment ( ) : void | ||
CountNewerEntries ( System.TimeSpan age ) : int |
Counts entries that are newer than the given age.
|
|
EnforceLimit ( ) : void | ||
EnforceTimeLimit ( ) : void | ||
EnsureCapacity ( int min ) : void | ||
Flush ( bool enforceLimits ) : void | ||
Init ( ) : void | ||
LimitCapacity ( int max ) : void | ||
Lookup ( int max, BlockDBSearchType searchType, bool>.[ |
||
OnPlayerPlacedBlock ( object sender, [ e ) : void | ||
OpenAppend ( ) : |
||
OpenRead ( ) : |
||
Preload ( ) : void | ||
TrimFile ( int maxCapacity ) : void |
public LoadSettings ( System.Xml.Linq.XElement el ) : void | ||
el | System.Xml.Linq.XElement | |
return | void |
public Lookup ( int max ) : fCraft.BlockDBEntry[] | ||
max | int | |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
max | int | |
span | System.TimeSpan | |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, Vector3I coords ) : fCraft.BlockDBEntry[] | ||
max | int | Maximum number of changes to return. |
coords | Vector3I | Coordinate to search at. |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, [ area ) : fCraft.BlockDBEntry[] | ||
max | int | |
area | [ | |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, [ area, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
max | int | |
area | [ | |
span | System.TimeSpan | |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, [ area, [ info, bool exclude ) : fCraft.BlockDBEntry[] | ||
max | int | |
area | [ | |
info | [ | |
exclude | bool | |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, [ area, [ info, bool exclude, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
max | int | |
area | [ | |
info | [ | |
exclude | bool | |
span | System.TimeSpan | |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, [ info, bool exclude ) : fCraft.BlockDBEntry[] | ||
max | int | |
info | [ | |
exclude | bool | |
return | fCraft.BlockDBEntry[] |
public Lookup ( int max, [ info, bool exclude, System.TimeSpan span ) : fCraft.BlockDBEntry[] | ||
max | int | |
info | [ | |
exclude | bool | |
span | System.TimeSpan | |
return | fCraft.BlockDBEntry[] |
public SaveSettings ( ) : System.Xml.Linq.XElement | ||
return | System.Xml.Linq.XElement |
public SaveSettings ( string rootName ) : System.Xml.Linq.XElement | ||
rootName | string | |
return | System.Xml.Linq.XElement |
public Traverse ( [ processor ) : void | ||
processor | [ | Processor to use for each BlockDBEntry. |
return | void |