Skip to content

More high level documentation #16

@coderedart

Description

@coderedart

I want to expose sort of a plugin system for my bevy app.
and i don't want different plugins to be using the same lua vm for four reasons:

  1. mix up of different variable names and their data (atleast in global scope) leading to different weird (or even malicious) errors.
  2. security. one plugin might require some kind of api key and this should not be accessed by other plugins.
  3. one plugin might accidentally mess up the whole global table and cause others to go down with it.
  4. run different plugins in different lua instances concurrently when they are not interacting with any global bevy data.

so, when i create a LuaScriptCollection, i want it to have its own lua vm.

is this possible right now?

also, I am wondering there could be a small Architecture.md explaining at a high level how this works. I am not familiar with what the terms ScriptHost or ScriptCollection really mean in the abstract concept sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions