Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CreateDelegateInstruction.cs
Go to the documentation of this file.
2
4
6{
7 private readonly LightDelegateCreator _creator;
8
10
11 public override int ProducedStack => 1;
12
13 public override string InstructionName => "CreateDelegate";
14
16 {
17 _creator = delegateCreator;
18 }
19
20 public override int Run(InterpretedFrame frame)
21 {
23 if (ConsumedStack > 0)
24 {
26 for (int num = array.Length - 1; num >= 0; num--)
27 {
28 array[num] = (IStrongBox)frame.Pop();
29 }
30 }
31 else
32 {
33 array = null;
34 }
36 frame.Push(value);
37 return 1;
38 }
39}