Table of Contents

Namespace SteamNetworkLib.Sync

Classes

ClientSyncVar<T>

A client-owned synchronized variable where each client can set their own value, and all values are visible to all lobby members via Steam member data.

CompositeValidator<T>

Validator that combines multiple validators with AND logic.

HostSyncVar<T>

A host-authoritative synchronized variable that automatically keeps its value in sync across all lobby members using Steam lobby data.

JsonSyncSerializer

Default JSON serializer for HostSyncVar<T> and ClientSyncVar<T>. Provides IL2CPP-compatible JSON serialization without external dependencies.

NetworkSyncOptions

Configuration options for HostSyncVar<T> and ClientSyncVar<T> behavior. All properties have sensible defaults for the simplest developer experience.

PredicateValidator<T>

Base class for simple validators using a predicate function.

RangeValidator<T>

Validator for numeric ranges.

SyncException

Exception thrown when a sync operation fails due to network or state issues.

SyncSerializationException

Exception thrown when serialization or deserialization fails in sync operations.

SyncValidationException

Exception thrown when value validation fails before sync.

Interfaces

ISyncSerializer

Interface for custom value serialization in HostSyncVar<T> and ClientSyncVar<T>.

ISyncValidator<T>

Interface for validating sync var values before they are synchronized.