C# Класс ModuleManager.MMPatchLoader

Наследование: LoadingSystem
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
appliedPatchCount int
errorCount int
errors string
exceptionCount int
keepPartDB bool
needsUnsatisfiedCount int
patchedNodeCount int
status string
totalPatchCount int

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ApplyPatch() публичный Метод

public ApplyPatch ( List excludePaths, string Stage ) : IEnumerator
excludePaths List
Stage string
Результат IEnumerator

CheckConstraints() публичный статический Метод

public static CheckConstraints ( ConfigNode node, string constraints ) : bool
node System.ConfigNode
constraints string
Результат bool

FindConfigNodeIn() публичный статический Метод

public static FindConfigNodeIn ( ConfigNode src, string nodeType, string nodeName = null, int index ) : ConfigNode
src System.ConfigNode
nodeType string
nodeName string
index int
Результат System.ConfigNode

IsBracketBalanced() публичный статический Метод

public static IsBracketBalanced ( string str ) : bool
str string
Результат bool

IsPathInList() публичный Метод

public IsPathInList ( string modPath, List pathList ) : bool
modPath string
pathList List
Результат bool

IsReady() публичный Метод

public IsReady ( ) : bool
Результат bool

ModifyNode() публичный Метод

public ModifyNode ( ConfigNode original, ConfigNode mod ) : ConfigNode
original System.ConfigNode
mod System.ConfigNode
Результат System.ConfigNode

ProgressFraction() публичный Метод

public ProgressFraction ( ) : float
Результат float

ProgressTitle() публичный Метод

public ProgressTitle ( ) : string
Результат string

RemoveWS() публичный статический Метод

public static RemoveWS ( string withWhite ) : string
withWhite string
Результат string

SplitConstraints() публичный статический Метод

public static SplitConstraints ( string condition ) : List
condition string
Результат List

StartLoad() публичный Метод

public StartLoad ( ) : void
Результат void

StartLoad() публичный Метод

public StartLoad ( bool blocking ) : void
blocking bool
Результат void

Update() публичный Метод

public Update ( ) : void
Результат void

WildcardMatch() публичный статический Метод

public static WildcardMatch ( string s, string wildcard ) : bool
s string
wildcard string
Результат bool

WildcardMatchValues() публичный статический Метод

public static WildcardMatchValues ( ConfigNode node, string type, string value ) : bool
node System.ConfigNode
type string
value string
Результат bool

addErrorFiles() публичный Метод

public addErrorFiles ( UrlDir file, int n = 1 ) : void
file UrlDir
n int
Результат void

addPostPatchCallback() публичный статический Метод

public static addPostPatchCallback ( ModuleManagerPostPatchCallback callback ) : void
callback ModuleManagerPostPatchCallback
Результат void

checkValues() публичный статический Метод

public static checkValues ( ) : void
Результат void

log() публичный статический Метод

public static log ( String s ) : void
s String
Результат void

Описание свойств

appliedPatchCount публичное свойство

public int appliedPatchCount
Результат int

errorCount публичное свойство

public int errorCount
Результат int

errors публичное свойство

public string errors
Результат string

exceptionCount публичное свойство

public int exceptionCount
Результат int

keepPartDB публичное статическое свойство

public static bool keepPartDB
Результат bool

needsUnsatisfiedCount публичное свойство

public int needsUnsatisfiedCount
Результат int

patchedNodeCount публичное свойство

public int patchedNodeCount
Результат int

status публичное свойство

public string status
Результат string

totalPatchCount публичное свойство

public int totalPatchCount
Результат int