Class FlaxPackage
Flax resources package container.
Assembly: FlaxEngine.dll
File: Engine/Content/Storage/FlaxPackage.h
Syntax
public class FlaxPackage : public FlaxStorageConstructors
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> _entriesField Value
| Dictionary<Guid, Entry> 
 | 
Methods
AddEntry(Entry& e)
Declaration
protected virtual void AddEntry(Entry& e) overrideParameters
| Entry
        e 
 | 
Overrides
AllowDataModifications()
Checks whenever storage container allows the data modifications.
Declaration
public virtual bool AllowDataModifications() const overrideReturns
| bool 
 | 
Overrides
Dispose()
Releases storage resources and closes handle to the file.
Declaration
public virtual void Dispose() overrideOverrides
GetEntries(Array<Entry>& output)
Gets all the entries in the storage.
Declaration
public virtual void GetEntries(Array<Entry>& output) const overrideParameters
| Array<Entry>
        output The output. | 
Overrides
GetEntriesCount()
Gets amount of entries in the storage.
Declaration
public virtual int32 GetEntriesCount() const overrideReturns
| int32 
 | 
Overrides
GetEntry(const Guid& id, Entry& e)
Declaration
protected virtual bool GetEntry(const Guid& id, Entry& e) overrideParameters
| 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 overrideParameters
| 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 overrideParameters
| 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 overrideParameters
| 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 overrideReturns
| 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) overrideParameters
| 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 overrideReturns
| String 
 |