Class GhostCodeGen | Unity NetCode | 0.3.0-preview.3
docs.unity3d.com
    Show / Hide Table of Contents

    Class GhostCodeGen

    Inheritance
    Object
    GhostCodeGen
    Namespace: Unity.NetCode.Editor
    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
    Type Description
    Dictionary<String, String>

    Properties

    Fragments

    Declaration
    public Dictionary<string, GhostCodeGen.FragmentData> Fragments { get; }
    Property Value
    Type Description
    Dictionary<String, GhostCodeGen.FragmentData>

    Methods

    AddTemplateOverrides(String)

    Declaration
    public void AddTemplateOverrides(string template)
    Parameters
    Type Name Description
    String template

    Append(GhostCodeGen)

    Declaration
    public void Append(GhostCodeGen target)
    Parameters
    Type Name Description
    GhostCodeGen target

    AppendFragment(String, GhostCodeGen, String, String)

    Declaration
    public void AppendFragment(string fragment, GhostCodeGen target, string targetFragment = null, string extraIndent = null)
    Parameters
    Type Name Description
    String fragment
    GhostCodeGen target
    String targetFragment
    String extraIndent

    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
    Type Name Description
    String assetPath
    String rootPath
    String fileName
    Dictionary<String, String> replacements
    GhostCodeGen.Batch batch

    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
    Type Name Description
    String fragment
    Dictionary<String, String> replacements
    GhostCodeGen target
    String targetFragment
    String extraIndent
    Boolean allowMissingFragment
    Returns
    Type Description
    Boolean

    GetFragmentTemplate(String)

    Declaration
    public string GetFragmentTemplate(string fragment)
    Parameters
    Type Name Description
    String fragment
    Returns
    Type Description
    String

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023