jac3km4 / redscript

Compiler/decompiler toolkit for redscript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wrapMethod causes issues with callbacks

jac3km4 opened this issue · comments

commented
  • @wrapMethod creates one method for every wrapper, but it looks like the game invokes every cb method on a class, so all of the wrappers get invoked
  • cb methods should take exactly one argument and it's type should extend Event, this could be enforced by the compiler

cb methods can have different signatures, Event based callback is just one variation that can cause issues with wrappers

commented

the main issue has been adressed in a6a22cf