Skip to content

How to use this library? I don't quite understand, do you have detailed textual information. #33

Closed Answered by TitanNano
txj-mssl asked this question in Q&A
Discussion options

You must be logged in to vote

The library is still very much work in progress, so the README is already outdated again. You have to

  1. setup the "script runtime" like this: https://github.com/TitanNano/SimChopper/blob/0e6d5cea65a1bfea6c2a41f7ec7299f79b8402b1/native/src/lib.rs
  2. define a script root module. All modules under the script root module are expected to be script files. https://github.com/TitanNano/SimChopper/blob/0e6d5cea65a1bfea6c2a41f7ec7299f79b8402b1/native/src/scripts/mod.rs
  3. define a script (module). The library expects a one-to-one mapping between the file name and the struct defined inside it. I.e. dust_particles.rs -> DustParticles. https://github.com/TitanNano/SimChopper/blob/0e6d5cea65a1bfea6c2a41f7ec72…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@TitanNano
Comment options

Answer selected by TitanNano
@TitanNano
Comment options

Comment options

You must be logged in to vote
2 replies
@TitanNano
Comment options

@txj-mssl
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants