Table of Contents

Class NetworkPlayer

Namespace
Netick
Assembly
Netick.dll

Represents a network player, which can be either a local player (representing this player) or a remote connection (representing a connected client)).

public abstract class NetworkPlayer
Inheritance
NetworkPlayer
Derived
Inherited Members

Fields

Engine

public readonly NetickEngine Engine

Field Value

NetickEngine

Properties

PlayerId

The networked index of this player.

Note: it returns -1 on the client for the local player when not connected to a server.

Note: the server player always has Id 0.

public NetworkPlayerId PlayerId { get; }

Property Value

NetworkPlayerId

PlayerObject

Use this to associate an object with this player. This is a local variable that is not synced.

[Obsolete("This will be removed in the future.")]
public object PlayerObject { get; set; }

Property Value

object

Methods

AddInterestBoxArea(NetickBounds, int)

public void AddInterestBoxArea(NetickBounds box, int layerIndex = 0)

Parameters

box NetickBounds
layerIndex int

AddInterestGroup(InterestManagementGroup)

public void AddInterestGroup(InterestManagementGroup group)

Parameters

group InterestManagementGroup

AddInterestGroup(int)

public void AddInterestGroup(int groupId)

Parameters

groupId int

ToString()

public override string ToString()

Returns

string