Photon Fusion 1.1.13

Public Member Functions | Static Public Member Functions | List of all members
OrderSorter Class Reference

This sorting class is meant to be released and garbage collected after use. More...

Public Member Functions

OrderNode RegisterNode (Type type)
 Create the node without searching for attributes yet. More...
 
OrderNode[] Run ()
 Returns sorted list of Types. More...
 
OrderNode[] RunConversion (List< Type > group)
 Orders a list of types based on SortOrder attributes and returns an array of OrderNode structs. More...
 

Static Public Member Functions

static bool MergeChains (List< OrderNode > unorderedNodes)
 Merge Before and Afters based on the logic: If A is Before B, and B is Before C, then A is Before C... etc This allows obvious conflicts to be quickly spotted. More...
 

Detailed Description

This sorting class is meant to be released and garbage collected after use.

Member Function Documentation

◆ MergeChains()

static bool MergeChains ( List< OrderNode >  unorderedNodes)
static

Merge Before and Afters based on the logic: If A is Before B, and B is Before C, then A is Before C... etc This allows obvious conflicts to be quickly spotted.

Returns

◆ RegisterNode()

OrderNode RegisterNode ( Type  type)

Create the node without searching for attributes yet.

◆ Run()

OrderNode [] Run ( )

Returns sorted list of Types.

Returns

◆ RunConversion()

OrderNode [] RunConversion ( List< Type >  group)

Orders a list of types based on SortOrder attributes and returns an array of OrderNode structs.