Class BinaryAssetUpgrader
Binary Assets Upgrader base class
Inheritance
BinaryAssetUpgrader
Assembly: FlaxEngine.dll
File: Engine/Content/Upgraders/BinaryAssetUpgrader.h
Syntax
public class BinaryAssetUpgrader : public IAssetUpgrader
Constructors
BinaryAssetUpgrader()
Declaration
protected BinaryAssetUpgrader()
Methods
CopyChunk(AssetMigrationContext& context, int32 index)
Copies single chunk from the input data to the output container.
Declaration
public static bool CopyChunk(AssetMigrationContext& context, int32 index)
Parameters
AssetMigrationContext
context
The context. |
int32
index
The chunk index. |
Returns
bool
True if failed, otherwise false. |
CopyChunk(AssetMigrationContext& context, int32 srcIndex, int32 dstIndex)
Copies single chunk from the input data to the output container.
Declaration
public static bool CopyChunk(AssetMigrationContext& context, int32 srcIndex, int32 dstIndex)
Parameters
AssetMigrationContext
context
The context. |
int32
srcIndex
The source chunk index. |
int32
dstIndex
The destination chunk index. |
Returns
bool
True if failed, otherwise false. |
CopyChunks(AssetMigrationContext& context)
Copies all the chunks from the input data to the output container.
Declaration
public static bool CopyChunks(AssetMigrationContext& context)
Parameters
AssetMigrationContext
context
The context. |
Returns
bool
True if failed, otherwise false. |
setup(Upgrader const* upgraders, int32 upgradersCount)
Declaration
protected void setup(Upgrader const* upgraders, int32 upgradersCount)
Parameters
Upgrader const
upgraders
|
int32
upgradersCount
|
ShouldUpgrade(uint32 serializedVersion)
Checks if given asset version should be converted.
Declaration
public virtual bool ShouldUpgrade(uint32 serializedVersion) const override
Parameters
uint32
serializedVersion
The serialized version. |
Returns
bool
True if perform conversion, otherwise false. |
Overrides
Upgrade(uint32 serializedVersion, AssetMigrationContext& context)
Upgrades the specified asset data serialized version.
Declaration
public bool Upgrade(uint32 serializedVersion, AssetMigrationContext& context) const
Parameters
uint32
serializedVersion
The serialized version. |
AssetMigrationContext
context
The context. |
Returns
bool
True if cannot upgrade or upgrade failed, otherwise false |