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

[Question] Are there any ready-made solutions for generating wrapper code? #127

Open
Albeoris opened this issue Nov 26, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Albeoris
Copy link

Hi! I need to dump information about databases that are described as SerializableObject and stored in game bundles.

Now I'm describing my own class hierarchy, like this:

public sealed class Conversations : UMonoBehaviour, IWrapper<Conversations>
{
    public Conversations(AssetsFileInstance assetsFile, AssetTypeValueField field) : base(assetsFile, field)
    {
    }
    
    public static Conversations Wrap(AssetsFileInstance instance, AssetTypeValueField field) => new(instance, field);
    
    public UArray<Dialogue> Dialogues => _field["dialogues"].AsArray<Dialogue>(_assetsFile);
}

Is there a ready-made solution that will generate wrapper code around AssetTypeValueField or allow me to use classes from restored DummyDll when reading assets?

@nesrak1
Copy link
Owner

nesrak1 commented Nov 27, 2023

A proof of concept for this existed for a little bit for a modding project I worked on, but I doubt I still have the code to do it. I would also like this some day.

@nesrak1 nesrak1 added the enhancement New feature or request label Nov 27, 2023
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

No branches or pull requests

2 participants