Class GhostCodeGen
Syntax
public class GhostCodeGen
Constructors
GhostCodeGen(String)
Declaration
public GhostCodeGen(string template)
Parameters
Type |
Name |
Description |
String |
template |
|
Fields
Replacements
Declaration
public Dictionary<string, string> Replacements
Field Value
Properties
Fragments
Declaration
public Dictionary<string, GhostCodeGen.FragmentData> Fragments { get; }
Property Value
Methods
AddTemplateOverrides(String)
Declaration
public void AddTemplateOverrides(string template)
Parameters
Type |
Name |
Description |
String |
template |
|
Append(GhostCodeGen)
Declaration
public void Append(GhostCodeGen target)
Parameters
AppendFragment(String, GhostCodeGen, String, String)
Declaration
public void AppendFragment(string fragment, GhostCodeGen target, string targetFragment = null, string extraIndent = null)
Parameters
GenerateFile(String, String, String, Dictionary<String, String>, GhostCodeGen.Batch)
Declaration
public void GenerateFile(string assetPath, string rootPath, string fileName, Dictionary<string, string> replacements, GhostCodeGen.Batch batch)
Parameters
GenerateFragment(String, Dictionary<String, String>, GhostCodeGen, String, String, Boolean)
Declaration
public bool GenerateFragment(string fragment, Dictionary<string, string> replacements, GhostCodeGen target = null, string targetFragment = null, string extraIndent = null, bool allowMissingFragment = false)
Parameters
Returns
GetFragmentTemplate(String)
Declaration
public string GetFragmentTemplate(string fragment)
Parameters
Type |
Name |
Description |
String |
fragment |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides