C# Class Pluton.Player

Inheritance: Entity
Mostrar archivo Open project: Notulp/Pluton Class Usage Examples

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
KnownBlueprints ( ) : List
KnowsBlueprint ( ItemBlueprint itembp ) : bool
KnowsBlueprint ( ItemDefinition itemdef ) : bool
KnowsBlueprint ( int itemID ) : bool
KnowsBlueprints ( IEnumerable itemBPs ) : bool>.Dictionary
KnowsBlueprints ( IEnumerable itemdefs ) : bool>.Dictionary
KnowsBlueprints ( IEnumerable itemIDs ) : bool>.Dictionary
LearnBlueprint ( ItemBlueprint itembp ) : bool
LearnBlueprint ( ItemDefinition itemdef ) : bool
LearnBlueprint ( int itemID ) : bool
LearnBlueprints ( IEnumerable itembps ) : void
LearnBlueprints ( IEnumerable itemdefs ) : void
LearnBlueprints ( IEnumerable itemIDs ) : 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

KnownBlueprints() public method

public KnownBlueprints ( ) : List
return List

KnowsBlueprint() public method

public KnowsBlueprint ( ItemBlueprint itembp ) : bool
itembp ItemBlueprint
return bool

KnowsBlueprint() public method

public KnowsBlueprint ( ItemDefinition itemdef ) : bool
itemdef ItemDefinition
return bool

KnowsBlueprint() public method

public KnowsBlueprint ( int itemID ) : bool
itemID int
return bool

KnowsBlueprints() public method

public KnowsBlueprints ( IEnumerable itemBPs ) : bool>.Dictionary
itemBPs IEnumerable
return bool>.Dictionary

KnowsBlueprints() public method

public KnowsBlueprints ( IEnumerable itemdefs ) : bool>.Dictionary
itemdefs IEnumerable
return bool>.Dictionary

KnowsBlueprints() public method

public KnowsBlueprints ( IEnumerable itemIDs ) : bool>.Dictionary
itemIDs IEnumerable
return bool>.Dictionary

LearnBlueprint() public method

public LearnBlueprint ( ItemBlueprint itembp ) : bool
itembp ItemBlueprint
return bool

LearnBlueprint() public method

public LearnBlueprint ( ItemDefinition itemdef ) : bool
itemdef ItemDefinition
return bool

LearnBlueprint() public method

public LearnBlueprint ( int itemID ) : bool
itemID int
return bool

LearnBlueprints() public method

public LearnBlueprints ( IEnumerable itembps ) : void
itembps IEnumerable
return void

LearnBlueprints() public method

public LearnBlueprints ( IEnumerable itemdefs ) : void
itemdefs IEnumerable
return void

LearnBlueprints() public method

public LearnBlueprints ( IEnumerable itemIDs ) : void
itemIDs IEnumerable
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_oe property

public ulong GameID
return ulong

SteamID public_oe property

public string SteamID
return string

firstLocations public_oe static_oe property

public static Vector3[] firstLocations
return Vector3[]

worldSizeHalf public_oe static_oe property

public static float worldSizeHalf
return float