Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AssignLocalInstruction.cs
Go to the documentation of this file.
2
4{
5 public override int ConsumedStack => 1;
6
7 public override int ProducedStack => 1;
8
9 public override string InstructionName => "AssignLocal";
10
12 : base(index)
13 {
14 }
15
16 public override int Run(InterpretedFrame frame)
17 {
18 frame.Data[_index] = frame.Peek();
19 return 1;
20 }
21
23 {
24 if (index != _index)
25 {
26 return null;
27 }
29 }
30}