Crate bevy_mod_scripting_core

Source
Expand description

Core functionality for the bevy_mod_scripting framework.

Contains language agnostic systems and types for handling scripting in bevy.

Modules§

asset
Systems and resources for handling script assets and events
bindings
Abstractions to help with creating bindings between bevy and scripting languages.
commands
Commands for creating, updating and deleting scripts
context
Traits and types for managing script contexts.
docgen
Documentation generation for scripting languages.
error
Errors that can occur when interacting with the scripting system
event
Event handlers and event types for scripting.
handler
Contains the logic for handling script callback events
reflection_extensions
Various utility functions for working with reflection types.
runtime
“Runtime” here refers to the execution evironment of scripts. This might be the VM executing bytecode or the interpreter executing source code. The important thing is that there is only one runtime which is used to execute all scripts of a particular type or context.
script
Script related types, functions and components

Macros§

callback_labels
Creates a set of callback labels
downcast_into_value
Downcasts a reference into a value of a given type or returns an error if the downcast fails.
match_by_type
a utility for matching types by their std::any::TypeId
no_type_dependencies
A macro for implementing GetTypeDependencies for types with no type dependencies.
self_type_dependency_only
A macro for implementing GetTypeDependencies for types that only depend on themselves.
with_access_read
A macro for claiming access to a value for reading
with_access_write
A macro for claiming access to a value for writing
with_global_access
A macro for claiming global access

Structs§

ScriptingPlugin
Bevy plugin enabling scripting within the bevy mod scripting framework

Enums§

ScriptingSystemSet
Labels for various BMS systems

Traits§

AddRuntimeInitializer
Trait for adding a runtime initializer to an app
ConfigureScriptAssetSettings
Trait for adding a supported extension to the script asset settings.
ConfigureScriptPlugin
Utility trait for configuring all scripting plugins.
IntoScriptPluginParams
Types which act like scripting plugins, by selecting a context and runtime Each individual combination of context and runtime has specific infrastructure built for it and does not interact with other scripting plugins
ManageStaticScripts
Trait for adding static scripts to an app