@vnejs/docs 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/architecture.md +6 -3
- package/package.json +1 -1
- package/plugins/core/scenario.md +1 -1
package/architecture.md
CHANGED
|
@@ -101,7 +101,7 @@ flowchart BT
|
|
|
101
101
|
|-------|------------|
|
|
102
102
|
| **`@vnejs/shared`** | Реестр **`VNE`**, массив **`VNE_MODULES`**, **`regPlugin`** / **`regModule`**, типы для module augmentation |
|
|
103
103
|
| **`@vnejs/observer`** | **`Observer`** — pub/sub: `subscribe`, `emit`, `emitOne`, `emitReal`, `emitReals` |
|
|
104
|
-
| **`@vnejs/core`** | **`VneCore`**: модули из `VNE_MODULES`, lifecycle, загрузка `mods.json` /
|
|
104
|
+
| **`@vnejs/core`** | **`VneCore`**: модули из `VNE_MODULES`, lifecycle, загрузка `mods.json` / `media_info/`, `reset` |
|
|
105
105
|
| **`@vnejs/constants`** | Общие константы-заглушки (`EMPTY_OBJECT`, `EMPTY_ARRAY`) |
|
|
106
106
|
| **`@vnejs/sources-set`** | **`SourcesSet`** — управление множеством «источников» (text и связанная логика) |
|
|
107
107
|
| **`@vnejs/semaphore`** | **`Semaphore`** — очередь задач с весами и ограничением параллелизма |
|
|
@@ -397,6 +397,9 @@ games/<name>/
|
|
|
397
397
|
├── game/<mod>/ # scenario (.vne), scripts, media, public
|
|
398
398
|
├── desktop/ # Electron dev/prod
|
|
399
399
|
├── dist/ # JSON + JS после сборки
|
|
400
|
+
│ ├── mods.json
|
|
401
|
+
│ ├── label/ # label/<path>.json (например label/prologue/1.json)
|
|
402
|
+
│ └── media_info/ # media_info/<mod>.json (не путать с /media/ ассетов)
|
|
400
403
|
└── package.json
|
|
401
404
|
```
|
|
402
405
|
|
|
@@ -404,7 +407,7 @@ games/<name>/
|
|
|
404
407
|
flowchart LR
|
|
405
408
|
SC["game/**/*.vne"]
|
|
406
409
|
DATA["build data"]
|
|
407
|
-
JSON["dist
|
|
410
|
+
JSON["dist mods.json label/ media_info/"]
|
|
408
411
|
ENTRY["entry/index.ts"]
|
|
409
412
|
CLIENT["build client"]
|
|
410
413
|
DIST["dist/"]
|
|
@@ -417,7 +420,7 @@ flowchart LR
|
|
|
417
420
|
SRV --> RUN
|
|
418
421
|
```
|
|
419
422
|
|
|
420
|
-
1. **`build:data`** — JSON для **`VneCore.init()
|
|
423
|
+
1. **`build:data`** — JSON для **`VneCore.init()`**: `mods.json`, `label/<path>.json`, `media_info/<mod>.json`.
|
|
421
424
|
2. **`build:client`** — Vite + `bundles/`.
|
|
422
425
|
3. **`entry/`** — `new VneCore()`, `await init()`.
|
|
423
426
|
|
package/package.json
CHANGED
package/plugins/core/scenario.md
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
| `scenario.exec` | Dispatch `$module` / `%block`, registry handlers, `EXEC_DELAY`. |
|
|
51
51
|
| `scenario.label` | `LABEL_GET`, preload меток; init label на `STATE.CLEAR`. |
|
|
52
52
|
| `scenario.line` | `LINE_LOAD` / `LINE_GET`, registry preload handlers. |
|
|
53
|
-
| `scenario.lines` | Fetch `label
|
|
53
|
+
| `scenario.lines` | Fetch `label/<path>.json` с `HOST` (например `label/prologue/1.json`). |
|
|
54
54
|
|
|
55
55
|
## Близкие плагины
|
|
56
56
|
|