Skip to content

Commit

Permalink
Update docs/documentation/plugins.md
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
  • Loading branch information
kevinddchen and delucis committed Feb 12, 2023
1 parent 7918f96 commit b23c1c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/documentation/plugins.md
Expand Up @@ -40,6 +40,9 @@ A plugin is an object that contains the following fields.
fnWrap: (fn, fnType) => ({ G, ...rest }, ...args) => {
G = preprocess(G);
G = fn({ G, ...rest }, ...args);
if (fnType === GameMethod.TURN_ON_END) {
// only run when wrapping a turn’s onEnd function
}
G = postprocess(G);
return G;
},
Expand Down

0 comments on commit b23c1c2

Please sign in to comment.