Limit-Theory-Redux / ltheory

Limit Theory Redux is a fork of the discontinued open-world space simulation game Limit Theory. We have made it our mission to continue the development of the ambitious Limit Theory project as an open source initiative.
Apache License 2.0
62 stars 8 forks source link

Add support for container data type transferring #243

Open HaronK opened 6 months ago

HaronK commented 6 months ago

Add support containers transferring between Lua and Rust. Idea:

  1. For the copyable types (in Lua context, i.e. integers; Vec3 won't work) generate wrappers with element indexing ([i]).
  2. For the cloneable types generate wrappers with get_copy/set methods.

Update proc macro to automatically generate vector wrappers for custom types and separate macro for copyable ones (integers, floats, etc.)