internal EditorCommentBlockBase(BinaryReader binaryReader) { this.position = binaryReader.ReadVector3(); this.type = (Type)binaryReader.ReadInt32(); this.name = binaryReader.ReadString32(); this.comment = binaryReader.ReadString256(); }
internal GlobalUiMultiplayerLevelBlockBase(BinaryReader binaryReader) { this.mapID = binaryReader.ReadInt32(); this.bitmap = binaryReader.ReadTagReference(); this.invalidName_ = binaryReader.ReadBytes(576); this.invalidName_0 = binaryReader.ReadBytes(2304); this.path = binaryReader.ReadString256(); this.sortOrder = binaryReader.ReadInt32(); this.flags = (Flags)binaryReader.ReadByte(); this.invalidName_1 = binaryReader.ReadBytes(3); this.maxTeamsNone = binaryReader.ReadByte(); this.maxTeamsCTF = binaryReader.ReadByte(); this.maxTeamsSlayer = binaryReader.ReadByte(); this.maxTeamsOddball = binaryReader.ReadByte(); this.maxTeamsKOTH = binaryReader.ReadByte(); this.maxTeamsRace = binaryReader.ReadByte(); this.maxTeamsHeadhunter = binaryReader.ReadByte(); this.maxTeamsJuggernaut = binaryReader.ReadByte(); this.maxTeamsTerritories = binaryReader.ReadByte(); this.maxTeamsAssault = binaryReader.ReadByte(); this.maxTeamsStub10 = binaryReader.ReadByte(); this.maxTeamsStub11 = binaryReader.ReadByte(); this.maxTeamsStub12 = binaryReader.ReadByte(); this.maxTeamsStub13 = binaryReader.ReadByte(); this.maxTeamsStub14 = binaryReader.ReadByte(); this.maxTeamsStub15 = binaryReader.ReadByte(); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.MapID = binaryReader.ReadInt32(); this.Bitmap = binaryReader.ReadTagReference(); this.fieldskip = binaryReader.ReadBytes(576); this.fieldskip0 = binaryReader.ReadBytes(2304); this.Path = binaryReader.ReadString256(); this.SortOrder = binaryReader.ReadInt32(); this.GlobalUiMultiplayerLevelFlags = ((Flags)(binaryReader.ReadByte())); this.fieldpad = binaryReader.ReadBytes(3); this.MaxTeamsNone = binaryReader.ReadByte(); this.MaxTeamsCTF = binaryReader.ReadByte(); this.MaxTeamsSlayer = binaryReader.ReadByte(); this.MaxTeamsOddball = binaryReader.ReadByte(); this.MaxTeamsKOTH = binaryReader.ReadByte(); this.MaxTeamsRace = binaryReader.ReadByte(); this.MaxTeamsHeadhunter = binaryReader.ReadByte(); this.MaxTeamsJuggernaut = binaryReader.ReadByte(); this.MaxTeamsTerritories = binaryReader.ReadByte(); this.MaxTeamsAssault = binaryReader.ReadByte(); this.MaxTeamsStub10 = binaryReader.ReadByte(); this.MaxTeamsStub11 = binaryReader.ReadByte(); this.MaxTeamsStub12 = binaryReader.ReadByte(); this.MaxTeamsStub13 = binaryReader.ReadByte(); this.MaxTeamsStub14 = binaryReader.ReadByte(); this.MaxTeamsStub15 = binaryReader.ReadByte(); return(pointerQueue); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.ParentFolder = binaryReader.ReadLongBlockIndex1(); this.Name = binaryReader.ReadString256(); return(pointerQueue); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.CampaignID = binaryReader.ReadInt32(); this.MapID = binaryReader.ReadInt32(); this.Path = binaryReader.ReadString256(); return(pointerQueue); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.Position = binaryReader.ReadVector3(); this.Type = ((TypeEnum)(binaryReader.ReadInt32())); this.Name = binaryReader.ReadString32(); this.Comment = binaryReader.ReadString256(); return(pointerQueue); }
internal GlobalErrorReportCategoriesBlockBase(BinaryReader binaryReader) { this.name = binaryReader.ReadString256(); this.reportType = (ReportType)binaryReader.ReadInt16(); this.flags = (Flags)binaryReader.ReadInt16(); this.invalidName_ = binaryReader.ReadBytes(2); this.invalidName_0 = binaryReader.ReadBytes(2); this.invalidName_1 = binaryReader.ReadBytes(404); this.reports = ReadErrorReportsBlockArray(binaryReader); }
internal TagImportFileBlockBase(BinaryReader binaryReader) { this.path = binaryReader.ReadString256(); this.modificationDate = binaryReader.ReadString32(); this.invalidName_ = binaryReader.ReadBytes(8); this.invalidName_0 = binaryReader.ReadBytes(88); this.checksumCrc32 = binaryReader.ReadInt32(); this.sizeBytes = binaryReader.ReadInt32(); this.zippedData = ReadData(binaryReader); this.invalidName_1 = binaryReader.ReadBytes(128); }
public static void Write(this BinaryWriter binaryWriter, String256 value) { var bytes = Encoding.UTF8.GetBytes(value.value); var padding = bytes.Length >= 256 ? 256 : 256 - bytes.Length; binaryWriter.Write(bytes); if (padding > 0) { binaryWriter.Write(new byte[padding]); } }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.Name = binaryReader.ReadString256(); this.ReportType = ((ReportTypeEnum)(binaryReader.ReadInt16())); this.GlobalErrorReportCategoriesFlags = ((Flags)(binaryReader.ReadInt16())); this.fieldpad = binaryReader.ReadBytes(2); this.fieldpad0 = binaryReader.ReadBytes(2); this.fieldpad1 = binaryReader.ReadBytes(404); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(608)); return(pointerQueue); }
internal GlobalTagImportInfoBlockBase(BinaryReader binaryReader) { this.build = binaryReader.ReadInt32(); this.version = binaryReader.ReadString256(); this.importDate = binaryReader.ReadString32(); this.culprit = binaryReader.ReadString32(); this.invalidName_ = binaryReader.ReadBytes(96); this.importTime = binaryReader.ReadString32(); this.invalidName_0 = binaryReader.ReadBytes(4); this.files = ReadTagImportFileBlockArray(binaryReader); this.invalidName_1 = binaryReader.ReadBytes(128); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.Path = binaryReader.ReadString256(); this.ModificationDate = binaryReader.ReadString32(); this.fieldskip = binaryReader.ReadBytes(8); this.fieldpad = binaryReader.ReadBytes(88); this.Checksum = binaryReader.ReadInt32(); this.Size = binaryReader.ReadInt32(); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(1)); this.fieldpad0 = binaryReader.ReadBytes(128); return(pointerQueue); }
public override System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> ReadFields(System.IO.BinaryReader binaryReader) { System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer> pointerQueue = new System.Collections.Generic.Queue <Moonfish.Tags.BlamPointer>(base.ReadFields(binaryReader)); this.Build = binaryReader.ReadInt32(); this.Version = binaryReader.ReadString256(); this.ImportDate = binaryReader.ReadString32(); this.Culprit = binaryReader.ReadString32(); this.fieldpad = binaryReader.ReadBytes(96); this.ImportTime = binaryReader.ReadString32(); this.fieldpad0 = binaryReader.ReadBytes(4); pointerQueue.Enqueue(binaryReader.ReadBlamPointer(528)); this.fieldpad1 = binaryReader.ReadBytes(128); return(pointerQueue); }
public static void Write(this BinaryWriter binaryWriter, String256 value) { var bytes = Encoding.UTF8.GetBytes(value.value); WriteFixedArray(binaryWriter, bytes, 256); }
internal GScenarioEditorFolderBlockBase(BinaryReader binaryReader) { this.parentFolder = binaryReader.ReadLongBlockIndex1(); this.name = binaryReader.ReadString256(); }