C# Class ModuleManager.MMPatchLoader

Inheritance: LoadingSystem
Mostrar archivo Open project: sarbian/ModuleManager Class Usage Examples

Public Properties

Property Type Description
appliedPatchCount int
errorCount int
errors string
exceptionCount int
keepPartDB bool
needsUnsatisfiedCount int
patchedNodeCount int
status string
totalPatchCount int

Public Methods

Method Description
ApplyPatch ( List excludePaths, string Stage ) : IEnumerator
CheckConstraints ( ConfigNode node, string constraints ) : bool
FindConfigNodeIn ( ConfigNode src, string nodeType, string nodeName = null, int index ) : ConfigNode
IsBracketBalanced ( string str ) : bool
IsPathInList ( string modPath, List pathList ) : bool
IsReady ( ) : bool
ModifyNode ( ConfigNode original, ConfigNode mod ) : ConfigNode
ProgressFraction ( ) : float
ProgressTitle ( ) : string
RemoveWS ( string withWhite ) : string
SplitConstraints ( string condition ) : List
StartLoad ( ) : void
StartLoad ( bool blocking ) : void
Update ( ) : void
WildcardMatch ( string s, string wildcard ) : bool
WildcardMatchValues ( ConfigNode node, string type, string value ) : bool
addErrorFiles ( UrlDir file, int n = 1 ) : void
addPostPatchCallback ( ModuleManagerPostPatchCallback callback ) : void
checkValues ( ) : void
log ( String s ) : void

Private Methods

Method Description
Awake ( ) : void
CheckFilesChange ( UrlDir files, ConfigNode shaConfigNode ) : bool
CheckNeeds ( string &name ) : bool

Returns true if needs are satisfied.

CheckNeeds ( ConfigNode subMod, string url, List path ) : void
CheckNeeds ( List excludePaths ) : void
CompareRecursive ( ConfigNode expectNode, ConfigNode gotNode ) : bool
CreateCache ( ) : void
DeepCopy ( ConfigNode from ) : ConfigNode
FileSHA ( string filename ) : string
FindAndReplaceValue ( ConfigNode mod, string &valName, string value, ConfigNode newNode, char op, int index, ConfigNode &origVal, bool hasPosIndex = false, int posIndex, bool hasPosStar = false, char seperator = ',' ) : string
FindValueIn ( ConfigNode newNode, string valName, int index ) : ConfigNode.Value
InsertNode ( ConfigNode newNode, ConfigNode subMod, int index ) : void
InsertValue ( ConfigNode newNode, int index, string name, string value ) : void
IsCacheUpToDate ( ) : void
LoadCache ( ) : void
LoadPhysicsConfig ( ) : void
ParseCommand ( string name, string &valueName ) : Command
PrePatchInit ( ) : List
PrettyConfig ( UrlDir config ) : string
PrettyConfig ( ConfigNode node, StringBuilder &sb, string indent ) : void
ProcessPatch ( bool blocking ) : IEnumerator
ProcessVariableSearch ( string value, ConfigNode node ) : string
PurgeUnused ( List excludePaths ) : void
RecurseNodeSearch ( string path, ConfigNode currentNode ) : ConfigNode
RecurseVariableSearch ( string path, ConfigNode currentNode ) : ConfigNode.Value
RunTestCases ( ) : void
SaveModdedPhysics ( ) : void
SaveModdedTechTree ( ) : void
ShallowCopy ( ConfigNode from, ConfigNode to ) : void
StartCoroutine ( IEnumerator enumerator, bool blocking ) : Coroutine
StatusUpdate ( ) : void
checkValues ( ConfigNode node ) : bool
getFileNode ( ConfigNode shaConfigNode, string filename ) : ConfigNode

Method Details

ApplyPatch() public method

public ApplyPatch ( List excludePaths, string Stage ) : IEnumerator
excludePaths List
Stage string
return IEnumerator

CheckConstraints() public static method

public static CheckConstraints ( ConfigNode node, string constraints ) : bool
node System.ConfigNode
constraints string
return bool

FindConfigNodeIn() public static method

public static FindConfigNodeIn ( ConfigNode src, string nodeType, string nodeName = null, int index ) : ConfigNode
src System.ConfigNode
nodeType string
nodeName string
index int
return System.ConfigNode

IsBracketBalanced() public static method

public static IsBracketBalanced ( string str ) : bool
str string
return bool

IsPathInList() public method

public IsPathInList ( string modPath, List pathList ) : bool
modPath string
pathList List
return bool

IsReady() public method

public IsReady ( ) : bool
return bool

ModifyNode() public method

public ModifyNode ( ConfigNode original, ConfigNode mod ) : ConfigNode
original System.ConfigNode
mod System.ConfigNode
return System.ConfigNode

ProgressFraction() public method

public ProgressFraction ( ) : float
return float

ProgressTitle() public method

public ProgressTitle ( ) : string
return string

RemoveWS() public static method

public static RemoveWS ( string withWhite ) : string
withWhite string
return string

SplitConstraints() public static method

public static SplitConstraints ( string condition ) : List
condition string
return List

StartLoad() public method

public StartLoad ( ) : void
return void

StartLoad() public method

public StartLoad ( bool blocking ) : void
blocking bool
return void

Update() public method

public Update ( ) : void
return void

WildcardMatch() public static method

public static WildcardMatch ( string s, string wildcard ) : bool
s string
wildcard string
return bool

WildcardMatchValues() public static method

public static WildcardMatchValues ( ConfigNode node, string type, string value ) : bool
node System.ConfigNode
type string
value string
return bool

addErrorFiles() public method

public addErrorFiles ( UrlDir file, int n = 1 ) : void
file UrlDir
n int
return void

addPostPatchCallback() public static method

public static addPostPatchCallback ( ModuleManagerPostPatchCallback callback ) : void
callback ModuleManagerPostPatchCallback
return void

checkValues() public static method

public static checkValues ( ) : void
return void

log() public static method

public static log ( String s ) : void
s String
return void

Property Details

appliedPatchCount public_oe property

public int appliedPatchCount
return int

errorCount public_oe property

public int errorCount
return int

errors public_oe property

public string errors
return string

exceptionCount public_oe property

public int exceptionCount
return int

keepPartDB public_oe static_oe property

public static bool keepPartDB
return bool

needsUnsatisfiedCount public_oe property

public int needsUnsatisfiedCount
return int

patchedNodeCount public_oe property

public int patchedNodeCount
return int

status public_oe property

public string status
return string

totalPatchCount public_oe property

public int totalPatchCount
return int