跳到主要内容
版本:0.4.1

Class ModSystemBase

Namespace: ReadyM.Relay.Server.Sdk.Ecs.Systems
Assembly: ReadyM.Relay.Server.Sdk.dll

A base class for server-side mod systems that need to perform updates each tick. Inherit from this class and implement the UpdateTick) method to define your system's behavior.

public abstract class ModSystemBase

Inheritance​

object ← ModSystemBase

Inherited Members​

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

ModSystemBase()​

protected ModSystemBase()

Methods​

OnUpdate(UpdateTick)​

Called every tick to update the system. Implement this method in derived classes to define the system's behavior.

protected abstract void OnUpdate(ModSystemBase.UpdateTick tick)

Parameters​

tick ModSystemBase.UpdateTick

The current update tick information, including delta time and total time.

Update(float, float)​

Runs the system update for the current tick.

public void Update(float deltaTime, float time)

Parameters​

deltaTime float

Time since last tick, in seconds.

time float

Total time since server start, in seconds.