Primitive 0x0011 - Idle for Input
This primitive idles the Sim and permits other interactions to be processed or added to their queue.
There is no SimPe wizard for this instruction, so the following table details the meaning of each of the operands.
Operand | Description | Operand Values |
---|---|---|
0 | Tick Count Parameter (if Op4 Bit1 is 0) | |
1 | Unused | |
2 & 3 | Allow Push | 0x0000: true Otherwise: false |
4 - bit 1 | Controls Action | Off: Idle for ticks given by Param Op0 On: Process any sub-queue interactions (all other operands are ignored) |
4 - bit 2 thru 8 | Unused | |
5 thru 15 | Unused |
// Decompiled with JetBrains decompiler // Type: pjse.BhavNameWizards.WizPrim0x0011 // Assembly: pjse.coder.plugin, Version=4.0.3349.37576, Culture=neutral, PublicKeyToken=null using SimPe.PackedFiles.Wrapper; using System; namespace pjse.BhavNameWizards { public class WizPrim0x0011 : BhavWizPrim { public WizPrim0x0011(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 = ""; string str2; if (((int) numArray[4] & 1) != 0) str2 = str1 + Localization.GetString("bwp11_handleSubQueueInteractions"); else str2 = str1 + Localization.GetString("bwp_ticks") + ": " + this.dataOwner(lng, (byte) 9, (ushort) numArray[0]) + ", " + Localization.GetString("bwp11_allowPush") + ": " + (BhavWiz.ToShort(numArray[2], numArray[3]) == (ushort) 0).ToString(); return str2; } } }