belly icon indicating copy to clipboard operation
belly copied to clipboard

[scripting] Scripting introruction

Open jkb0o opened this issue 2 years ago • 0 comments

This is scripting work in progress.

  • see asset-scripting example:
 cargo run --example asset-connections
  • EmlAsset now holds handle into EmlRoot
  • EmlRoot consist of root node and script: Option<ScriptingDeclaration>
  • EmlAsset::write(world) now parses rhai script if ScriptingDeclaration provided and put ast tree into Scripts resource (HashMap<Handle, Ast>). This way any EmlAsset could have associated script via Handle<EmlAsset>

jkb0o avatar Jan 14 '23 13:01 jkb0o