Ejemplo n.º 1
0
 public bool Write(BinaryWriter bw)
 {
     bw.Write((short)opcode);
     FileIOHelper.WriteStringNullTerminated(bw, time);
     FileIOHelper.WriteStringNullTerminated(bw, location);
     return(true);
 }
Ejemplo n.º 2
0
 public bool Read(BinaryReader br)
 {
     opcode = FileIOHelper.ReadOpcode(br);
     box1   = new DataBox(0x2);
     box1.Read(br);
     return(true);
 }
Ejemplo n.º 3
0
 public bool Read(BinaryReader br)
 {
     opcode           = FileIOHelper.ReadOpcode(br);
     firstLookUpCode  = br.ReadInt16();
     secondLookUpCode = br.ReadInt16();
     return(true);
 }
Ejemplo n.º 4
0
 public bool Read(BinaryReader br)
 {
     opcode   = FileIOHelper.ReadOpcode(br);
     time     = FileIOHelper.ReadNullTerminatedString(br);
     location = FileIOHelper.ReadNullTerminatedString(br);
     return(true);
 }
Ejemplo n.º 5
0
 public bool Write(BinaryWriter bw)
 {
     bw.Write((short)opcode);
     FileIOHelper.WriteFixedLengthString(bw, archiveFile, cpkFileNameLength);
     FileIOHelper.WriteFixedLengthString(bw, subFile, imageFileNameLength);
     return(true);
 }
Ejemplo n.º 6
0
 public bool Read(BinaryReader br)
 {
     opcode      = FileIOHelper.ReadOpcode(br);
     archiveFile = FileIOHelper.ReadFixedLengthString(br, cpkFileNameLength);
     subFile     = FileIOHelper.ReadFixedLengthString(br, imageFileNameLength);
     return(true);
 }
Ejemplo n.º 7
0
 public bool Read(BinaryReader br)
 {
     opcode    = FileIOHelper.ReadOpcode(br);
     voiceClip = br.ReadInt32();
     unknown   = br.ReadInt32();
     dialogueBox.Read(br);
     return(true);
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 10
0
 public bool Read(BinaryReader br)
 {
     opcode      = FileIOHelper.ReadOpcode(br);
     boxContents = br.ReadBytes(contentsSize);
     return(true);
 }
Ejemplo n.º 11
0
        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);
        }