All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daxie.xops.exe.XOPSExeCharacterDataWriter Maven / Gradle / Ivy

package com.daxie.xops.exe;

import java.util.List;

import com.daxie.log.LogFile;
import com.daxie.tool.ByteFunctions;
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;

/**
 * Writes data to an EXE file.
 * @author Daba
 *
 */
class XOPSExeCharacterDataWriter {
	private CharacterData[] character_data_array;
	
	public XOPSExeCharacterDataWriter(CharacterData[] character_data_array) {
		this.character_data_array=character_data_array;
	}
	
	public void Write(List bin,int character_data_start_pos) {
		if(character_data_array==null) {
			LogFile.WriteWarn("[XOPSExeCharacterDataWriter-Write] Data is null.",true);
			return;
		}
		if(character_data_array.length!=XOPSConstants.CHARACTER_NUM) {
			LogFile.WriteWarn("[XOPSExeCharacterDataWriter-Write] Invalid number of data. data_num:"+character_data_array.length,true);
			return;
		}
		
		int pos=character_data_start_pos;
		
		for(int i=0;i




© 2015 - 2025 Weber Informatics LLC | Privacy Policy