Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ArrayLengthInstruction.cs
Go to the documentation of this file.
2
3internal sealed class ArrayLengthInstruction : Instruction
4{
6
7 public override int ConsumedStack => 1;
8
9 public override int ProducedStack => 1;
10
11 public override string InstructionName => "ArrayLength";
12
14 {
15 }
16
17 public override int Run(InterpretedFrame frame)
18 {
19 object obj = frame.Pop();
20 frame.Push(((Array)obj).Length);
21 return 1;
22 }
23}