-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
This is currently a limitation imposed by CSharp.lua. It supports individual files, but it wants full control of the file loading process if it does, which obviously doesn't work on all platforms. It does this so that it can ensure that all classes are ready so that it can appropriately set up inheritance, etc. For the alpha, we get around this by providing the implementation inside of out.lua and providing stubs, but this has the obvious downside of making it hard to see the actual transpiled code for debugging purposes.
If the file loader can be rewritten, it might be possible to move the actual code to the .script files. To do that, further work needs to be done to evaluate:
- How Defold loads files (are they ALL loaded immediately, or are they defer loaded only when asked for?)
- How to delay out.lua's "compilation"
- How out.lua is trying to load files