Search Results for

    Show / Hide Table of Contents

    Class NetworkPlayerProvider

    Provides the INetworkPlayer and its CustomProperties necessary for NetworkPropertySync<K, V> components.

    Inheritance
    object
    IdentifiableObject
    DependencyObject
    AttachableObject
    PrefabInstanceObject
    Component
    NetworkCustomPropertiesProvider
    NetworkPlayerProvider
    Implements
    IDependencyObject
    Inherited Members
    NetworkCustomPropertiesProvider.CustomProperties
    NetworkCustomPropertiesProvider.CustomPropertiesRefreshed
    NetworkCustomPropertiesProvider.Dispose()
    NetworkCustomPropertiesProvider.OnDetach()
    NetworkCustomPropertiesProvider.UpdateCustomPropertiesReference()
    NetworkCustomPropertiesProvider.CheckMultipleProvidersOfType<T>()
    Component.Owner
    Component.Managers
    Component.ShouldBeActivated
    Component.Clone()
    Component.Attach(Entity)
    Component.OnLoaded()
    Component.OnActivated()
    Component.Start()
    Component.OnDeactivated()
    Component.OnDestroy()
    PrefabInstanceObject.PrefabSource
    PrefabInstanceObject.RefreshPrefab(Prefab)
    PrefabInstanceObject.PrefabElementId
    PrefabInstanceObject.IsPrefabInstance
    PrefabInstanceObject.IsMissingPrefabSource
    AttachableObject.AttachableStateChanged
    AttachableObject.IsEnabled
    AttachableObject.State
    AttachableObject.IsLoaded
    AttachableObject.IsAttached
    AttachableObject.IsActivated
    AttachableObject.IsStarted
    AttachableObject.IsDestroyed
    AttachableObject.Destroy()
    AttachableObject.DependencyBroken()
    DependencyObject.Dependencies
    DependencyObject.OnDependencyRemoved
    IdentifiableObject.Id
    IdentifiableObject.IdHasChanged(Guid)
    Namespace: Evergine.Networking.Components
    Assembly: Evergine.Networking.dll
    Syntax
    public class NetworkPlayerProvider : NetworkCustomPropertiesProvider, IDependencyObject

    Constructors

    NetworkPlayerProvider()

    Initializes a new instance of the NetworkPlayerProvider class.

    Declaration
    public NetworkPlayerProvider()

    Properties

    Player

    Gets the target player.

    Declaration
    public INetworkPlayer Player { get; }
    Property Value
    Type Description
    INetworkPlayer

    PlayerId

    Gets or sets the identifier of the target player. If set to -1, the target will be the local player.

    Declaration
    [RenderPropertyAsInput(MinLimit = -1, Tooltip = "The identifier of the target player. If set to -1 the target will be the local player")]
    public int PlayerId { get; set; }
    Property Value
    Type Description
    int

    Methods

    GetCustomProperties(MatchmakingClientService)

    Gets the NetworkPropertiesTable instance.

    Declaration
    protected override NetworkPropertiesTable GetCustomProperties(MatchmakingClientService matchmakingClientService)
    Parameters
    Type Name Description
    MatchmakingClientService matchmakingClientService

    The MatchmakingClientService reference.

    Returns
    Type Description
    NetworkPropertiesTable

    The NetworkPropertiesTable instance.

    Overrides
    NetworkCustomPropertiesProvider.GetCustomProperties(MatchmakingClientService)

    OnAttached()

    Invoked when the object is attached to the system.

    Declaration
    protected override bool OnAttached()
    Returns
    Type Description
    bool

    True if everything is OK.

    Overrides
    NetworkCustomPropertiesProvider.OnAttached()

    Events

    PlayerRefreshed

    Occurs when the Player property is changed. The previous player is received as a parameter.

    Declaration
    public event EventHandler<INetworkPlayer> PlayerRefreshed
    Event Type
    Type Description
    EventHandler<INetworkPlayer>

    Implements

    IDependencyObject

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX