Skip to content

host ​

INFO

Анықтаманың өзі ағылшын тілінде: ол WIT файлдарынан автоматты түрде жасалады.

Facts about the running host and the calling mod.

Package blockheads:api@0.3.1 · Lua table bh.host · WIT source

Uses: types.{side}

Functions ​

api-version function ​

txt
api-version: func() -> string;

The blockheads:api version the host implements, as semver text (for example 0.1.0).

mod-id function ​

txt
mod-id: func() -> string;

The id of the calling mod (see types.mod-id).

mod-version function ​

txt
mod-version: func() -> string;

The version of the calling mod, from its mod.toml.

current-side function ​

txt
current-side: func() -> side;

Which side this code runs on.

host-name function ​

txt
host-name: func() -> string;

A short host name and version, for logs only (for example blockheads-server 0.2.0).

Ресми емес қауымдастық жобасы. Majic Jungle Software немесе Noodlecake компанияларымен байланысы жоқ. Ойын файлдары қамтылмаған.