C# Class EssentialsPlugin.Utility.Communication

Mostrar archivo Open project: rexxar-tc/EssentialsPlugin

Public Methods

Method Description
BroadcastDataMessage ( DataMessageType messageType, byte data ) : void
BroadcastMessageParts ( byte data ) : void
Desegment ( byte packet ) : byte[]

Reassembles a segmented byte array.

DisableGMenu ( ulong steamId, string blockDef, bool subType, bool enable ) : void
DisplayDialog ( ulong steamId, ServerDialogItem messageItem ) : void
DisplayDialog ( ulong steamId, string header, string subheader, string content, string buttonText = "OK" ) : void
HandleAddConcealExempt ( byte data ) : void
MoveMessage ( ulong steamId, string moveType, Vector3D position ) : void
MoveMessage ( ulong steamId, string moveType, double x, double y, double z, long entityId ) : void
Notification ( ulong steamId, MyFontEnum color, int timeInSeconds, string message ) : void
ReceiveMessageParts ( byte data ) : void
Segment ( byte message ) : List

Segments a byte array.

SendDataMessage ( ulong steamId, DataMessageType messageType, byte data ) : void
SendFactionClientMessage ( ulong playerSteamId, string message ) : void
SendMessagePartsTo ( ulong steamId, byte data ) : void
SendPrivateInformation ( ulong playerId, string infoText, string from = null ) : void
SendPublicInformation ( string infoText ) : void
SendVoxelReset ( long entityId ) : void
WaypointMessage ( ServerWaypointItem serverItem ) : void
WaypointMessage ( WaypointItem item ) : void
WaypointMessage ( ulong userId, string waypointString ) : void

Method Details

BroadcastDataMessage() public static method

public static BroadcastDataMessage ( DataMessageType messageType, byte data ) : void
messageType DataMessageType
data byte
return void

BroadcastMessageParts() public static method

public static BroadcastMessageParts ( byte data ) : void
data byte
return void

Desegment() public static method

Reassembles a segmented byte array.
public static Desegment ( byte packet ) : byte[]
packet byte Array segment.
return byte[]

DisableGMenu() public static method

public static DisableGMenu ( ulong steamId, string blockDef, bool subType, bool enable ) : void
steamId ulong
blockDef string
subType bool
enable bool
return void

DisplayDialog() public static method

public static DisplayDialog ( ulong steamId, ServerDialogItem messageItem ) : void
steamId ulong
messageItem ServerDialogItem
return void

DisplayDialog() public static method

public static DisplayDialog ( ulong steamId, string header, string subheader, string content, string buttonText = "OK" ) : void
steamId ulong
header string
subheader string
content string
buttonText string
return void

HandleAddConcealExempt() public static method

public static HandleAddConcealExempt ( byte data ) : void
data byte
return void

MoveMessage() public static method

public static MoveMessage ( ulong steamId, string moveType, Vector3D position ) : void
steamId ulong
moveType string
position Vector3D
return void

MoveMessage() public static method

public static MoveMessage ( ulong steamId, string moveType, double x, double y, double z, long entityId ) : void
steamId ulong
moveType string
x double
y double
z double
entityId long
return void

Notification() public static method

public static Notification ( ulong steamId, MyFontEnum color, int timeInSeconds, string message ) : void
steamId ulong
color MyFontEnum
timeInSeconds int
message string
return void

ReceiveMessageParts() public static method

public static ReceiveMessageParts ( byte data ) : void
data byte
return void

Segment() public static method

Segments a byte array.
public static Segment ( byte message ) : List
message byte
return List

SendDataMessage() public static method

public static SendDataMessage ( ulong steamId, DataMessageType messageType, byte data ) : void
steamId ulong
messageType DataMessageType
data byte
return void

SendFactionClientMessage() public static method

public static SendFactionClientMessage ( ulong playerSteamId, string message ) : void
playerSteamId ulong
message string
return void

SendMessagePartsTo() public static method

public static SendMessagePartsTo ( ulong steamId, byte data ) : void
steamId ulong
data byte
return void

SendPrivateInformation() public static method

public static SendPrivateInformation ( ulong playerId, string infoText, string from = null ) : void
playerId ulong
infoText string
from string
return void

SendPublicInformation() public static method

public static SendPublicInformation ( string infoText ) : void
infoText string
return void

SendVoxelReset() public static method

public static SendVoxelReset ( long entityId ) : void
entityId long
return void

WaypointMessage() public static method

public static WaypointMessage ( ServerWaypointItem serverItem ) : void
serverItem ServerWaypointItem
return void

WaypointMessage() public static method

public static WaypointMessage ( WaypointItem item ) : void
item WaypointItem
return void

WaypointMessage() public static method

public static WaypointMessage ( ulong userId, string waypointString ) : void
userId ulong
waypointString string
return void