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 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 Challenge03043017(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { checkPointCount = new GBXUInt(s); AddChildDeprecated(checkPointCountKey, checkPointCount); checkPointArray = new Array <GBXNat3>(checkPointCount.Value, () => new GBXNat3(s)); AddChildDeprecated(checkPointArrayKey, checkPointArray); }
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 Challenge03043018(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { unknown = new GBXBool(s); AddChildDeprecated(unknownKey, unknown); numLaps = new GBXUInt(s); AddChildDeprecated(numLapsKey, numLaps); }
public ChallengeParameters0305B008(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { timeLimit = new GBXUInt(s); AddChildDeprecated(timeLimitKey, timeLimit); authorScore = new GBXUInt(s); AddChildDeprecated(authorScoreKey, authorScore); }
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(); }
//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); }
//TODO improve names public ChallengeParameters0305B005(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { ignored1 = new GBXUInt(s); AddChildDeprecated("Ignored 1", ignored1); ignored2 = new GBXUInt(s); AddChildDeprecated("Ignored 2", ignored2); ignored3 = new GBXUInt(s); AddChildDeprecated("Ignored 3", ignored3); }
public Challenge03043011(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { collectorList = list.ReadGBXNodeRef(s, context); AddChildDeprecated(collectorListKey, collectorList); challengeParameters = list.ReadGBXNodeRef(s, context); AddChildDeprecated(challengeParametersKey, challengeParameters); kind = new GBXUInt(s); AddChildDeprecated(kindKey, kind); }
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 ChallengeParameters0305B004(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { bronzeTime = new GBXUInt(s); AddChildDeprecated(bronzeTimeKey, bronzeTime); silverTime = new GBXUInt(s); AddChildDeprecated(silverTimeKey, silverTime); goldTime = new GBXUInt(s); AddChildDeprecated(goldTimeKey, goldTime); authorTime = new GBXUInt(s); AddChildDeprecated(authorTimeKey, authorTime); ignored = new GBXUInt(s); AddChildDeprecated(ignoredKey, ignored); }
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); }
public ChallengeParameters0305B00A(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { unknown = new GBXUInt(s); AddChildDeprecated(unknownKey, unknown); bronzeTime = new GBXUInt(s); AddChildDeprecated(bronzeTimeKey, bronzeTime); silverTime = new GBXUInt(s); AddChildDeprecated(silverTimeKey, silverTime); goldTime = new GBXUInt(s); AddChildDeprecated(goldTimeKey, goldTime); authorTime = new GBXUInt(s); AddChildDeprecated(authorTimeKey, authorTime); timeLimit = new GBXUInt(s); AddChildDeprecated(timeLimitKey, timeLimit); authorScore = new GBXUInt(s); AddChildDeprecated(authorScoreKey, authorScore); }
public RefTable(Stream fs) { var numExternalNodes = new GBXUInt(fs); AddChildDeprecated(numExternalNodesKey, numExternalNodes); if (numExternalNodes.Value == 0) { return; } //numExternalNodes >= 1 var ancestorLevel = new GBXUInt(fs); AddChildDeprecated(ancestorLevelKey, ancestorLevel); var numSubFolders = new GBXUInt(fs); AddChildDeprecated(numSubFoldersKey, numSubFolders); var subFolders = new Array <Folder>(numSubFolders.Value, () => new Folder(fs)); AddChildDeprecated(subFoldersKey, subFolders); }
public ChallengeParameters0305B006(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { count = new GBXUInt(s); Trace.Assert(count.Value == 0, "Unsupported count"); AddChildDeprecated(countKey, count); }
public Challenge0304301C(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { playMode = new GBXUInt(s); AddChildDeprecated(playModeKey, playMode); }
public ChallengeVersion(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { version = new GBXUInt(s); AddChildDeprecated(versionKey, version); }
public CollectorList0301B000(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { archiveCount = new GBXUInt(s); Trace.Assert(archiveCount.Value == 0, "Unsupported Archive count"); AddChildDeprecated(archiveCountKey, archiveCount); }
public ChallengeParameters0305B00D(Stream s, GBXLBSContext context, GBXNodeRefList list) : base(context, list) { unknown = new GBXUInt(s); AddChildDeprecated(unknownKey, unknown); }