Class FlaxFile
Flax Game Engine asset files container object.
Assembly: FlaxEngine.dll
File: Engine/Content/Storage/FlaxFile.h
Syntax
public class FlaxFile : public FlaxStorage
Constructors
FlaxFile(const StringView& path)
Initializes a new instance of the FlaxFile class.
Declaration
public FlaxFile(const StringView& path)
Parameters
StringView
path
The path. |
Fields
_asset
Declaration
protected Entry _asset
Field Value
Entry
|
Methods
AddEntry(Entry& e)
Declaration
protected void AddEntry(Entry& e) override
Parameters
Entry
e
|
AllowDataModifications()
Checks whenever storage container allows the data modifications.
Declaration
public virtual bool AllowDataModifications() const override
Returns
bool
|
Overrides
Dispose()
Releases storage resources and closes handle to the file.
Declaration
public virtual void Dispose() override
Overrides
GetEntries(Array<Entry>& output)
Declaration
public void GetEntries(Array<Entry>& output) const override
Parameters
Array<Entry>
output
|
GetEntriesCount()
Gets amount of entries in the storage.
Declaration
public virtual int32 GetEntriesCount() const override
Returns
int32
|
Overrides
GetEntry(const Guid& id, Entry& e)
Declaration
protected bool GetEntry(const Guid& id, Entry& e) override
Parameters
Guid
id
|
Entry
e
|
Returns
bool
|
GetEntry(int32 index, Entry& value)
Declaration
public void GetEntry(int32 index, Entry& value) const override
Parameters
int32
index
|
Entry
value
|
HasAsset(const AssetInfo& info)
Determines whether the specified asset exists in this container.
Declaration
public virtual bool HasAsset(const AssetInfo& info) const override
Parameters
AssetInfo
info
The asset info. |
Returns
bool
True if the specified asset exists in this container, otherwise false. |
Overrides
HasAsset(const Guid& id)
Determines whether the specified asset exists in this container.
Declaration
public virtual bool HasAsset(const Guid& id) const override
Parameters
Guid
id
The asset identifier. |
Returns
bool
True if the specified asset exists in this container, otherwise false. |
Overrides
IsPackage()
Determines whether this storage container is a package.
Declaration
public virtual bool IsPackage() const override
Returns
bool
|
Overrides
SetEntry(int32 index, const Entry& value)
Declaration
public void SetEntry(int32 index, const Entry& value) override
Parameters
int32
index
|
Entry
value
|
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override
Returns
String
|