com.daxie.xops.xgs.XGSParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xopsmanipulator Show documentation
Show all versions of xopsmanipulator Show documentation
XOPSManipulator is a Java library that offers several functions to manipulate matters relating to X operations.
The newest version!
package com.daxie.xops.xgs;
import java.io.FileNotFoundException;
import java.util.List;
import com.daxie.basis.vector.Vector;
import com.daxie.log.LogFile;
import com.daxie.tool.ByteFunctions;
import com.daxie.tool.FileFunctions;
import com.daxie.xops.XOPSConstants;
import com.daxie.xops.weapon.WeaponBinSpecifierAndEnumConverter;
import com.daxie.xops.weapon.WeaponData;
import com.daxie.xops.weapon.WeaponModelFilenamesStock;
import com.daxie.xops.weapon.WeaponModelType;
import com.daxie.xops.weapon.WeaponScopeMode;
import com.daxie.xops.weapon.WeaponShootingStance;
import com.daxie.xops.weapon.WeaponTextureFilenamesStock;
import com.daxie.xops.weapon.WeaponTextureType;
/**
* Reads data from a XGS file.
* @author Daba
*
*/
class XGSParser {
private WeaponData[] weapon_data_array=null;
public XGSParser(String xgs_filename) throws FileNotFoundException{
List bin=FileFunctions.GetFileAllBin(xgs_filename);
if(bin.size()!=1732) {
LogFile.WriteWarn("[XGSParser-] Invalid file size. filename:"+xgs_filename,true);
return;
}
byte[] b=new byte[2];
int itemp;
Vector vtemp;
int count=0x0000000E;
for(int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy