Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow objects to be resolvable by Id during Deserialize #1055

Closed
yuto-trd opened this issue Aug 18, 2024 · 0 comments · Fixed by #1086
Closed

Allow objects to be resolvable by Id during Deserialize #1055

yuto-trd opened this issue Aug 18, 2024 · 0 comments · Fixed by #1086
Assignees
Labels
enhancement New feature or request

Comments

@yuto-trd
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant