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