b-editor/beutl

Allow objects to be resolvable by Id during Deserialize

Closed this issue · 0 comments

Is your feature request related to a problem? Please describe.

Currently, when an object references another object by Id, object resolution during deserialization is done using Hierarchy. Therefore, objects that do not inherit Hierarchical cannot implement them.

Describe the solution you'd like

Implement the Resolve method in the ICoreSerializationContext.This method takes an Id and a callback function as arguments, so that the callback will be executed when the deserialization of the object with the same Id is finished.

public interface ICoreSerializationContext
{
+   void Resolve(Guid id, Action<CoreObject> callback);
}

Describe alternatives you've considered

No response

Additional context

No response