You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered: