boardgame.io
boardgame.io copied to clipboard
enumerate function parameters
Hi, I have create a game with a custom plugin.
enumerate function of ai section of game should have G and ctx as parameters. Unfortunately ctx param of enumerate function does not have ctx['plugin-name']
Is it an issue?
Do you mean that it is missing the Typescript type or do you get an error when accessing the custom plug-in?
It is possible we only add plugins to ctx
before calling moves in AI but after enumerate — I don't quite remember off the top of my head.
Do you mean that it is missing the Typescript type or do you get an error when accessing the custom plug-in?
It is possible we only add plugins to
ctx
before calling moves in AI but after enumerate — I don't quite remember off the top of my head.
I mean i have got an error because ctx['plugin-name'] is undefined.