Table of Contents

Struct ServerTickEvent

Namespace
Shard.Server.Modules
Assembly
Shard.Server.Modules.dll

Published on the event bus once per server tick. Modules subscribe via their IModuleContext.Events to run per-tick logic on the tick thread.

public readonly record struct ServerTickEvent : IEquatable<ServerTickEvent>
Implements
Inherited Members

Constructors

ServerTickEvent(float, long)

Published on the event bus once per server tick. Modules subscribe via their IModuleContext.Events to run per-tick logic on the tick thread.

public ServerTickEvent(float DeltaSeconds, long Tick)

Parameters

DeltaSeconds float

Measured time since the previous tick (variable; no catch-up).

Tick long

Monotonic tick counter.

Properties

DeltaSeconds

Measured time since the previous tick (variable; no catch-up).

public float DeltaSeconds { get; init; }

Property Value

float

Tick

Monotonic tick counter.

public long Tick { get; init; }

Property Value

long