C# Class SharpTune.RomMod.ModDefinition

ファイルを表示 Open project: Merp/SharpTune Class Usage Examples

Private Properties

Property Type Description
CreateRomRaiderRamTable TableMetaData>.KeyValuePair
CreateRomRaiderRamTableBit TableMetaData>.KeyValuePair
DefineRRLogEcu void
GetDefs List
GetRRECUDefs List
HasBaseRRECUDef bool
InheritRRLogger void
PopulateRRLogDefTables void
PopulateRRLogDefTables void
ReadRRLogDefExtIdentifiers string>.Dictionary
SelectGetRREcuDef System.Xml.Linq.XDocument
SelectGetRRLogDef System.Xml.Linq.XDocument
TryCleanDef bool
TryParseDefs bool

Public Methods

Method Description
DefineRRLogEcuFromMap ( string mapFile, string ident ) : void
DefineRRLogEcuFromText ( string text, string ident ) : void
ModDefinition ( AvailableDevices ad, Mod parent ) : System
NewRRLogDefInheritWithTemplate ( TableMetaData>.Dictionary ramTableList, string outPath, string template, string inheritIdent, string ident ) : void
PopulateRREcuDefStub ( string outPath ) : void
TryReadDefString ( Blob metadata, string &metaString, int &offset ) : bool

Read a single string from the metadata blob.

Consider returning false, printing error message. But, need to be certain to abort the whole process at that point...

TryReadDefs ( String defPath ) : bool

Private Methods

Method Description
CreateRomRaiderRamTable ( string name, int offset, string id, string type ) : TableMetaData>.KeyValuePair
CreateRomRaiderRamTableBit ( string name, int offset, string id, int bit ) : TableMetaData>.KeyValuePair
DefineRRLogEcu ( string>.Dictionary inputMap, string ident ) : void
GetDefs ( string path ) : List
GetRRECUDefs ( string path, string calid ) : List
HasBaseRRECUDef ( string path, string calid ) : bool
InheritRRLogger ( System.Xml.Linq.XDocument &xmlDoc, string outPath, string inheritIdent, string newIdent ) : void
PopulateRRLogDefTables ( System.Xml.Linq.XDocument &xmlDoc, string outPath, TableMetaData>.Dictionary ramTableList, string ident, string>.Dictionary ExtIdentifiers ) : void
PopulateRRLogDefTables ( System.Xml.Linq.XDocument &xmlDoc, string outPath, string>.Dictionary ramTableList, string ident ) : void
ReadRRLogDefExtIdentifiers ( System.Xml.Linq.XDocument xd ) : string>.Dictionary
SelectGetRREcuDef ( ) : System.Xml.Linq.XDocument
SelectGetRRLogDef ( ) : System.Xml.Linq.XDocument
TryCleanDef ( ) : bool

TODO: Deprecated

TryParseDefs ( Blob metadata, int &offset, String defPath ) : bool

Try to read the Patch metadata from the file and add this data to table lists.

Method Details

DefineRRLogEcuFromMap() public method

public DefineRRLogEcuFromMap ( string mapFile, string ident ) : void
mapFile string
ident string
return void

DefineRRLogEcuFromText() public method

public DefineRRLogEcuFromText ( string text, string ident ) : void
text string
ident string
return void

ModDefinition() public method

public ModDefinition ( AvailableDevices ad, Mod parent ) : System
ad SharpTuneCore.AvailableDevices
parent Mod
return System

NewRRLogDefInheritWithTemplate() public method

public NewRRLogDefInheritWithTemplate ( TableMetaData>.Dictionary ramTableList, string outPath, string template, string inheritIdent, string ident ) : void
ramTableList TableMetaData>.Dictionary
outPath string
template string
inheritIdent string
ident string
return void

PopulateRREcuDefStub() public method

public PopulateRREcuDefStub ( string outPath ) : void
outPath string
return void

TryReadDefString() public method

Read a single string from the metadata blob.
Consider returning false, printing error message. But, need to be certain to abort the whole process at that point...
public TryReadDefString ( Blob metadata, string &metaString, int &offset ) : bool
metadata Blob
metaString string
offset int
return bool

TryReadDefs() public method

public TryReadDefs ( String defPath ) : bool
defPath String
return bool