mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
13 lines
382 B
C#
13 lines
382 B
C#
using QSB.QuantumUNET;
|
|
|
|
namespace QSB.Player
|
|
{
|
|
public abstract class PlayerSyncObject : QSBNetworkBehaviour
|
|
{
|
|
public uint AttachedNetId => GetComponent<QSBNetworkIdentity>()?.NetId.Value ?? uint.MaxValue;
|
|
public uint PlayerId => this.GetPlayerOfObject();
|
|
public uint PreviousPlayerId { get; set; }
|
|
public PlayerInfo Player => QSBPlayerManager.GetPlayer(PlayerId);
|
|
}
|
|
}
|