-
Notifications
You must be signed in to change notification settings - Fork 37
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
How to hook static fields #43
Comments
//...
auto ItemID_Sets_c = BNM::Class("Terraria.ID", "ItemID").GetInnerClass("Sets");
BNM::Field<BNM::Mono::Array<bool>> Deprecated = ItemID_Sets_c.GetField("Deprecated");
for (const bool& a : Deprecated.Get()->ToVector())
{
// Code that writes values to file
}
// this line sets 13th element to true
Deprecated.Get()[12] = true;
//... |
Thank you, good comrade |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to do what the hook static field should do. The following is using Tool dump
The text was updated successfully, but these errors were encountered: