Add content deprecation system that auto-saves assets in Editor that use old data format
This commit is contained in:
@@ -77,7 +77,7 @@ public:
|
||||
/// Tries to load surface graph from the asset.
|
||||
/// </summary>
|
||||
/// <returns>The surface data or empty if failed to load it.</returns>
|
||||
API_FUNCTION() BytesContainer LoadSurface();
|
||||
API_FUNCTION() BytesContainer LoadSurface() const;
|
||||
|
||||
#if USE_EDITOR
|
||||
/// <summary>
|
||||
@@ -85,7 +85,7 @@ public:
|
||||
/// </summary>
|
||||
/// <param name="data">Stream with graph data.</param>
|
||||
/// <returns>True if cannot save it, otherwise false.</returns>
|
||||
API_FUNCTION() bool SaveSurface(const BytesContainer& data);
|
||||
API_FUNCTION() bool SaveSurface(const BytesContainer& data) const;
|
||||
#endif
|
||||
|
||||
private:
|
||||
@@ -99,6 +99,7 @@ public:
|
||||
void OnScriptingDispose() override;
|
||||
#if USE_EDITOR
|
||||
void GetReferences(Array<Guid>& assets, Array<String>& files) const override;
|
||||
bool Save(const StringView& path = StringView::Empty) override;
|
||||
#endif
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user