Skip to content

VinTest.GametestModsystemBase

VinTest

GametestModsystemBase Class

Base class for ModSystem in your test mod.

public abstract class GametestModsystemBase

Inheritance ModSystem → GametestModsystemBase

Properties

GametestModsystemBase.SApi Property

Server API, initialized upon StartServerSide().

protected ICoreServerAPI SApi { protected get; }

Property Value

ICoreServerAPI

GametestModsystemBase.StartupDelayMs Property

Delay between player joining and first testsuite starting. Customize this if your test world needs more time to load.

protected virtual int StartupDelayMs { protected get; }

Property Value

Int32

Methods

GametestModsystemBase.CreateSuites(IServerPlayer) Method

Factory method to create the set of test suites to run. You are required to implement this, returning a collection of your suite implementations.

protected abstract object[] CreateSuites(IServerPlayer player);

Parameters

player IServerPlayer

The joining player.

Returns

Object[]
An array of test suites.

GametestModsystemBase.OnManualModeReady(IServerPlayer) Method

Called instead of running tests when ManualMode is enabled in config. Override to perform any custom initialization or register debug commands.

protected virtual void OnManualModeReady(IServerPlayer player);

Parameters

player IServerPlayer

The joining player.