gdmp
Это содержимое пока не доступно на вашем языке.
Runs on: root.
| Call | What it does |
|---|---|
gdmp.version |
"122": the API level ("77" = 1.0 as frozen) |
gdmp.log(...values) |
one line in the log ([JS] <package>:<script>: ...); values are joined with spaces |
TypeScript
Section titled “TypeScript”The declarations from the GDMP types (namespace GDMP), comments included:
/** The root every host has. */interface Root { /** The API level as a string (`"122"`). Compare it as a number: `Number(gdmp.version) >= 92`. */ readonly version: string; /** One line in the log; values are joined with spaces. */ log(...values: unknown[]): void; readonly time: Time;}
/** Any JSON value (what a script SENDS over the network, into the shared state and the data stores). */type Json = string | number | boolean | null | Json[] | { [key: string]: Json } | { readonly [key: string]: Json };
/** `"#RRGGBB"` or a number `0xRRGGBB`. */type Color = string | number;
/** A point in GD level units: 30 = one block; the ground row is `y = 105`. */interface Vec2 { readonly x: number; readonly y: number }