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