Jump to content

meia-lua

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by meia-lua

  1. Well yes but what happens if the same file is imported from multiple points in your application,

    For example if I have 3 scripts 'util.lua', 'math.lua' and 'main.lua'. In main.lua I import both 'ulti.lua' and 'math.lua' and in 'math.lua' I import 'util.lua'. I would have thought this sort of thing would be documented. 

     

  2. Hello,

    After calling some of the LeadWerks functions in Lua it dawned upon me that I have no idea how they have been implemented (not that it makes any difference to use them), I would just like to understand how they have been implemented. 

    I thought the classes would just be Lua tables and then methods are elements within the table but the length of any class is zero. It also appears that the Script class has been implemented differently and doesn't exist as a Lua object. 

    I have seen function calls like this:

    Quote

    self.entity:Turn(0,0,1)

    Wouldn't self be redundant if Lua represented all classes such as entity as tables.

×
×
  • Create New...