bevy_mod_js_scripting icon indicating copy to clipboard operation
bevy_mod_js_scripting copied to clipboard

Missing ValueRef Features

Open zicklag opened this issue 3 years ago • 2 comments

Here are some things we need to figure out how to expose to JavaScript on JsValueRefs. Creating a list so I don't forget.

  • [ ] Indexing into maps
  • [ ] Insert/Remove items from lists
  • [x] Equality Checks: #23
    • [ ] Update types, currently TypeScript doesn't know about the .eq() method.
  • [ ] Cloning
  • [ ] Hashing ( Not sure if it's that useful, but since it's in the reflect trait we might as well support it. )
  • [ ] Option/null handling. For instance, it's hard/impossible to check if an Option<Entity> is None.

zicklag avatar Sep 22 '22 20:09 zicklag

  • [x] creating new values
  • [ ] dealing with enums

jakobhellermann avatar Sep 24 '22 09:09 jakobhellermann

I'm ticking off "creating new values" because Value.create(Type) now exists.

jakobhellermann avatar Nov 16 '22 20:11 jakobhellermann