Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RuntimeVariablesInstruction.cs
Go to the documentation of this file.
2
4
6{
7 private readonly int _count;
8
9 public override int ProducedStack => 1;
10
11 public override int ConsumedStack => _count;
12
13 public override string InstructionName => "GetRuntimeVariables";
14
16 {
17 _count = count;
18 }
19
20 public override int Run(InterpretedFrame frame)
21 {
23 for (int num = array.Length - 1; num >= 0; num--)
24 {
25 array[num] = (IStrongBox)frame.Pop();
26 }
28 return 1;
29 }
30}
static IRuntimeVariables Create(IStrongBox[] boxes)