public ItemStatsData Read(DAIIO io) { xLength = io.ReadBit2(LengthBits); StatsData = new ItemAsset().Read(io); Value = io.ReadSingle(); return(this); }
public CharacterCustomizationManager Read(DAIIO io) { xLength = io.ReadBit2(LengthBits); Version = io.ReadInt32(); ClassId = io.ReadInt32(); BackgroundId = io.ReadInt32(); GenderId = io.ReadInt32(); RaceId = io.ReadInt32(); var x = io.ReadInt16(); CharacterName = io.ReadString(x); VoiceVariationID = io.ReadInt32(); DifficultyModeID = io.ReadInt32(); if (Version > 9) { LowestDifficultyModeID = io.ReadInt32(); } CharacterSubclassID = io.ReadInt32(); if (Version >= 8) { CharacterID = new byte[0x10]; io.Read(CharacterID, 0, 0x10); } if (Version >= 0xD) { AgeInRealTimeSeconds = io.ReadSingle(); } return(this); }
public CraftedItemStats Read(DAIIO io) { xLength = io.ReadBit2(LengthBits); StatData = new ItemAsset().Read(io); Script = new ItemAsset().Read(io); ArgsCount = io.ReadInt16(); DelArgs = new ItemAsset[ArgsCount]; for (int i = 0; i < ArgsCount; i++) { DelArgs[i] = new ItemAsset().Read(io); } DefaultValue = io.ReadSingle(); return(this); }