Skip to content

Commit

Permalink
expose RPG class to js
Browse files Browse the repository at this point in the history
  • Loading branch information
NeumimTo committed Jun 25, 2019
1 parent c218cc6 commit a720031
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ private void setup() {
try (InputStreamReader rs = new InputStreamReader(new FileInputStream(path.toFile()))) {
Bindings bindings = new SimpleBindings();
bindings.put("Injector", injector);
bindings.put("Rpg", Rpg.get());
bindings.put("Bindings", new BindingsHelper(engine));
for (Map.Entry<Class<?>, JsBinding.Type> objectTypeEntry : dataToBind.entrySet()) {
if (objectTypeEntry.getValue() == JsBinding.Type.CONTAINER) {
Expand Down

0 comments on commit a720031

Please sign in to comment.