Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AssignLocalBoxedInstruction.cs
Go to the documentation of this file.
2
4
6{
7 public override int ConsumedStack => 1;
8
9 public override int ProducedStack => 1;
10
11 public override string InstructionName => "AssignLocalBox";
12
14 : base(index)
15 {
16 }
17
18 public override int Run(InterpretedFrame frame)
19 {
20 IStrongBox strongBox = (IStrongBox)frame.Data[_index];
21 strongBox.Value = frame.Peek();
22 return 1;
23 }
24}