com.daxie.xops.xcs.XCSParser 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.xcs;
import java.io.FileNotFoundException;
import java.util.List;
import com.daxie.log.LogFile;
import com.daxie.tool.ByteFunctions;
import com.daxie.tool.FileFunctions;
import com.daxie.xops.XOPSConstants;
import com.daxie.xops.character.CharacterAILevel;
import com.daxie.xops.character.CharacterBinSpecifierAndEnumConverter;
import com.daxie.xops.character.CharacterData;
import com.daxie.xops.character.CharacterModelType;
import com.daxie.xops.character.CharacterTextureType;
import com.daxie.xops.character.CharacterType;
/**
* Reads data from a XCS file.
* @author Daba
*
*/
class XCSParser {
private CharacterData[] character_data_array=null;
public XCSParser(String xcs_filename) throws FileNotFoundException{
List bin=FileFunctions.GetFileAllBin(xcs_filename);
if(bin.size()!=614) {
LogFile.WriteWarn("[XCSParser-] Invalid file size. filename:"+xcs_filename,true);
return;
}
byte[] b=new byte[2];
int itemp;
int count=0x0000000C;
for(int i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy