-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@ccclass won't take effect if there're another class decorators returning new classes #14959
Comments
Should be solved be #14961 . Here's my feedback stub to issue emitter: Updated ReplyNow #14961 gets updated. We turn to provide the original "transferring" functionality in form of a wrapping decorator instead: @ccclass('CardGameMode')
@ccclass.forward(hasCGEvents()) // Forward the decorator execution to `hasCGEvents()` as if there's `@hasCGEvents()`, but with bug solved
export class CardGameMode extends GameMode { Now you don't have to manually call First ReplyHi. We have looked through your code and had some conclusions:
|
This looks like a good solution. I'm assuming that I will still need to set the constructor function as stated in 2 of the first reply, but can now use the additional decorator instead of calling the transferCCClass method. |
Testcase files stub:
Testcase.zip
The text was updated successfully, but these errors were encountered: