tModLoader v0.11.8.9
A mod to make and play Terraria mods
|
Classes | |
class | SortingException |
Public Member Functions | |
TopoSort (IEnumerable< T > elements, Func< T, IEnumerable< T > > dependencies=null, Func< T, IEnumerable< T > > dependents=null) | |
void | AddEntry (T dependency, T dependent) |
ISet< T > | AllDependencies (T t) |
ISet< T > | AllDependendents (T t) |
List< T > | Dependencies (T t) |
List< T > | Dependents (T t) |
List< T > | Sort () |
Public Attributes | |
readonly ReadOnlyCollection< T > | list |
Static Private Member Functions | |
static void | BuildSet (T t, IDictionary< T, List< T > > dict, ISet< T > set) |
Private Attributes | |
IDictionary< T, List< T > > | dependencyDict = new Dictionary<T, List<T>>() |
IDictionary< T, List< T > > | dependentDict = new Dictionary<T, List<T>>() |
Definition at line 8 of file TopoSort.cs.
Terraria.ModLoader.TopoSort< T >.TopoSort | ( | IEnumerable< T > | elements, |
Func< T, IEnumerable< T > > | dependencies = null , |
||
Func< T, IEnumerable< T > > | dependents = null |
||
) |
Definition at line 29 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.AddEntry(), and Terraria.ModLoader.TopoSort< T >.list.
void Terraria.ModLoader.TopoSort< T >.AddEntry | ( | T | dependency, |
T | dependent | ||
) |
Definition at line 42 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.dependencyDict, Terraria.ModLoader.TopoSort< T >.dependentDict, and Terraria.ModLoader.TopoSort< T >.list.
Referenced by Terraria.ModLoader.TopoSort< T >.TopoSort().
ISet< T > Terraria.ModLoader.TopoSort< T >.AllDependencies | ( | T | t | ) |
Definition at line 71 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.BuildSet(), and Terraria.ModLoader.TopoSort< T >.dependencyDict.
ISet< T > Terraria.ModLoader.TopoSort< T >.AllDependendents | ( | T | t | ) |
Definition at line 77 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.BuildSet(), and Terraria.ModLoader.TopoSort< T >.dependentDict.
|
staticprivate |
Definition at line 51 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.BuildSet(), and Terraria.ModLoader.TopoSort< T >.list.
Referenced by Terraria.ModLoader.TopoSort< T >.AllDependencies(), Terraria.ModLoader.TopoSort< T >.AllDependendents(), and Terraria.ModLoader.TopoSort< T >.BuildSet().
List< T > Terraria.ModLoader.TopoSort< T >.Dependencies | ( | T | t | ) |
Definition at line 61 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.dependencyDict, and Terraria.ModLoader.TopoSort< T >.list.
Referenced by Terraria.ModLoader.TopoSort< T >.Sort().
List< T > Terraria.ModLoader.TopoSort< T >.Dependents | ( | T | t | ) |
Definition at line 66 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.dependentDict, and Terraria.ModLoader.TopoSort< T >.list.
List< T > Terraria.ModLoader.TopoSort< T >.Sort | ( | ) |
Definition at line 83 of file TopoSort.cs.
References Terraria.ModLoader.TopoSort< T >.Dependencies(), and Terraria.ModLoader.TopoSort< T >.list.
|
private |
Definition at line 26 of file TopoSort.cs.
Referenced by Terraria.ModLoader.TopoSort< T >.AddEntry(), Terraria.ModLoader.TopoSort< T >.AllDependencies(), and Terraria.ModLoader.TopoSort< T >.Dependencies().
|
private |
Definition at line 27 of file TopoSort.cs.
Referenced by Terraria.ModLoader.TopoSort< T >.AddEntry(), Terraria.ModLoader.TopoSort< T >.AllDependendents(), and Terraria.ModLoader.TopoSort< T >.Dependents().
readonly ReadOnlyCollection<T> Terraria.ModLoader.TopoSort< T >.list |
Definition at line 25 of file TopoSort.cs.
Referenced by Terraria.ModLoader.TopoSort< T >.TopoSort(), Terraria.ModLoader.TopoSort< T >.AddEntry(), Terraria.ModLoader.TopoSort< T >.BuildSet(), Terraria.ModLoader.TopoSort< T >.Dependencies(), Terraria.ModLoader.TopoSort< T >.Dependents(), and Terraria.ModLoader.TopoSort< T >.Sort().