跳到主要内容
版本:Next

Class SynchronizationApiExtensions

Namespace: ReadyM.Sdk.Common.Entities
Assembly: ReadyM.Sdk.Common.dll

public static class SynchronizationApiExtensions

Inheritance

objectSynchronizationApiExtensions

Inherited Members

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

Methods

RequireLocalPlayer<T>(ISynchronizationApi<T>)

public static T RequireLocalPlayer<T>(this ISynchronizationApi<T> api) where T : struct

Parameters

api ISynchronizationApi<T>

Returns

T

Type Parameters

T

TryGetLocalPlayer<T>(ISynchronizationApi<T>, out T)

public static bool TryGetLocalPlayer<T>(this ISynchronizationApi<T> api, out T player) where T : struct

Parameters

api ISynchronizationApi<T>

player T

Returns

bool

Type Parameters

T

  • Methods
    • RequireLocalPlayer<T>(ISynchronizationApi<T>)
    • TryGetLocalPlayer<T>(ISynchronizationApi<T>, out T)