C# Class Pluton.Player

Inheritance: Entity
Afficher le fichier Open project: Notulp/Pluton Class Usage Examples

Méthodes publiques

Свойство Type Description
GameID ulong
SteamID string
firstLocations Vector3[]
worldSizeHalf float

Méthodes publiques

Méthode 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

Méthode Description
OnPlayerDeserialized ( StreamingContext context ) : void

Method Details

Ban() public méthode

public Ban ( string reason = "no reason" ) : void
reason string
Résultat void

ConsoleMessage() public méthode

public ConsoleMessage ( string msg ) : void
msg string
Résultat void

Find() public static méthode

public static Find ( string nameOrSteamidOrIP ) : Player
nameOrSteamidOrIP string
Résultat Player

FindByGameID() public static méthode

public static FindByGameID ( ulong steamID ) : Player
steamID ulong
Résultat Player

FindBySteamID() public static méthode

public static FindBySteamID ( string steamID ) : Player
steamID string
Résultat Player

GetLookBuildingPart() public méthode

public GetLookBuildingPart ( float maxDist = 500f ) : BuildingPart
maxDist float
Résultat BuildingPart

GetLookHit() public méthode

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

GetLookPlayer() public méthode

public GetLookPlayer ( float maxDist = 500f ) : Player
maxDist float
Résultat Player

GetLookPoint() public méthode

public GetLookPoint ( float maxDist = 500f ) : Vector3
maxDist float
Résultat Vector3

GroundTeleport() public méthode

public GroundTeleport ( Vector3 v3 ) : bool
v3 Vector3
Résultat bool

GroundTeleport() public méthode

public GroundTeleport ( float x, float y, float z ) : bool
x float
y float
z float
Résultat bool

IsPlayer() public méthode

public IsPlayer ( ) : bool
Résultat bool

Kick() public méthode

public Kick ( string reason = "no reason" ) : void
reason string
Résultat void

Kill() public méthode

public Kill ( ) : void
Résultat void

KnownBlueprints() public méthode

public KnownBlueprints ( ) : List
Résultat List

KnowsBlueprint() public méthode

public KnowsBlueprint ( ItemBlueprint itembp ) : bool
itembp ItemBlueprint
Résultat bool

KnowsBlueprint() public méthode

public KnowsBlueprint ( ItemDefinition itemdef ) : bool
itemdef ItemDefinition
Résultat bool

KnowsBlueprint() public méthode

public KnowsBlueprint ( int itemID ) : bool
itemID int
Résultat bool

KnowsBlueprints() public méthode

public KnowsBlueprints ( IEnumerable itemBPs ) : bool>.Dictionary
itemBPs IEnumerable
Résultat bool>.Dictionary

KnowsBlueprints() public méthode

public KnowsBlueprints ( IEnumerable itemdefs ) : bool>.Dictionary
itemdefs IEnumerable
Résultat bool>.Dictionary

KnowsBlueprints() public méthode

public KnowsBlueprints ( IEnumerable itemIDs ) : bool>.Dictionary
itemIDs IEnumerable
Résultat bool>.Dictionary

LearnBlueprint() public méthode

public LearnBlueprint ( ItemBlueprint itembp ) : bool
itembp ItemBlueprint
Résultat bool

LearnBlueprint() public méthode

public LearnBlueprint ( ItemDefinition itemdef ) : bool
itemdef ItemDefinition
Résultat bool

LearnBlueprint() public méthode

public LearnBlueprint ( int itemID ) : bool
itemID int
Résultat bool

LearnBlueprints() public méthode

public LearnBlueprints ( IEnumerable itembps ) : void
itembps IEnumerable
Résultat void

LearnBlueprints() public méthode

public LearnBlueprints ( IEnumerable itemdefs ) : void
itemdefs IEnumerable
Résultat void

LearnBlueprints() public méthode

public LearnBlueprints ( IEnumerable itemIDs ) : void
itemIDs IEnumerable
Résultat void

MakeModerator() public méthode

public MakeModerator ( string reason = "no reason" ) : void
reason string
Résultat void

MakeNone() public méthode

public MakeNone ( string reason = "no reason" ) : void
reason string
Résultat void

MakeOwner() public méthode

public MakeOwner ( string reason = "no reason" ) : void
reason string
Résultat void

Message() public méthode

public Message ( string msg ) : void
msg string
Résultat void

MessageFrom() public méthode

public MessageFrom ( string from, string msg ) : void
from string
msg string
Résultat void

Player() public méthode

public Player ( BasePlayer player ) : System
player BasePlayer
Résultat System

Reject() public méthode

public Reject ( string reason = "no reason" ) : void
reason string
Résultat void

SendConsoleCommand() public méthode

public SendConsoleCommand ( string cmd ) : void
cmd string
Résultat void

Teleport() public méthode

public Teleport ( Vector3 v3 ) : bool
v3 Vector3
Résultat bool

Teleport() public méthode

public Teleport ( float x, float y, float z ) : bool
x float
y float
z float
Résultat bool

Property Details

GameID public_oe property

public ulong GameID
Résultat ulong

SteamID public_oe property

public string SteamID
Résultat string

firstLocations public_oe static_oe property

public static Vector3[] firstLocations
Résultat Vector3[]

worldSizeHalf public_oe static_oe property

public static float worldSizeHalf
Résultat float