Primitive 0x007B - Cinematic


Use

There is no SimPe wizard for this instruction, so the following table details the meaning of each of the operands.

OperandDescriptionOperand Values
0 & 1 Scene literal (index into STR# 0x0097) - ony if Op5 Bit5 is false
2 thru 4 Unused
5 - bit 1 Flip Flag Off: False (but see bit 2)
On: True
5 - bit 2 Flip Flag Off: Use bit 1
On: Use value in Temp 0
5 - bit 3 Start Animations Now Off: False
On: True
5 - bit 4 Show Entire House Off: False
On: True
5 - bit 5 Take Scene Index From Off: Literal in Op0/1
On: Variable in Op6
5 - bit 6 Scene Scope Off: See bit 7
On: Global
5 - bit 7 Scene Scope Off: Private
On: Semi-Global
5 - bit 8 Unused
6 Scene (index into STR# 0x0097) - ony if Op5 Bit5 is true
7 & 8 Qualifiers on the variable in operand 6
9 Array
10 & 11 Qualifiers on the variable in operand 9
12 thru 15 Unused

See Also


SimPe Code

// Decompiled with JetBrains decompiler
// Type: pjse.BhavNameWizards.WizPrim0x007b
// Assembly: pjse.coder.plugin, Version=4.0.3349.37576, Culture=neutral, PublicKeyToken=null

using SimPe.PackedFiles.Wrapper;
using System;

namespace pjse.BhavNameWizards
{
  public class WizPrim0x007b : BhavWizPrim
  {
    public WizPrim0x007b(Instruction i)
      : base(i)
    {
    }

    protected override string Operands(bool lng)
    {
      byte[] numArray = new byte[16];
      ((byte[]) this.instruction.Operands).CopyTo((Array) numArray, 0);
      ((byte[]) this.instruction.Reserved1).CopyTo((Array) numArray, 8);
      string str1 = "";
      Scope scope = Scope.Private;
      if (((int) numArray[5] & 32) != 0)
        scope = Scope.Global;
      else if (((int) numArray[5] & 64) != 0)
        scope = Scope.SemiGlobal;
      string str2 = str1 + (lng ? Localization.GetString("bwp7b_scene") + ": " : "") + (((int) numArray[5] & 16) != 0 ? this.dataOwner(lng, numArray[6], numArray[7], numArray[8]) : this.readStr(scope, GS.GlobalStr.CineCam, BhavWiz.ToShort(numArray[0], numArray[1]), lng ? -1 : 60, lng ? Detail.Normal : Detail.ErrorNames));
      if (lng)
        str2 = str2 + ", " + Localization.GetString("bwp7b_array") + ": " + this.dataOwner(lng, numArray[9], numArray[10], numArray[11]) + ", " + Localization.GetString("bwp_flipFlag") + ": " + (((int) numArray[5] & 2) != 0 ? this.dataOwner((byte) 8, (ushort) 0) : (((int) numArray[5] & 1) != 0).ToString()) + ", " + Localization.GetString("bwp7b_start") + ": " + (((int) numArray[5] & 4) != 0).ToString() + ", " + Localization.GetString("bwp7b_showHouse") + ": " + (((int) numArray[5] & 8) != 0).ToString();
      return str2;
    }
  }
}