Jump to content




Method return

api java

4 replies to this topic

#1 viniciuslrangel

  • Members
  • 8 posts

Posted 19 January 2016 - 04:10 PM

I'm writing a peripheral and callMethod function I can return a lua table using Map, but, how can I put metatable in this?

#2 SquidDev

    Frickin' laser beams | Resident Necromancer

  • Members
  • 1,427 posts
  • LocationDoes anyone put something serious here?

Posted 19 January 2016 - 08:52 PM

CC doesn't provide a way to attach a metatable. You are limited to either a basic lookup table (a map) or a series of functions (ILuaObject)

#3 viniciuslrangel

  • Members
  • 8 posts

Posted 20 January 2016 - 01:15 AM

View PostSquidDev, on 19 January 2016 - 08:52 PM, said:

CC doesn't provide a way to attach a metatable. You are limited to either a basic lookup table (a map) or a series of functions (ILuaObject)
Oh... Okay... I will use lua program as interface, thanks.

#4 Keridos

  • Members
  • 75 posts

Posted 06 February 2016 - 09:23 AM

How can I return a map to give a lua table?

#5 Konlab

  • Members
  • 595 posts
  • LocationKerbin

Posted 10 April 2016 - 10:08 AM

View PostKeridos, on 06 February 2016 - 09:23 AM, said:

How can I return a map to give a lua table?
return new Object[] { map };





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users