Change imports
This commit is contained in:
@@ -81,7 +81,7 @@ matter, the `id` inside does, except for [tags](../resources/tags.md), whose id
|
||||
| `version` | yes | The mod's own version, semver like `1.0.0`. |
|
||||
| `authors` | no | A list of names. |
|
||||
| `game_version` | no | The bworld versions the mod works with, as a semver range. Only checked for mods with `engine_access`. |
|
||||
| `engine_access` | no | `true` lets the scripts import `bworld/engine` and hook the engine. See [Engine Access](../misc/engine.md). |
|
||||
| `engine_access` | no | `true` lets the scripts import `cubi/engine` and hook the engine. See [Engine Access](../misc/engine.md). |
|
||||
| `dependencies` | no | Other mods, `{ "id", "version" }`. A missing dependency is an error, and dependencies load first. The version range isn't checked yet. |
|
||||
| `scripts` | no | Paths to the `server`, `client`, `shared` and `worldgen` scripts. See [Sides](../concepts/sides.md). |
|
||||
| `credits` | no | A markdown file for licenses and thanks, shown on the Credits screen. Raw HTML in it is shown as text. |
|
||||
@@ -102,11 +102,11 @@ so they can import other files and packages, but code imported by several script
|
||||
|
||||
When a mod's folder has a `deno.json`, its scripts are bundled and typechecked with it, so the mod can have its own
|
||||
imports and npm or JSR packages. Mods without one use the `deno.json` of the folder the build runs in, like the mods in
|
||||
this repository. That config maps the API types, which scripts import as `bworld/server`, `bworld/client`,
|
||||
`bworld/shared` and `bworld/worldgen`, and [`bworld/engine`](../misc/engine.md):
|
||||
this repository. That config maps the API types, which scripts import as `cubi/server`, `cubi/client`, `cubi/shared` and
|
||||
`cubi/worldgen`, and [`cubi/engine`](../misc/engine.md):
|
||||
|
||||
```ts
|
||||
import type { ServerContext } from "bworld/server";
|
||||
import type { ServerContext } from "cubi/server";
|
||||
```
|
||||
|
||||
## `.bmod` Files
|
||||
|
||||
Reference in New Issue
Block a user