Skip to main content

Crate pite_script

Crate pite_script 

Source
Expand description

pite-script: ScriptBackend trait. PyO3 is the only impl; future backends (or a mock for tests) plug in without touching runtime.

Re-exports§

pub use descriptor::child;
pub use descriptor::node;
pub use descriptor::PyChildDescriptor;
pub use descriptor::PyNodeDescriptor;
pub use physics_bridge::current_physics;
pub use physics_bridge::set_current_physics;
pub use physics_bridge::with_physics;
pub use vec2::Vec2;
pub use pyo3;

Modules§

descriptor
physics_bridge
vec2

Structs§

NodeProxy
NoopBackend
PyInputQuery
Pyo3Backend
ScriptError
ScriptHost

Enums§

InputQueryKind

Constants§

RESERVED_METHODS

Traits§

ScriptBackend

Functions§

fire_area_entered
fire_area_exited
fire_body_entered
fire_body_exited
fire_pressed
fire_timeout
input_begin_frame
input_clear
Drop all key state (held + edges). The editor calls this on play/stop transitions so a key held across the transition never sticks.
input_held
input_mouse
input_pressed
input_released
input_set_key
input_set_mouse
is_reserved
is_stdlib_module
True when name is a top-level stdlib module of the running interpreter (sys.stdlib_module_names). Asked live so the answer tracks the pinned CPython instead of a hand list; pite check uses it to tell stdlib (ships in the export zip) from third-party (dropped) imports.
project_dir
proxy_for
resolve_caller
resolve_caller_py
set_current_host
set_project_dir