示例#1
0
 public static String getManipulatedMapScript(File scriptFile)
     throws IOException, MapFormatException {
   FileInputStream r = new FileInputStream(scriptFile);
   byte[] bytes = new byte[(int) scriptFile.length()];
   r.read(bytes);
   r.close();
   String mapScript = ScriptInjector.inject(new String(bytes));
   return mapScript;
 }
示例#2
0
 public static String getManipulatedMapScript(MoPaQ m) throws MapFormatException {
   String mapScript = ScriptInjector.inject(new String(m.returnFileByName("MapScript.galaxy")));
   return mapScript;
 }