Advertisement
Guest User

Untitled

a guest
Dec 6th, 2017
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. // Imports and package declaration omitted
  2.  
  3. public class Experimental {
  4.    
  5.     public static void main(String[] args) {
  6.         testLuaJava();
  7.     }
  8.    
  9.     static void testLuaJava() {
  10.         Globals g = JsePlatform.standardGlobals();
  11.         Bobject b = (Bobject) CoerceLuaToJava.coerce(g.loadfile("test_lua.lua").call(), Bobject.class);
  12.        
  13.         b.doOne();
  14.         b.doTwo(15, "A String");
  15.         b.doArray(new Object[] {"Array string", 1, 39.0f});
  16.                
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement