Examples of RubyObject


Examples of org.jruby.RubyObject

      if (!found) {
        break;
      }
    }

    RubyObject r = (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(
        "r = RPG::Event.new(" + x + "," + y + "); r.id=" + id + ";" + "return r;");

    // create new class
    events.put(key, r);
View Full Code Here

Examples of org.jruby.RubyObject

    // load rgss
    // RBRunTime.loadRGSS1();

    // load map
    final RubyObject o = RGSS1Helper.get(p, Type.MAP).get(id).getObject();

    // build map
    final Map m = new Map(RubyHelper.toInt(o, "@width"), RubyHelper.toInt(o, "@height"));
    m.setFilename(RGSS1Load.getMapFile(project, id));
    m.setProject(project);
    m.setMid(id);

    TileSet autotiles = buildAutoTileset(RubyHelper.toInt(o, "@tileset_id"));
    m.addTileset(autotiles);

    TileSet tileset = buildTileset(RubyHelper.toInt(o, "@tileset_id"));
    m.addTileset(tileset);
    m.setTileHeight(32);
    m.setTileWidth(32);
    // tileset.

    // def [](x,y=0,z=0)
    // @data[x+y*@xsize+z*@xsize*@ysize]

    // build layers
    // load map data
    IRubyObject[] data = ((RubyArray) ((RubyObject) o.getInstanceVariable("@data")).getInstanceVariable("@data")).toJavaArray();
    final String[] names = { "Down", "Middle", "Up" };
    int z = 0;

    for (final String a : names) {
      final TileLayer l = (TileLayer) m.addLayer();
View Full Code Here

Examples of org.jruby.truffle.runtime.core.RubyObject

      return false;
    }
  }

  public Object try_receive() {
    RubyObject result = queue.poll();
    if (result == null)
      return getContext().getCoreLibrary().getNilObject();
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.