Add function to change trait attributes.
This commit is contained in:
parent
a5b62e833e
commit
4ed5050f56
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue