Show / Hide Table of Contents

Class DuneServer

A toolbox class to access DuneNet's server functionality.

Inheritance
System.Object
DuneServer
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.Server
Assembly: DuneNet.Server.dll
Syntax
public class DuneServer

Properties

EntityController

The server EntityController.

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

EventController

The server EventController.

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

NetworkController

The server 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 server 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 server 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.