C# Класс Pluton.Player

Наследование: Entity
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
GameID ulong
SteamID string
firstLocations Vector3[]
worldSizeHalf float

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
OnPlayerDeserialized ( StreamingContext context ) : void

Описание методов

Ban() публичный Метод

public Ban ( string reason = "no reason" ) : void
reason string
Результат void

ConsoleMessage() публичный Метод

public ConsoleMessage ( string msg ) : void
msg string
Результат void

Find() публичный статический Метод

public static Find ( string nameOrSteamidOrIP ) : Player
nameOrSteamidOrIP string
Результат Player

FindByGameID() публичный статический Метод

public static FindByGameID ( ulong steamID ) : Player
steamID ulong
Результат Player

FindBySteamID() публичный статический Метод

public static FindBySteamID ( string steamID ) : Player
steamID string
Результат Player

GetLookBuildingPart() публичный Метод

public GetLookBuildingPart ( float maxDist = 500f ) : BuildingPart
maxDist float
Результат BuildingPart

GetLookHit() публичный Метод

public GetLookHit ( float maxDist = 500f, int layers = Physics.AllLayers ) : RaycastHit
maxDist float
layers int
Результат UnityEngine.RaycastHit

GetLookPlayer() публичный Метод

public GetLookPlayer ( float maxDist = 500f ) : Player
maxDist float
Результат Player

GetLookPoint() публичный Метод

public GetLookPoint ( float maxDist = 500f ) : Vector3
maxDist float
Результат Vector3

GroundTeleport() публичный Метод

public GroundTeleport ( Vector3 v3 ) : bool
v3 Vector3
Результат bool

GroundTeleport() публичный Метод

public GroundTeleport ( float x, float y, float z ) : bool
x float
y float
z float
Результат bool

IsPlayer() публичный Метод

public IsPlayer ( ) : bool
Результат bool

Kick() публичный Метод

public Kick ( string reason = "no reason" ) : void
reason string
Результат void

Kill() публичный Метод

public Kill ( ) : void
Результат void

KnownBlueprints() публичный Метод

public KnownBlueprints ( ) : List
Результат List

KnowsBlueprint() публичный Метод

public KnowsBlueprint ( ItemBlueprint itembp ) : bool
itembp ItemBlueprint
Результат bool

KnowsBlueprint() публичный Метод

public KnowsBlueprint ( ItemDefinition itemdef ) : bool
itemdef ItemDefinition
Результат bool

KnowsBlueprint() публичный Метод

public KnowsBlueprint ( int itemID ) : bool
itemID int
Результат bool

KnowsBlueprints() публичный Метод

public KnowsBlueprints ( IEnumerable itemBPs ) : bool>.Dictionary
itemBPs IEnumerable
Результат bool>.Dictionary

KnowsBlueprints() публичный Метод

public KnowsBlueprints ( IEnumerable itemdefs ) : bool>.Dictionary
itemdefs IEnumerable
Результат bool>.Dictionary

KnowsBlueprints() публичный Метод

public KnowsBlueprints ( IEnumerable itemIDs ) : bool>.Dictionary
itemIDs IEnumerable
Результат bool>.Dictionary

LearnBlueprint() публичный Метод

public LearnBlueprint ( ItemBlueprint itembp ) : bool
itembp ItemBlueprint
Результат bool

LearnBlueprint() публичный Метод

public LearnBlueprint ( ItemDefinition itemdef ) : bool
itemdef ItemDefinition
Результат bool

LearnBlueprint() публичный Метод

public LearnBlueprint ( int itemID ) : bool
itemID int
Результат bool

LearnBlueprints() публичный Метод

public LearnBlueprints ( IEnumerable itembps ) : void
itembps IEnumerable
Результат void

LearnBlueprints() публичный Метод

public LearnBlueprints ( IEnumerable itemdefs ) : void
itemdefs IEnumerable
Результат void

LearnBlueprints() публичный Метод

public LearnBlueprints ( IEnumerable itemIDs ) : void
itemIDs IEnumerable
Результат void

MakeModerator() публичный Метод

public MakeModerator ( string reason = "no reason" ) : void
reason string
Результат void

MakeNone() публичный Метод

public MakeNone ( string reason = "no reason" ) : void
reason string
Результат void

MakeOwner() публичный Метод

public MakeOwner ( string reason = "no reason" ) : void
reason string
Результат void

Message() публичный Метод

public Message ( string msg ) : void
msg string
Результат void

MessageFrom() публичный Метод

public MessageFrom ( string from, string msg ) : void
from string
msg string
Результат void

Player() публичный Метод

public Player ( BasePlayer player ) : System
player BasePlayer
Результат System

Reject() публичный Метод

public Reject ( string reason = "no reason" ) : void
reason string
Результат void

SendConsoleCommand() публичный Метод

public SendConsoleCommand ( string cmd ) : void
cmd string
Результат void

Teleport() публичный Метод

public Teleport ( Vector3 v3 ) : bool
v3 Vector3
Результат bool

Teleport() публичный Метод

public Teleport ( float x, float y, float z ) : bool
x float
y float
z float
Результат bool

Описание свойств

GameID публичное свойство

public ulong GameID
Результат ulong

SteamID публичное свойство

public string SteamID
Результат string

firstLocations публичное статическое свойство

public static Vector3[] firstLocations
Результат Vector3[]

worldSizeHalf публичное статическое свойство

public static float worldSizeHalf
Результат float