public ChallengeThumbnail(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { version = new GBXUInt(s); AddChildDeprecated(versionKey, version); if (version.Value == 0) { return; } //version > 0 thumbSize = new GBXUInt(s); AddChildDeprecated(thumbSizeKey, thumbSize); thumbBegin = new GBXFixedLengthString(s, 15); AddChildDeprecated(thumbBeginKey, thumbBegin); thumb = new Unread(s, (int)thumbSize.Value); AddChildDeprecated(thumbKey, thumb); thumbEnd = new GBXFixedLengthString(s, 16); AddChildDeprecated(thumbEndKey, thumbEnd); commentBegin = new GBXFixedLengthString(s, 10); AddChildDeprecated(commentBeginKey, commentBegin); comment = new GBXString(s); AddChildDeprecated(commentKey, comment); commentEnd = new GBXFixedLengthString(s, 11); AddChildDeprecated(commentEndKey, commentEnd); }
public Challenge03043051(Stream s, GBXLBSContext c) : base(c, null) { AlwaysZero = new GBXUInt(s); TitlePack = new GBXLBS(c); Version = new GBXString(s); this.LBSContext.SkipVersion(); }
public Challenge03043014(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { unknown = new GBXUInt(s); AddChildDeprecated(unknownKey, unknown); passwordXorOld = new GBXString(s); AddChildDeprecated(passwordXorOldKey, passwordXorOld); }
public Challenge03043051(bool dummy) : base(null, null) { this.ChunkID = 0x03043051; AlwaysZero = new GBXUInt(0); TitlePack = new GBXLBS(""); TitlePack.Parent = this; Version = new GBXString("date=2019-07-03_10_37 Svn=93842 GameVersion=3.3.0"); //Good Default this.LBSContext.SkipVersion(); }
public BlockSkin03059002(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { unknown = new GBXString(s); AddChildDeprecated(unknownKey, unknown); packDesc = new GBXFileRef(s); AddChildDeprecated(packDescKey, packDesc); parentPackDesc = new GBXFileRef(s); AddChildDeprecated(parentPackDescKey, parentPackDesc); }
//TODO better names public ChallengeParameters0305B00E(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { unknown1 = new GBXString(s); AddChildDeprecated("Unknown 1", unknown1); unknown2 = new GBXUInt(s); AddChildDeprecated("Unknown 2", unknown2); unknown3 = new GBXUInt(s); AddChildDeprecated("Unknown 3", unknown3); }
public ChallengeParameters0305B001(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { string1 = new GBXString(s); AddChildDeprecated("String 1", string1); string2 = new GBXString(s); AddChildDeprecated("String 2", string2); string3 = new GBXString(s); AddChildDeprecated("String 3", string3); string4 = new GBXString(s); AddChildDeprecated("String 4", string4); }
public Folder(Stream fs) { var name = new GBXString(fs); AddChildDeprecated(nameKey, name); var numSubFolders = new GBXUInt(fs); AddChildDeprecated(numSubFoldersKey, numSubFolders); var subFolders = new Array <Folder>(numSubFolders.Value, () => new Folder(fs)); AddChildDeprecated(subFoldersKey, subFolders); }
public GBXLBS ReadLookBackString(Stream s) { if (!_versionHasBeenRead) { var version = s.ReadUInt(); Trace.Assert(version == LBSVersion, "Unsupported Version of the LookBackString: " + version.ToString("X")); _versionHasBeenRead = true; } var index = new GBXUInt(s); uint id = index.Value; var lbs = new GBXLBS(this); if (id == GBXLBS.unassigned) { return(lbs); } switch (id >> 30) { case 0b00: lbs.CollectionID = id; return(lbs); case 0b01: //no difference found goto case 0b10; case 0b10: if ((id & 0x3FFF) == 0) { var newString = new GBXString(s); _storedStringsRead.Add(newString); lbs._content = newString; } else { lbs._content = _storedStringsRead[(int)(id & 0x3FFF) - 1]; } return(lbs); case 0b11: throw new Exception("Could not read LookBackString. Unknown Flags." + id); default: throw new Exception("Universe is broken, have you tried turning it off and on again?"); } }
public ChallengeAuthor(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { version = new GBXUInt(s); AddChildDeprecated(versionKey, version); authorVersion = new GBXUInt(s); AddChildDeprecated(authorVersionKey, authorVersion); authorLogin = new GBXString(s); AddChildDeprecated(authorLoginKey, authorLogin); authorNick = new GBXString(s); AddChildDeprecated(authorNickKey, authorNick); authorZone = new GBXString(s); AddChildDeprecated(authorZoneKey, authorZone); authorExtraInfo = new GBXString(s); AddChildDeprecated(authorExtraInfoKey, authorExtraInfo); }