Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ListDefs and list items #11

Open
IFcoltransG opened this issue Sep 14, 2023 · 3 comments
Open

ListDefs and list items #11

IFcoltransG opened this issue Sep 14, 2023 · 3 comments
Labels
question Further information is requested

Comments

@IFcoltransG
Copy link
Collaborator

IFcoltransG commented Sep 14, 2023

The Ink runtime JSON reference document hasn't been updated with info about lists. I saw that upstream rink-runtime was expecting a listDefs field at the top level of a RuntimeGraph json, and I presume there's also commands for changing list values at runtime.

@IFcoltransG
Copy link
Collaborator Author

IFcoltransG commented Sep 14, 2023

I see in inkle/ink#749 that there's some kind of reference document that one contributor plans to replace the JSON reference document with. It hasn't progressed in a while though.

@LeCalicot
Copy link
Collaborator

I was just trying to check a bit. Just writing down what I understood:

  • From what I see, the listDefs is indeed created even if no list is defined, no matter what the content of the Ink file
  • List are more like Enums that actual list
  • It seems to have a lot of features and it seems to be rather new
  • LIST seem to be a variable at runtime

@IFcoltransG
Copy link
Collaborator Author

About the Enums point, I think of them more like bit-flag sets (or hash sets), because multiple of them can be combined into one variable.

@IFcoltransG IFcoltransG added the question Further information is requested label Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants