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