Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Instruction.cs
Go to the documentation of this file.
2
4
5internal abstract class Instruction
6{
7 public virtual int ConsumedStack => 0;
8
9 public virtual int ProducedStack => 0;
10
11 public virtual int ConsumedContinuations => 0;
12
13 public virtual int ProducedContinuations => 0;
14
16
18
19 public abstract string InstructionName { get; }
20
21 public abstract int Run(InterpretedFrame frame);
22
23 public override string ToString()
24 {
25 return InstructionName + "()";
26 }
27
29 {
30 return ToString();
31 }
32
33 protected static void NullCheck(object o)
34 {
35 if (o == null)
36 {
37 o.GetType();
38 }
39 }
40}
virtual string ToDebugString(int instructionIndex, object cookie, Func< int, int > labelIndexer, IReadOnlyList< object > objects)