Class ClientServerBootstrap | Unity NetCode | 0.2.0-preview.5
docs.unity.cn
    Show / Hide Table of Contents

    Class ClientServerBootstrap

    Inheritance
    Object
    ClientServerBootstrap
    Namespace: Unity.NetCode
    Syntax
    public class ClientServerBootstrap : ICustomBootstrap

    Properties

    DefaultWorldSystems

    Declaration
    public static List<Type> DefaultWorldSystems { get; }
    Property Value
    Type Description
    List<Type>

    ExplicitDefaultWorldSystems

    Declaration
    public static List<Type> ExplicitDefaultWorldSystems { get; }
    Property Value
    Type Description
    List<Type>

    RequestedNumClients

    Declaration
    public static int RequestedNumClients { get; }
    Property Value
    Type Description
    Int32

    RequestedPlayType

    Declaration
    public static ClientServerBootstrap.PlayType RequestedPlayType { get; }
    Property Value
    Type Description
    ClientServerBootstrap.PlayType

    Methods

    CreateClientWorld(World, String)

    Declaration
    public static World CreateClientWorld(World defaultWorld, string name)
    Parameters
    Type Name Description
    World defaultWorld
    String name
    Returns
    Type Description
    World

    CreateServerWorld(World, String)

    Declaration
    public static World CreateServerWorld(World defaultWorld, string name)
    Parameters
    Type Name Description
    World defaultWorld
    String name
    Returns
    Type Description
    World

    GenerateSystemLists(IReadOnlyList<Type>)

    Declaration
    protected static void GenerateSystemLists(IReadOnlyList<Type> systems)
    Parameters
    Type Name Description
    IReadOnlyList<Type> systems

    GetSystemAttribute<T>(Type)

    Declaration
    protected static T GetSystemAttribute<T>(Type systemType)
        where T : Attribute
    Parameters
    Type Name Description
    Type systemType
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Initialize(String)

    Declaration
    public virtual bool Initialize(string defaultWorldName)
    Parameters
    Type Name Description
    String defaultWorldName
    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX