C# Class ManicDigger.NetworkClientMinecraft

Inheritance: INetworkClient
Afficher le fichier Open project: henon/manic_digger Class Usage Examples

Méthodes publiques

Свойство Type Description
ENABLE_CHATLOG bool
ENABLE_FORTRESS bool
LocalPlayerId int
gamepathlogs string
mapreceivedsizex int
mapreceivedsizey int
mapreceivedsizez int
receivedMapStream System.IO.MemoryStream

Méthodes publiques

Méthode Description
Connect ( string serverAddress, int port, string username, string auth ) : void
ConnectedPlayers ( ) : IEnumerable
Disconnect ( ) : void
Dispose ( ) : void
Process ( ) : void

This function should be called in program main loop. It exits immediately.

SendChat ( string s ) : void
SendPacket ( byte packet ) : void
SendPosition ( Vector3 position, Vector3 orientation ) : void
SendSetBlock ( Vector3 position, BlockSetMode mode, int type, int materialslot ) : void

Private Methods

Méthode Description
ChatLog ( string p ) : void
CreateLoginPacket ( string username, string verificationKey ) : byte[]
InvalidPlayerWarning ( byte playerid ) : void
InvokeMapLoadingProgress ( int progressPercent, int progressBytes ) : void
MakeValidFileName ( string name ) : string
ReadAndUpdatePlayerPosition ( BinaryReader br, byte playerid ) : void
TryReadPacket ( ) : int
UpdatePositionDiff ( byte playerid, Vector3 v ) : void

Method Details

Connect() public méthode

public Connect ( string serverAddress, int port, string username, string auth ) : void
serverAddress string
port int
username string
auth string
Résultat void

ConnectedPlayers() public méthode

public ConnectedPlayers ( ) : IEnumerable
Résultat IEnumerable

Disconnect() public méthode

public Disconnect ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Process() public méthode

This function should be called in program main loop. It exits immediately.
public Process ( ) : void
Résultat void

SendChat() public méthode

public SendChat ( string s ) : void
s string
Résultat void

SendPacket() public méthode

public SendPacket ( byte packet ) : void
packet byte
Résultat void

SendPosition() public méthode

public SendPosition ( Vector3 position, Vector3 orientation ) : void
position Vector3
orientation Vector3
Résultat void

SendSetBlock() public méthode

public SendSetBlock ( Vector3 position, BlockSetMode mode, int type, int materialslot ) : void
position Vector3
mode BlockSetMode
type int
materialslot int
Résultat void

Property Details

ENABLE_CHATLOG public_oe property

public bool ENABLE_CHATLOG
Résultat bool

ENABLE_FORTRESS public_oe property

public bool ENABLE_FORTRESS
Résultat bool

LocalPlayerId public_oe property

public int LocalPlayerId
Résultat int

gamepathlogs public_oe property

public string gamepathlogs
Résultat string

mapreceivedsizex public_oe property

public int mapreceivedsizex
Résultat int

mapreceivedsizey public_oe property

public int mapreceivedsizey
Résultat int

mapreceivedsizez public_oe property

public int mapreceivedsizez
Résultat int

receivedMapStream public_oe property

public MemoryStream,System.IO receivedMapStream
Résultat System.IO.MemoryStream