public bool Write(BinaryWriter bw) { bw.Write((short)opcode); FileIOHelper.WriteStringNullTerminated(bw, time); FileIOHelper.WriteStringNullTerminated(bw, location); return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); box1 = new DataBox(0x2); box1.Read(br); return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); firstLookUpCode = br.ReadInt16(); secondLookUpCode = br.ReadInt16(); return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); time = FileIOHelper.ReadNullTerminatedString(br); location = FileIOHelper.ReadNullTerminatedString(br); return(true); }
public bool Write(BinaryWriter bw) { bw.Write((short)opcode); FileIOHelper.WriteFixedLengthString(bw, archiveFile, cpkFileNameLength); FileIOHelper.WriteFixedLengthString(bw, subFile, imageFileNameLength); return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); archiveFile = FileIOHelper.ReadFixedLengthString(br, cpkFileNameLength); subFile = FileIOHelper.ReadFixedLengthString(br, imageFileNameLength); return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); voiceClip = br.ReadInt32(); unknown = br.ReadInt32(); dialogueBox.Read(br); return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); unknownInt = br.ReadUInt16(); numberOfChoices = br.ReadUInt16(); for (int i = 0; i < numberOfChoices; i++) { var newChoice = new ChoiceBar(); newChoice.Read(br); choices.Add(newChoice); } return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); firstSprite = new SpriteInfo(); firstSprite.Read(br); secondSprite = new SpriteInfo(); secondSprite.Read(br); thirdSprite = new SpriteInfo(); thirdSprite.Read(br); voiceClip = br.ReadInt32(); unknown = br.ReadInt32(); dialogueBox.Read(br); return(true); }
public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); boxContents = br.ReadBytes(contentsSize); return(true); }
int fadeType; // really a bool - zero for standard disappearance and non-zero for a fade down public bool Read(BinaryReader br) { opcode = FileIOHelper.ReadOpcode(br); fadeType = br.ReadUInt16(); return(true); }