Module

Namespace: uMod

Assembly: uMod.Core.dll

Inheritance Object Module

Implements IModule

Summary

Responsible for core uMod logic

Constructors

Name

Summary

Module (NativeDebugCallback)

Creates a new instance of the uMod class

Fields

Name

Summary

CommandLine

The command line

Dispatcher

Properties

Name

Summary

AppDirectory

Gets the application directory

Application

uMod Service Container

Auth

ConfigDirectory

Gets the configuration directory

Database

DataDirectory

Gets the data directory

ExtensionDirectory

Gets the extension directory

Extensions

GameEngine

Gets the current game engine

InstanceDirectory

Gets the instance directory

IsShuttingDown

This is true if the server is shutting down

IsTesting

Determines whether or not module is in testing mode

LangDirectory

Gets the lang directory

Libraries

LogDirectory

Gets the log directory

Logging

Now

Gets the number of seconds since the server started

OnLoaded

Represents loaded event after loading completed

OnLoggingInitialized

Represents logging initialization event

PluginDirectory

Gets the plugin directory

Plugins

RootDirectory

Gets the root directory

RootLogger

Gets the main logger

Server

Gets the universal server

Strings

Gets the core locale provider

Telemetry

TestDirectory

Gets the test directory

Web

Methods

Name

Summary

CallDeprecatedHook (String, String, DateTime, Object[])

Calls a deprecated hook and prints a warning

CallDeprecatedHook (IHookName, IHookName, DateTime, Object[], IEventArgs)

Calls a deprecated hook and prints a warning

CallHook (String, Object[])

Calls a hook

GetStrings (String)

Gets the core locale provider for the specified language

GetStrings (IPlayer)

Get the core locale provider for the specified player

Load (IInitializationInfo)

LogDebug (String, Object[])

Logs a formatted debug message to the root logger

LogError (String, Object[])

Logs a formatted error message to the root logger

LogException (String, Exception)

Logs an exception to the root logger

LogInfo (String, Object[])

Logs a formatted info message to the root logger

LogWarning (String, Object[])

Logs a formatted warning message to the root logger

NextTick (Action)

Queues a callback to be called in the next server frame

OnFrame (Action<Single>)

Registers a callback which will be called every server frame

OnFrame (Single)

OnSave ()

Called when the server is saving

OnShutdown ()

Called when the server is shutting down

RegisterEngineClock (Func<Single>)

Called by an engine-specific extension to register the engine clock

Static Fields

Name

Summary

Version

The current uMod version