Standard Library (std::)
Overview
The standard library is a small set of built-in libraries, namespaced understd::, that ship with the BattleScript compiler. They are available in every script automatically — no import is required — and are called using their namespace.
// No import needed
std::console.log("Hello from BattleScript!");Available libraries:
Notes
- These are distinct from the BattleCore Device API (
battlecore::), which is provided by the device firmware. - Several functions are implemented by the device runtime, so behaviour may evolve with firmware updates even though the function signatures are stable.