From 4ed5050f56bb55753d3f837a27d2988e71a3c47f Mon Sep 17 00:00:00 2001 From: David Wendt Date: Mon, 20 Jul 2020 19:42:03 -0400 Subject: [PATCH] Add function to change trait attributes. --- core/src/avm2/trait.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/avm2/trait.rs b/core/src/avm2/trait.rs index 73782dc99..59c544ac8 100644 --- a/core/src/avm2/trait.rs +++ b/core/src/avm2/trait.rs @@ -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) { + self.attributes.0 = attribs; + } }