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

    Class TypeGenerator

    Inheritance
    Object
    TypeGenerator
    Namespace: Unity.NetCode.Editor
    Syntax
    public class TypeGenerator

    Constructors

    TypeGenerator()

    Declaration
    public TypeGenerator()

    TypeGenerator(TypeInformation)

    Declaration
    public TypeGenerator(TypeInformation information)
    Parameters
    Type Name Description
    TypeInformation information

    TypeGenerator(TypeInformation, TypeTemplate)

    Declaration
    public TypeGenerator(TypeInformation information, TypeTemplate template)
    Parameters
    Type Name Description
    TypeInformation information
    TypeTemplate template

    Properties

    Composite

    Declaration
    public bool Composite { get; }
    Property Value
    Type Description
    Boolean

    IsContainerType

    Declaration
    public bool IsContainerType { get; }
    Property Value
    Type Description
    Boolean

    Quantized

    Declaration
    public bool Quantized { get; }
    Property Value
    Type Description
    Boolean

    TemplateOverridePath

    Declaration
    public string TemplateOverridePath { get; }
    Property Value
    Type Description
    String

    TypeInformation

    Declaration
    public TypeInformation TypeInformation { get; }
    Property Value
    Type Description
    TypeInformation

    Methods

    AppendTarget(TypeGenerator)

    Declaration
    public void AppendTarget(TypeGenerator typeGenerator)
    Parameters
    Type Name Description
    TypeGenerator typeGenerator

    GenerateCompositeOverrides(String)

    Declaration
    public Dictionary<string, GhostCodeGen.FragmentData> GenerateCompositeOverrides(string parent = null)
    Parameters
    Type Name Description
    String parent
    Returns
    Type Description
    Dictionary<String, GhostCodeGen.FragmentData>

    GenerateFields(CodeGenerator.Context, String, Dictionary<String, GhostCodeGen.FragmentData>)

    Declaration
    public void GenerateFields(CodeGenerator.Context context, string parent = null, Dictionary<string, GhostCodeGen.FragmentData> overrides = null)
    Parameters
    Type Name Description
    CodeGenerator.Context context
    String parent
    Dictionary<String, GhostCodeGen.FragmentData> overrides

    GenerateMasks(CodeGenerator.Context, Boolean, Int32)

    Declaration
    public void GenerateMasks(CodeGenerator.Context context, bool composite = false, int index = 0)
    Parameters
    Type Name Description
    CodeGenerator.Context context
    Boolean composite
    Int32 index

    GenerateSerializer(CodeGenerator.Context, Mono.Cecil.TypeDefinition)

    Declaration
    public void GenerateSerializer(CodeGenerator.Context context, Mono.Cecil.TypeDefinition type)
    Parameters
    Type Name Description
    CodeGenerator.Context context
    Mono.Cecil.TypeDefinition type

    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