Show / Hide Table of Contents

Class DuneClient

A toolbox class to access DuneNet's client functionality.

Inheritance
System.Object
DuneClient
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: DuneNet.Client
Assembly: DuneNet.Client.dll
Syntax
public class DuneClient

Properties

EntityController

The client EntityController.

Declaration
public static EntityController EntityController { get; }
Property Value
Type Description
EntityController

EventController

The client EventController.

Declaration
public static EventController EventController { get; }
Property Value
Type Description
EventController

NetworkController

The client NetworkController.

Declaration
public static NetworkController NetworkController { get; }
Property Value
Type Description
NetworkController

Methods

GetModule<T>()

Returns the specified module type from the client module chain.

Declaration
public static T GetModule<T>()
    where T : DuneModule
Returns
Type Description
T

The requested module if a match was found, null otherwise.

Type Parameters
Name Description
T

The type of the module to obtain.

Remarks

Since only one instance of each module type is allowed to be registered at the same time, this will only return a single result.

StopUsing(DuneModule)

Removes a DuneModule from the client module chain.

Declaration
public static void StopUsing(DuneModule module)
Parameters
Type Name Description
DuneModule module

The module to remove from the module chain.

Remarks

When a module is removed, the next module to the one being removed is chained to the previous one.

Use(DuneModule)

Adds a DuneModule to the client module chain.

Declaration
public static void Use(DuneModule module)
Parameters
Type Name Description
DuneModule module

The module to add to the module chain.

Remarks

Only one instance of each module type is allowed to be registered at the same time. Modules are chained in the order they are added.

Back to top Copyright © 2018 Dune Interactive.