Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LoadCachedObjectInstruction.cs
Go to the documentation of this file.
4
6
8{
9 private readonly uint _index;
10
11 public override int ProducedStack => 1;
12
13 public override string InstructionName => "LoadCachedObject";
14
16 {
17 _index = index;
18 }
19
20 public override int Run(InterpretedFrame frame)
21 {
22 frame.Data[frame.StackIndex++] = frame.Interpreter._objects[_index];
23 return 1;
24 }
25
27 {
30 handler.AppendLiteral("LoadCached(");
31 handler.AppendFormatted(_index);
32 handler.AppendLiteral(": ");
33 handler.AppendFormatted<object>(objects[(int)_index]);
34 handler.AppendLiteral(")");
35 return string.Create(invariantCulture, ref handler);
36 }
37
38 public override string ToString()
39 {
40 return "LoadCached(" + _index + ")";
41 }
42}
static CultureInfo InvariantCulture
override string ToDebugString(int instructionIndex, object cookie, Func< int, int > labelIndexer, IReadOnlyList< object > objects)