Class FlaxPackage
Flax resources package container.
Assembly: FlaxEngine.dll
File: Engine/Content/Storage/FlaxPackage.h
Syntax
public class FlaxPackage : public FlaxStorage
Constructors
FlaxPackage(const StringView& path)
Initializes a new instance of the FlaxPackage class.
Declaration
public FlaxPackage(const StringView& path)
Parameters
StringView
path
The path. |
Fields
_entries
Declaration
protected Dictionary<Guid, Entry> _entries
Field Value
Dictionary<Guid, Entry>
|
Methods
AddEntry(Entry& e)
Declaration
protected virtual void AddEntry(Entry& e) override
Parameters
Entry
e
|
Overrides
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)
Gets all the entries in the storage.
Declaration
public virtual void GetEntries(Array<Entry>& output) const override
Parameters
Array<Entry>
output
The output. |
Overrides
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 virtual bool GetEntry(const Guid& id, Entry& e) override
Parameters
Guid
id
|
Entry
e
|
Returns
bool
|
Overrides
GetEntry(int32 index, Entry& value)
Gets the asset entry at given index.
Declaration
public virtual void GetEntry(int32 index, Entry& value) const override
Parameters
int32
index
The asset index. |
Entry
value
The result. |
Overrides
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)
Sets the asset entry at given index.
Declaration
public virtual void SetEntry(int32 index, const Entry& value) override
Parameters
int32
index
The asset index. |
Entry
value
The input value. |
Overrides
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override
Returns
String
|