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