Expand description

All script host related stuff

Structs§

  • Stores many API providers
  • A struct defining an instance of a script asset. Multiple instances of the same script can exist on the same entity
  • The component storing many scripts. Scripts receive information about the entity they are attached to Scripts have unique identifiers and hence multiple copies of the same script can be attached to the same entity
  • A resource storing the script contexts for each script instance. The reason we need this is to split the world borrow in our handle event systems, but this has the added benefit that users don’t see the contexts at all, and we can provide generic handling for each new/removed script in one place.
  • Data used to describe a script instance.

Enums§

  • Describes the target set of scripts this event should be handled by

Traits§

  • Implementors can modify a script context in order to enable API access. ScriptHosts call attach_api when creating scripts
  • A script host is the interface between your rust application and the scripts in some interpreted language.