Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Added more Effect functionality #87
Wow, it now works! Thank you!
About the addEffect function for the Unit and Destructable packages, I removed it and placed it into the Widget package instead. It only broke one package in the standard library which is the Fx package. The error occurred due the usage of unit.addEffect and it can be easily fixed by importing the Widget package.
From my tests, it only breaks from packages that uses import NoWurst and unit.addEffect/destructable.addEffect. Like what I did in the Fx package, it can be easily fixed by importing the Widget package..
It leaves me a question: should we remove the addEffect function from the Unit and Destructable packages? Keep it? Deprecate it?