A1 + A2
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
using GeometryTD.CustomUtility;
|
||||
using GeometryTD.Definition;
|
||||
using GeometryTD.Procedure;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
@@ -24,7 +22,7 @@ namespace GeometryTD.CustomEvent
|
||||
|
||||
public bool CombatWon { get; private set; }
|
||||
|
||||
public BackpackInventoryData InventorySnapshotAfterNode { get; private set; }
|
||||
public RunNodeCompletionSnapshot CompletionSnapshot { get; private set; }
|
||||
|
||||
public NodeCompleteEventArgs()
|
||||
{
|
||||
@@ -42,7 +40,7 @@ namespace GeometryTD.CustomEvent
|
||||
int sequenceIndex,
|
||||
RunNodeCompletionStatus completionStatus,
|
||||
bool combatWon,
|
||||
BackpackInventoryData inventorySnapshotAfterNode)
|
||||
RunNodeCompletionSnapshot completionSnapshot)
|
||||
{
|
||||
var args = ReferencePool.Acquire<NodeCompleteEventArgs>();
|
||||
args.RunId = runId;
|
||||
@@ -51,7 +49,7 @@ namespace GeometryTD.CustomEvent
|
||||
args.SequenceIndex = sequenceIndex;
|
||||
args.CompletionStatus = completionStatus;
|
||||
args.CombatWon = combatWon;
|
||||
args.InventorySnapshotAfterNode = InventoryCloneUtility.CloneInventory(inventorySnapshotAfterNode);
|
||||
args.CompletionSnapshot = completionSnapshot != null ? completionSnapshot.Clone() : null;
|
||||
|
||||
return args;
|
||||
}
|
||||
@@ -64,7 +62,7 @@ namespace GeometryTD.CustomEvent
|
||||
SequenceIndex = -1;
|
||||
CompletionStatus = RunNodeCompletionStatus.None;
|
||||
CombatWon = false;
|
||||
InventorySnapshotAfterNode = null;
|
||||
CompletionSnapshot = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user