com.daxie.xops.openxops.WeaponDataCodeOutputter Maven / Gradle / Ivy
package com.daxie.xops.openxops;
import java.util.List;
import com.daxie.basis.vector.Vector;
import com.daxie.log.LogFile;
import com.daxie.tool.StringFunctions;
import com.daxie.xops.weapon.WeaponData;
/**
* Writes out weapon data formatted for the source code of OpenXOPS.
* @author Daba
*
*/
public class WeaponDataCodeOutputter {
private List weapon_data_list;
public WeaponDataCodeOutputter(List weapon_data_list) {
this.weapon_data_list=weapon_data_list;
}
public String GetWeaponDataSourceCode() {
String ret="";
if(weapon_data_list==null) {
LogFile.WriteWarn("[OutputWeaponDataSourceCode-GetWeaponDataSourceCode] Data is null.",true);
return ret;
}
final String array_name="Weapon";
final String separator=System.getProperty("line.separator");
for(int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy