Class WorldLayerHistory
Inheritance
System.Object
WorldLayerHistory
Assembly: Eco.Simulation.dll
Syntax
public class WorldLayerHistory : Object
Constructors
WorldLayerHistory()
Declaration
public WorldLayerHistory()
Properties
LayersDir
Declaration
public static string LayersDir { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Compress(String, Stream, Stream, ref Byte[], Boolean)
Declaration
public static void Compress(string name, Stream origStream, Stream outStream, ref byte[] history, bool append = false)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.IO.Stream |
origStream |
|
System.IO.Stream |
outStream |
|
System.Byte[] |
history |
|
System.Boolean |
append |
|
ImagePath(String)
Declaration
public static string ImagePath(string layerName)
Parameters
Type |
Name |
Description |
System.String |
layerName |
|
Returns
Type |
Description |
System.String |
|
ImagePathCombinedHistory(String)
Declaration
public static string ImagePathCombinedHistory(string layerName)
Parameters
Type |
Name |
Description |
System.String |
layerName |
|
Returns
Type |
Description |
System.String |
|
Init()
Declaration
public static void Init()
InitFromStorage(String)
Declaration
public static bool InitFromStorage(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
InitLayerImages()
Declaration
public static void InitLayerImages()
SaveGIF(WorldLayer, Boolean)
Declaration
public static void SaveGIF(WorldLayer layer, bool backup = false)
Parameters
Type |
Name |
Description |
WorldLayer |
layer |
|
System.Boolean |
backup |
|
SaveGIF(String, Int32, Int32, Func<Int32, Int32, Byte>, Boolean, Byte[], Boolean, Boolean, Boolean)
Declaration
public static bool SaveGIF(string name, int width, int height, Func<int, int, byte> pixelFunc, bool animate, byte[] colorTable, bool updateColorTable, bool backup = false, bool saveHistory = true)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Int32 |
width |
|
System.Int32 |
height |
|
System.Func<System.Int32, System.Int32, System.Byte> |
pixelFunc |
|
System.Boolean |
animate |
|
System.Byte[] |
colorTable |
|
System.Boolean |
updateColorTable |
|
System.Boolean |
backup |
|
System.Boolean |
saveHistory |
|
Returns
Type |
Description |
System.Boolean |
|
SaveHeightHistory(Boolean)
Declaration
public static bool SaveHeightHistory(bool backup)
Parameters
Type |
Name |
Description |
System.Boolean |
backup |
|
Returns
Type |
Description |
System.Boolean |
|
SaveTerrainHistory(Boolean)
Declaration
public static bool SaveTerrainHistory(bool backup)
Parameters
Type |
Name |
Description |
System.Boolean |
backup |
|
Returns
Type |
Description |
System.Boolean |
|
SaveWorldPreviewHistory(Boolean)
Declaration
public static bool SaveWorldPreviewHistory(bool backup)
Parameters
Type |
Name |
Description |
System.Boolean |
backup |
|
Returns
Type |
Description |
System.Boolean |
|
StorageName(String)
Declaration
public static string StorageName(string layerName)
Parameters
Type |
Name |
Description |
System.String |
layerName |
|
Returns
Type |
Description |
System.String |
|
StorageNameCombinedHistory(String)
Declaration
public static string StorageNameCombinedHistory(string layerName)
Parameters
Type |
Name |
Description |
System.String |
layerName |
|
Returns
Type |
Description |
System.String |
|
Update()
Declaration
public static void Update()
UpdateBackups()
Declaration
public static void UpdateBackups()