Format more engine code
This commit is contained in:
@@ -27,7 +27,6 @@ class FLAXENGINE_API FlaxStorage : public Object
|
||||
friend class BinaryAsset;
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Magic code stored in file header to identify contents.
|
||||
/// </summary>
|
||||
@@ -88,7 +87,6 @@ public:
|
||||
};
|
||||
|
||||
protected:
|
||||
|
||||
// State
|
||||
uint32 _refCount;
|
||||
DateTime _lastRefLostTime;
|
||||
@@ -104,24 +102,20 @@ protected:
|
||||
String _path;
|
||||
|
||||
protected:
|
||||
|
||||
explicit FlaxStorage(const StringView& path);
|
||||
|
||||
private:
|
||||
|
||||
// Used by FlaxStorageReference:
|
||||
void AddRef();
|
||||
void RemoveRef();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Finalizes an instance of the <see cref="FlaxStorage"/> class.
|
||||
/// </summary>
|
||||
virtual ~FlaxStorage();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Locks the storage chunks data to prevent disposing them. Also ensures that file handles won't be closed while chunks are locked.
|
||||
/// </summary>
|
||||
@@ -147,7 +141,6 @@ public:
|
||||
static LockData Invalid;
|
||||
|
||||
private:
|
||||
|
||||
FlaxStorage* _storage;
|
||||
|
||||
LockData(FlaxStorage* storage)
|
||||
@@ -158,14 +151,13 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
LockData(const LockData& other)
|
||||
: _storage(other._storage)
|
||||
{
|
||||
if (_storage)
|
||||
_storage->LockChunks();
|
||||
}
|
||||
|
||||
|
||||
LockData(LockData&& other) noexcept
|
||||
: _storage(other._storage)
|
||||
{
|
||||
@@ -208,7 +200,6 @@ public:
|
||||
other._storage = nullptr;
|
||||
return *this;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
@@ -228,7 +219,6 @@ public:
|
||||
LockData LockSafe();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Gets the references count.
|
||||
/// </summary>
|
||||
@@ -335,7 +325,6 @@ public:
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Loads package from the file.
|
||||
/// </summary>
|
||||
@@ -417,7 +406,6 @@ public:
|
||||
virtual void Dispose();
|
||||
|
||||
public:
|
||||
|
||||
/// <summary>
|
||||
/// Ticks this instance.
|
||||
/// </summary>
|
||||
@@ -428,7 +416,6 @@ public:
|
||||
#endif
|
||||
|
||||
public:
|
||||
|
||||
#if USE_EDITOR
|
||||
|
||||
/// <summary>
|
||||
@@ -489,7 +476,6 @@ public:
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
bool LoadAssetHeader(const Entry& e, AssetInitData& data);
|
||||
void AddChunk(FlaxChunk* chunk);
|
||||
virtual void AddEntry(Entry& e) = 0;
|
||||
|
||||
Reference in New Issue
Block a user