C# Class CEngineSharp_Server.World.Content_Managers.PlayerManager

显示文件 Open project: JohnLamontagne/CEngineSharp Class Usage Examples

Public Methods

Method Description
AddPlayer ( Player player, long playerIndex ) : void
GetPlayer ( long playerIndex ) : Player
GetPlayer ( string playerName ) : Player
GetPlayers ( ) : CEngineSharp_Server.World.Entities.Player[]
LoadPlayer ( string filePath ) : Player
LoginPlayer ( long playerIndex ) : bool
PlayerManager ( ) : System
RegisterPlayer ( Player player ) : bool
RemovePlayer ( Player player ) : void
RemovePlayer ( long playerIndex ) : void
SavePlayers ( ) : void

Private Methods

Method Description
AppendPlayerName ( string name ) : void
AuthenticateLogin ( Player player ) : bool
AuthenticateRegistration ( string playerName, string playerPass ) : bool
CheckName ( string name ) : bool
Connection_Received ( object sender, Networking e ) : void
HandleChatMessage ( PacketReceivedEventArgs args ) : void
HandleDropItem ( PacketReceivedEventArgs args ) : void
HandleMapCheck ( PacketReceivedEventArgs args ) : void
HandlePickupItem ( PacketReceivedEventArgs args ) : void
HandlePlayerLogin ( PacketReceivedEventArgs args ) : void
HandlePlayerMovement ( PacketReceivedEventArgs args ) : void
HandlePlayerRegister ( PacketReceivedEventArgs args ) : void

Method Details

AddPlayer() public method

public AddPlayer ( Player player, long playerIndex ) : void
player CEngineSharp_Server.World.Entities.Player
playerIndex long
return void

GetPlayer() public method

public GetPlayer ( long playerIndex ) : Player
playerIndex long
return CEngineSharp_Server.World.Entities.Player

GetPlayer() public method

public GetPlayer ( string playerName ) : Player
playerName string
return CEngineSharp_Server.World.Entities.Player

GetPlayers() public method

public GetPlayers ( ) : CEngineSharp_Server.World.Entities.Player[]
return CEngineSharp_Server.World.Entities.Player[]

LoadPlayer() public method

public LoadPlayer ( string filePath ) : Player
filePath string
return CEngineSharp_Server.World.Entities.Player

LoginPlayer() public method

public LoginPlayer ( long playerIndex ) : bool
playerIndex long
return bool

PlayerManager() public method

public PlayerManager ( ) : System
return System

RegisterPlayer() public method

public RegisterPlayer ( Player player ) : bool
player CEngineSharp_Server.World.Entities.Player
return bool

RemovePlayer() public method

public RemovePlayer ( Player player ) : void
player CEngineSharp_Server.World.Entities.Player
return void

RemovePlayer() public method

public RemovePlayer ( long playerIndex ) : void
playerIndex long
return void

SavePlayers() public method

public SavePlayers ( ) : void
return void