Skip to content

Move component scripts from out.lua to individual .script files #2

Description

@RealityStop

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions