C# Class Pluton.Rust.Objects.Player

Inheritance: Entity
Show file Open project: Notulp/Pluton.Rust

Public Properties

Property Type Description
GameID ulong
SteamID string
firstLocations Vector3[]
worldSizeHalf float

Public Methods

Method Description
Ban ( string reason = "no reason" ) : void
ConsoleMessage ( string msg ) : void
Find ( string nameOrSteamidOrIP ) : Player
FindByGameID ( ulong steamID ) : Player
FindBySteamID ( string steamID ) : Player
GetLookBuildingPart ( float maxDist = 500f ) : BuildingPart
GetLookHit ( float maxDist = 500f, int layers = Physics.AllLayers ) : RaycastHit
GetLookPlayer ( float maxDist = 500f ) : Player
GetLookPoint ( float maxDist = 500f ) : Vector3
GroundTeleport ( Vector3 v3 ) : bool
GroundTeleport ( float x, float y, float z ) : bool
IsPlayer ( ) : bool
Kick ( string reason = "no reason" ) : void
Kill ( ) : void
MakeModerator ( string reason = "no reason" ) : void
MakeNone ( string reason = "no reason" ) : void
MakeOwner ( string reason = "no reason" ) : void
Message ( string msg ) : void
MessageFrom ( string from, string msg ) : void
Player ( BasePlayer player ) : System
Reject ( string reason = "no reason" ) : void
SendConsoleCommand ( string cmd ) : void
Teleport ( Vector3 v3 ) : bool
Teleport ( float x, float y, float z ) : bool

Private Methods

Method Description
OnPlayerDeserialized ( StreamingContext context ) : void

Method Details

Ban() public method

public Ban ( string reason = "no reason" ) : void
reason string
return void

ConsoleMessage() public method

public ConsoleMessage ( string msg ) : void
msg string
return void

Find() public static method

public static Find ( string nameOrSteamidOrIP ) : Player
nameOrSteamidOrIP string
return Player

FindByGameID() public static method

public static FindByGameID ( ulong steamID ) : Player
steamID ulong
return Player

FindBySteamID() public static method

public static FindBySteamID ( string steamID ) : Player
steamID string
return Player

GetLookBuildingPart() public method

public GetLookBuildingPart ( float maxDist = 500f ) : BuildingPart
maxDist float
return BuildingPart

GetLookHit() public method

public GetLookHit ( float maxDist = 500f, int layers = Physics.AllLayers ) : RaycastHit
maxDist float
layers int
return UnityEngine.RaycastHit

GetLookPlayer() public method

public GetLookPlayer ( float maxDist = 500f ) : Player
maxDist float
return Player

GetLookPoint() public method

public GetLookPoint ( float maxDist = 500f ) : Vector3
maxDist float
return Vector3

GroundTeleport() public method

public GroundTeleport ( Vector3 v3 ) : bool
v3 Vector3
return bool

GroundTeleport() public method

public GroundTeleport ( float x, float y, float z ) : bool
x float
y float
z float
return bool

IsPlayer() public method

public IsPlayer ( ) : bool
return bool

Kick() public method

public Kick ( string reason = "no reason" ) : void
reason string
return void

Kill() public method

public Kill ( ) : void
return void

MakeModerator() public method

public MakeModerator ( string reason = "no reason" ) : void
reason string
return void

MakeNone() public method

public MakeNone ( string reason = "no reason" ) : void
reason string
return void

MakeOwner() public method

public MakeOwner ( string reason = "no reason" ) : void
reason string
return void

Message() public method

public Message ( string msg ) : void
msg string
return void

MessageFrom() public method

public MessageFrom ( string from, string msg ) : void
from string
msg string
return void

Player() public method

public Player ( BasePlayer player ) : System
player BasePlayer
return System

Reject() public method

public Reject ( string reason = "no reason" ) : void
reason string
return void

SendConsoleCommand() public method

public SendConsoleCommand ( string cmd ) : void
cmd string
return void

Teleport() public method

public Teleport ( Vector3 v3 ) : bool
v3 Vector3
return bool

Teleport() public method

public Teleport ( float x, float y, float z ) : bool
x float
y float
z float
return bool

Property Details

GameID public property

public ulong GameID
return ulong

SteamID public property

public string SteamID
return string

firstLocations public static property

public static Vector3[] firstLocations
return Vector3[]

worldSizeHalf public static property

public static float worldSizeHalf
return float