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
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
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
Methods
AddInterestBoxArea(NetickBounds, int)
public void AddInterestBoxArea(NetickBounds box, int layerIndex = 0)
Parameters
boxNetickBoundslayerIndexint
AddInterestGroup(InterestManagementGroup)
public void AddInterestGroup(InterestManagementGroup group)
Parameters
groupInterestManagementGroup
AddInterestGroup(int)
public void AddInterestGroup(int groupId)
Parameters
groupIdint
ToString()
public override string ToString()