-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from lahm86/master
- Loading branch information
Showing
11 changed files
with
167 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file modified
BIN
+2.7 KB
(120%)
TR2RandomizerCore/Resources/Models/MarcoBartoli/Segments.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System.Collections.Generic; | ||
using TRFDControl.FDEntryTypes; | ||
|
||
namespace TRFDControl.Utilities | ||
{ | ||
public static class FDUtilities | ||
{ | ||
public static List<FDTriggerEntry> GetEntityTriggers(FDControl control, int entityIndex) | ||
{ | ||
List<FDTriggerEntry> entries = new List<FDTriggerEntry>(); | ||
|
||
foreach (List<FDEntry> entryList in control.Entries.Values) | ||
{ | ||
foreach (FDEntry entry in entryList) | ||
{ | ||
if (entry is FDTriggerEntry triggerEntry) | ||
{ | ||
int itemIndex = triggerEntry.TrigActionList.FindIndex | ||
( | ||
i => | ||
i.TrigAction == FDTrigAction.Object && i.Parameter == entityIndex | ||
); | ||
if (itemIndex != -1) | ||
{ | ||
entries.Add(triggerEntry); | ||
} | ||
} | ||
} | ||
} | ||
|
||
return entries; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters