Skip to content

Commit

Permalink
add note about level.ts not being editable by hand.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaxkr committed Apr 25, 2024
1 parent 95b7357 commit 7d2132c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pages/concepts/scripting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ These templates are setup to work with Dreamlab correctly out of the box, so you
## Entrypoints

All scripts must implement three entrypoints for client code, server code, and level data. These are `client.ts`, `server.ts`, and `level.ts` respectively.
Note that level.ts is automatically generated by the level editor and cannot be edited by hand.
Client and Server entrypoints must export a single function named `init()` that has a single argument, a reference to the current Dreamlab game context.

Although not strictly required, we recommend defining another shared entrypoint that is called by both client and server `init()` functions that calls
Expand Down

0 comments on commit 7d2132c

Please sign in to comment.