C# Class WinterSync.Mod

Datei anzeigen Open project: ZeroK-RTS/SpringRTS-Tools

Private Properties

Property Type Description
GetDependenciesFromLua string[]
GetDependenciesFromTdf string[]
GetDependencyArchiveNames string[]
GetDependencyArchivePaths string[]
GetModInfo string
IsUsefulArchive bool
LoadArchives LazyFileData>.Dictionary
ToArchivePath string
ToModName string

Public Methods

Method Description
FromSpringPath ( string springPath, string modName ) : Mod
Mod ( string name, string>.IDictionary allMods ) : System

Private Methods

Method Description
GetDependenciesFromLua ( string archiveName, string fileName ) : string[]

gets the list of dependencies from modinfo.lua

GetDependenciesFromTdf ( string archiveName, string fileName ) : string[]

gets the list of dependencies from modinfo.tdf

GetDependencyArchiveNames ( string archiveName ) : string[]
GetDependencyArchivePaths ( string archiveName ) : string[]

gets all dependencies from an archive recursively

GetModInfo ( string archiveName, string extension ) : string
IsUsefulArchive ( string name ) : bool
LoadArchives ( IEnumerable archives ) : LazyFileData>.Dictionary

Make a dictionary with all the files in the VFS

ToArchivePath ( string name ) : string

/// translates a mod name or mod archive to a mod archive name

ToModName ( string path ) : string

Method Details

FromSpringPath() public static method

public static FromSpringPath ( string springPath, string modName ) : Mod
springPath string
modName string
return Mod

Mod() public method

public Mod ( string name, string>.IDictionary allMods ) : System
name string
allMods string>.IDictionary
return System