浏览代码

Update editor-scripts.md (#318)

Björn Ritzl 2 年之前
父节点
当前提交
9c379cbbdd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      docs/en/manuals/editor-scripts.md

+ 2 - 2
docs/en/manuals/editor-scripts.md

@@ -182,9 +182,9 @@ We decided to limit lifecycle hooks to single editor script file because order i
 Every lifecycle hook can return actions or write to files in project directory.
 Every lifecycle hook can return actions or write to files in project directory.
 
 
 Existing lifecycle hooks that `/hooks.editor_script` may specify:
 Existing lifecycle hooks that `/hooks.editor_script` may specify:
-- `on_build_started(opts)` — executed when game is Built to run locally or on some remote target. Your changes, be it returned actions or updated file contents, will appear in a built game. Raising an error from this hook will abort a build. `opts` is a table that contains following keys:
+- `on_build_started(opts)` — executed when game is Built to run locally or on some remote target using either the Project Build or Debug Start options. Your changes, be it returned actions or updated file contents, will appear in a built game. Raising an error from this hook will abort a build. `opts` is a table that contains following keys:
   - `platform` — a string in `%arch%-%os%` format describing what platform it's built for, currently always the same value as in `editor.platform`.
   - `platform` — a string in `%arch%-%os%` format describing what platform it's built for, currently always the same value as in `editor.platform`.
-- `on_build_finished(opts)` — executed when build is finished, be at successful or failed. `opts` is a table with following keys:
+- `on_build_finished(opts)` — executed when build is finished, be it successful or failed. `opts` is a table with following keys:
   - `platform` — same as in `on_build_started`
   - `platform` — same as in `on_build_started`
   - `success` — whether build is successful, either `true` or `false`
   - `success` — whether build is successful, either `true` or `false`
 - `on_bundle_started(opts)` — executed when you create a bundle or Build HTML5 version of a game. As with `on_build_started`, changes triggered by this hook will appear in a bundle, and errors will abort a bundle. `opts` will have these keys:
 - `on_bundle_started(opts)` — executed when you create a bundle or Build HTML5 version of a game. As with `on_build_started`, changes triggered by this hook will appear in a bundle, and errors will abort a bundle. `opts` will have these keys: