v0.7.5: replaced all uses of java reflection with LibGDX reflection

This commit is contained in:
Evan Debenham
2019-09-28 11:37:56 -04:00
parent 0724717abf
commit 48d2fc77fe
48 changed files with 440 additions and 668 deletions

View File

@@ -24,6 +24,7 @@ package com.watabou.glscripts;
import com.watabou.glwrap.Program;
import com.watabou.glwrap.Shader;
import com.watabou.noosa.Game;
import com.watabou.utils.Reflection;
import java.util.HashMap;
@@ -42,11 +43,7 @@ public class Script extends Program {
Script script = all.get( c );
if (script == null) {
try {
script = c.newInstance();
} catch (Exception e) {
Game.reportException(e);
}
script = Reflection.newInstance( c );
all.put( c, script );
}