Right now runeffect simply picks the first runnable effect. This is a side effect of effect packages only supporting a single effect in the past.
Now that multiple effects can be created in an effect package, the following sounds reasonable:
If an effect module path is passed to runeffect we grab the first runnable effect as before. Example: runeffect examples.warpspeed
If the python path ends with an effect class, we run that specific effect. A runnable=True check should at least be performed. Example: runeffect examples.minecraft.MinecraftEffect
Right now
runeffect
simply picks the first runnable effect. This is a side effect of effect packages only supporting a single effect in the past.Now that multiple effects can be created in an effect package, the following sounds reasonable:
runeffect
we grab the first runnable effect as before. Example:runeffect examples.warpspeed
runnable=True
check should at least be performed. Example:runeffect examples.minecraft.MinecraftEffect