Add function to change trait attributes.

This commit is contained in:
David Wendt 2020-07-20 19:42:03 -04:00
parent a5b62e833e
commit 4ed5050f56
1 changed files with 4 additions and 0 deletions

View File

@ -289,4 +289,8 @@ impl<'gc> Trait<'gc> {
pub fn is_override(&self) -> bool {
self.attributes.0.contains(TraitAttributes::Override)
}
pub fn set_attributes(&mut self, attribs: EnumSet<TraitAttributes>) {
self.attributes.0 = attribs;
}
}