|
|
|
@ -58,9 +58,6 @@ public class DefineList implements Savable { |
|
|
|
|
|
|
|
|
|
oc.write(keys, "keys", null); |
|
|
|
|
oc.write(vals, "vals", null); |
|
|
|
|
|
|
|
|
|
// for compatability only with older versions
|
|
|
|
|
oc.write(compiled, "compiled", null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void read(JmeImporter im) throws IOException{ |
|
|
|
@ -71,8 +68,6 @@ public class DefineList implements Savable { |
|
|
|
|
for (int i = 0; i < keys.length; i++){ |
|
|
|
|
defines.put(keys[i], vals[i]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
compiled = ic.readString("compiled", null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void clear() { |
|
|
|
@ -81,17 +76,9 @@ public class DefineList implements Savable { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String get(String key){ |
|
|
|
|
// I do not see the point of forcing a rebuild on get()
|
|
|
|
|
// so I'm commenting it out. -pspeed
|
|
|
|
|
//compiled = null;
|
|
|
|
|
return defines.get(key); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// public void set(String key, String val){
|
|
|
|
|
// compiled = null;
|
|
|
|
|
// defines.put(key, val);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
public boolean set(String key, VarType type, Object val){ |
|
|
|
|
if (val == null){ |
|
|
|
|
defines.remove(key); |
|
|
|
|