@colyseus/schema 5.0.21 → 5.0.23

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.
@@ -0,0 +1,23 @@
1
+ import { File, Context } from "../types.js";
2
+ import { GenerateOptions } from "../api.js";
3
+ export declare const name = "Swift";
4
+ /**
5
+ * Swift Code Generator
6
+ *
7
+ * Emits typed façades over the `Colyseus` package's runtime: one `SchemaRef`
8
+ * subclass per schema, whose properties read through the shared handle on the
9
+ * instance the core decoded. Nothing is copied and nothing is stored, so a
10
+ * generated class stays correct as patches arrive.
11
+ *
12
+ * Collection properties return `MapSchema<T>` / `ArraySchema<T>`, which carry
13
+ * the field they came from — that is what `callbacks.onAdd(state.players, …)`
14
+ * registers against.
15
+ */
16
+ /**
17
+ * Generate individual files for each class/interface/enum
18
+ */
19
+ export declare function generate(context: Context, options: GenerateOptions): File[];
20
+ /**
21
+ * Generate a single bundled file containing all classes, interfaces, and enums
22
+ */
23
+ export declare function renderBundle(context: Context, options: GenerateOptions): File;