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

PlacedObject Persistent API #571

Open
Noggog opened this issue Dec 5, 2024 · 0 comments
Open

PlacedObject Persistent API #571

Noggog opened this issue Dec 5, 2024 · 0 comments

Comments

@Noggog
Copy link
Member

Noggog commented Dec 5, 2024

MajorFlags is a concept on other records, but it's a bit odd for placed objects due to their complexity. Right now it seems like this is the best way to interact with it?

obj.MajorRecordFlagsRaw &= (int)PlacedObject.DefaultMajorFlag.Persistent;
obj.MajorRecordFlagsRaw = Enums.SetFlag(obj.MajorRecordFlagsRaw, (int)PlacedObject.DefaultMajorFlag.Persistent, true);
to set

or

Enums.HasFlag(obj.MajorRecordFlagsRaw, (int)PlacedObject.DefaultMajorFlag.Persistent)

Would be good to make sure there's API in place that's cleaner than that. And then document it.

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

No branches or pull requests

1 participant