Skip to main content
Version: 0.2.0

Class ClientRpcHandler

Namespace: ReadyM.Api.Multiplayer.RPC
Assembly: ReadyM.Api.Multiplayer.dll

Base class for a client-side RPC handler. Each class that defines RPC methods with [RpcEvent] attributes must inherit from this class.

public abstract class ClientRpcHandler : RpcBase, IHostedService, IDisposable

Inheritance​

object ← RpcBase ← ClientRpcHandler

Implements​

IHostedService, IDisposable

Inherited Members​

RpcBase.InitRpc(), RpcBase.DeInitRpc(), RpcBase.OnScopeStart(), RpcBase.Dispose(), RpcBase.RelayClient, RpcBase.Serializer, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors​

ClientRpcHandler()​

protected ClientRpcHandler()

Properties​

EventsCount​

Number of RPC events defined in this class. Generated by the source generator in derived classes.

protected abstract byte EventsCount { get; }

Property Value​

byte

Offset​

Event code offset assigned to this RPC class. Generated by the source generator in derived classes.

protected byte Offset { get; }

Property Value​

byte