public static CharacterCreate read(BinaryReader binaryReader) { CharacterCreate newObj = new CharacterCreate(); newObj.account = PStringChar.read(binaryReader); newObj._charGenResult = ACCharGenResult.read(binaryReader); return(newObj); }
public static ACCharGenResult read(BinaryReader binaryReader) { ACCharGenResult newObj = new ACCharGenResult(); var startPosition = binaryReader.BaseStream.Position; newObj.packVersion__guessedname = binaryReader.ReadUInt32(); newObj.heritageGroup = (HeritageGroup)binaryReader.ReadUInt32(); newObj.gender = binaryReader.ReadUInt32(); newObj.eyesStrip = binaryReader.ReadInt32(); newObj.noseStrip = binaryReader.ReadInt32(); newObj.mouthStrip = binaryReader.ReadInt32(); newObj.hairColor = binaryReader.ReadInt32(); newObj.eyeColor = binaryReader.ReadInt32(); newObj.hairStyle = binaryReader.ReadInt32(); newObj.headgearStyle = binaryReader.ReadInt32(); newObj.headgearColor = binaryReader.ReadUInt32(); newObj.shirtStyle = binaryReader.ReadInt32(); newObj.shirtColor = binaryReader.ReadUInt32(); newObj.trousersStyle = binaryReader.ReadInt32(); newObj.trousersColor = binaryReader.ReadUInt32(); newObj.footwearStyle = binaryReader.ReadInt32(); newObj.footwearColor = binaryReader.ReadUInt32(); newObj.skinShade = binaryReader.ReadDouble(); newObj.hairShade = binaryReader.ReadDouble(); newObj.headgearShade = binaryReader.ReadDouble(); newObj.shirtShade = binaryReader.ReadDouble(); newObj.trousersShade = binaryReader.ReadDouble(); newObj.footwearShade = binaryReader.ReadDouble(); newObj.templateNum = binaryReader.ReadInt32(); newObj.strength = binaryReader.ReadInt32(); newObj.endurance = binaryReader.ReadInt32(); newObj.coordination = binaryReader.ReadInt32(); newObj.quickness = binaryReader.ReadInt32(); newObj.focus = binaryReader.ReadInt32(); newObj.self = binaryReader.ReadInt32(); newObj.slot = binaryReader.ReadInt32(); newObj.classID = binaryReader.ReadUInt32(); newObj.skillAdvancementClasses = PList <SKILL_ADVANCEMENT_CLASS> .read(binaryReader); newObj.name = PStringChar.read(binaryReader); newObj.startArea = binaryReader.ReadUInt32(); newObj.isAdmin = binaryReader.ReadInt32(); newObj.isEnvoy = binaryReader.ReadInt32(); newObj.validationChecksum__guessedname = binaryReader.ReadInt32(); newObj.Length = (int)(binaryReader.BaseStream.Position - startPosition); return(newObj); }
public static ACCharGenResult read(BinaryReader binaryReader) { ACCharGenResult newObj = new ACCharGenResult(); newObj.unkConstOne = binaryReader.ReadUInt32(); newObj.heritageGroup = (HeritageGroup)binaryReader.ReadUInt32(); newObj.gender = binaryReader.ReadUInt32(); newObj.eyesStrip = binaryReader.ReadUInt32(); newObj.noseStrip = binaryReader.ReadUInt32(); newObj.mouthStrip = binaryReader.ReadUInt32(); newObj.hairColor = binaryReader.ReadUInt32(); newObj.eyeColor = binaryReader.ReadUInt32(); newObj.hairStyle = binaryReader.ReadUInt32(); newObj.headgearStyle = binaryReader.ReadUInt32(); newObj.headgearColor = binaryReader.ReadUInt32(); newObj.shirtStyle = binaryReader.ReadUInt32(); newObj.shirtColor = binaryReader.ReadUInt32(); newObj.trousersStyle = binaryReader.ReadUInt32(); newObj.trousersColor = binaryReader.ReadUInt32(); newObj.footwearStyle = binaryReader.ReadUInt32(); newObj.footwearColor = binaryReader.ReadUInt32(); newObj.skinShade = binaryReader.ReadDouble(); newObj.hairShade = binaryReader.ReadDouble(); newObj.headgearShade = binaryReader.ReadDouble(); newObj.shirtShade = binaryReader.ReadDouble(); newObj.trousersShade = binaryReader.ReadDouble(); newObj.footwearShade = binaryReader.ReadDouble(); newObj.templateNum = binaryReader.ReadUInt32(); newObj.strength = binaryReader.ReadUInt32(); newObj.endurance = binaryReader.ReadUInt32(); newObj.coordination = binaryReader.ReadUInt32(); newObj.quickness = binaryReader.ReadUInt32(); newObj.focus = binaryReader.ReadUInt32(); newObj.self = binaryReader.ReadUInt32(); newObj.slot = binaryReader.ReadUInt32(); newObj.classID = binaryReader.ReadUInt32(); newObj.sacs__guessedname = PList <SKILL_ADVANCEMENT_CLASS> .read(binaryReader); newObj.name = PStringChar.read(binaryReader); newObj.startArea = binaryReader.ReadUInt32(); newObj.isAdmin = binaryReader.ReadUInt32(); newObj.isEnvoy = binaryReader.ReadUInt32(); newObj.totalSkillPts__guessedname = binaryReader.ReadUInt32(); return(newObj); }