Browse Source

Effects.cfg parser

feature-config-parsing
FatBoy-DOTC 5 months ago
parent
commit
0526fdef2f
  1. 3
      src/engine/ConfigParsing/EffectsParser.java

3
src/engine/ConfigParsing/EffectsParser.java

@ -17,10 +17,12 @@ import java.io.File;
import java.io.FileReader; import java.io.FileReader;
import java.io.IOException; import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.HashMap;
import java.util.List; import java.util.List;
public class EffectsParser { public class EffectsParser {
public static String EffectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg"; public static String EffectsPath = ConfigManager.DEFAULT_DATA_DIR + "wpak/Effects.cfg";
public static HashMap<String,EffectData> effect_data = new HashMap<>();
public static void init() throws IOException { public static void init() throws IOException {
ArrayList<ArrayList<String>> compiledData = new ArrayList<>(); ArrayList<ArrayList<String>> compiledData = new ArrayList<>();
String[] lines = readLines(EffectsPath); String[] lines = readLines(EffectsPath);
@ -130,6 +132,7 @@ public class EffectsParser {
} }
index++; index++;
} }
effect_data.put(data.id,data);
} }
} }
public static void GenerateModValues(Mod inMod, String[] data) public static void GenerateModValues(Mod inMod, String[] data)

Loading…
Cancel
Save