Свойство | Тип | Описание | |
---|---|---|---|
clientID | int | ||
encoder | UnicodeEncoding | ||
endSession | bool | ||
handshakeCompleted | bool | ||
inactiveShipsPerUpdate | byte | ||
intentionalConnectionEnd | bool | ||
lastTCPMessageSendTime | long | ||
lastUDPAckReceiveTime | long | ||
lastUDPMessageSendTime | long | ||
quitHelperMessageShow | bool | ||
screenshotInterval | int | ||
screenshotSettings | ScreenshotSettings | ||
tcpClient | TcpClient | ||
udpConnected | bool | ||
udpSocket | Socket | ||
updateInterval | int |
Свойство | Тип | Описание | |
---|---|---|---|
cachedScreenshots | List |
||
clientDataLock | object | ||
currentGameTitle | String | ||
currentMessageData | byte[] | ||
currentMessageDataIndex | int | ||
currentMessageHeader | byte[] | ||
currentMessageHeaderIndex | int | ||
currentMessageID | KLFCommon.ServerMessageID | ||
lastClientDataChangeTime | long | ||
lastClientDataWriteTime | long | ||
lastScreenshotShareTime | long | ||
pingStopwatch | Stopwatch | ||
queuedOutScreenshot | byte[] | ||
receiveBuffer | byte[] | ||
receiveHandleIndex | int | ||
receiveIndex | int | ||
screenshotOutLock | object | ||
serverSettingsLock | object | ||
stopwatch | Stopwatch | ||
tcpSendLock | object | ||
threadExceptionLock | object | ||
udpTimestampLock | object | ||
watchPlayerIndex | int | ||
watchPlayerName | String |
Метод | Описание | |
---|---|---|
Client ( ) : System | ||
connectToServer ( ClientSettings settings ) : bool | ||
endConnection ( ) : void | ||
throttledShareScreenshots ( ) : void |
Метод | Описание | |
---|---|---|
asyncReceive ( IAsyncResult result ) : void | ||
beginAsyncRead ( ) : void | ||
buildMessageByteArray ( KLFCommon id, byte data, byte prefix = null ) : byte[] | ||
cacheScreenshot ( Screenshot screenshot ) : void | ||
clearConnectionState ( ) : void | ||
connectionEnded ( ) : void | ||
connectionStarted ( ) : void | ||
encodeInteropMessage ( int id, byte data ) : byte[] | ||
enqueuePluginChatMessage ( String message, bool print = false ) : void | ||
enqueueTextMessage ( InTextMessage message, bool to_plugin = true ) : void | ||
enqueueTextMessage ( String message, bool from_server = false, bool to_plugin = true ) : void | ||
findCraftFilename ( String craft_name, byte &craft_type ) : String | ||
getCachedScreenshot ( int index, string player ) : Screenshot | ||
getCraftFilename ( String craft_name, byte craft_type ) : String | ||
handleChatInput ( String line ) : void | ||
handleConnection ( ) : void | ||
handleInteropMessage ( KLFCommon id, byte data ) : void | ||
handleInteropMessage ( int id, byte data ) : void | ||
handleMessage ( KLFCommon id, byte data ) : void | ||
handleReceive ( ) : void | ||
messageReceived ( KLFCommon id, byte data ) : void | ||
safeDelete ( String filename ) : void | ||
sendClientInteropMessage ( KLFCommon id, byte data ) : void | ||
sendConnectionEndMessage ( String message ) : void | ||
sendHandshakeMessage ( ) : void | ||
sendMessageTCP ( KLFCommon id, byte data ) : void | ||
sendMessageUDP ( KLFCommon id, byte data ) : void | ||
sendPluginUpdate ( byte data, bool primary ) : void | ||
sendScreenshotWatchPlayerMessage ( bool send_screenshot, int current_index, int index, String name ) : void | ||
sendShareCraftMessage ( String craft_name, byte data, byte type ) : void | ||
sendShareScreenshotMesssage ( byte data ) : void | ||
sendTextMessage ( String message ) : void | ||
sendUDPProbeMessage ( ) : void | ||
writeClientData ( ) : void |
protected asyncReceive ( IAsyncResult result ) : void | ||
result | IAsyncResult | |
Результат | void |
protected buildMessageByteArray ( KLFCommon id, byte data, byte prefix = null ) : byte[] | ||
id | KLFCommon | |
data | byte | |
prefix | byte | |
Результат | byte[] |
protected cacheScreenshot ( Screenshot screenshot ) : void | ||
screenshot | Screenshot | |
Результат | void |
public connectToServer ( ClientSettings settings ) : bool | ||
settings | ClientSettings | |
Результат | bool |
protected encodeInteropMessage ( int id, byte data ) : byte[] | ||
id | int | |
data | byte | |
Результат | byte[] |
protected enqueuePluginChatMessage ( String message, bool print = false ) : void | ||
message | String | |
bool | ||
Результат | void |
protected enqueueTextMessage ( InTextMessage message, bool to_plugin = true ) : void | ||
message | InTextMessage | |
to_plugin | bool | |
Результат | void |
protected enqueueTextMessage ( String message, bool from_server = false, bool to_plugin = true ) : void | ||
message | String | |
from_server | bool | |
to_plugin | bool | |
Результат | void |
protected findCraftFilename ( String craft_name, byte &craft_type ) : String | ||
craft_name | String | |
craft_type | byte | |
Результат | String |
protected getCachedScreenshot ( int index, string player ) : Screenshot | ||
index | int | |
player | string | |
Результат | Screenshot |
protected getCraftFilename ( String craft_name, byte craft_type ) : String | ||
craft_name | String | |
craft_type | byte | |
Результат | String |
protected handleChatInput ( String line ) : void | ||
line | String | |
Результат | void |
protected handleInteropMessage ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
Результат | void |
protected handleInteropMessage ( int id, byte data ) : void | ||
id | int | |
data | byte | |
Результат | void |
protected handleMessage ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
Результат | void |
protected abstract messageReceived ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
Результат | void |
protected safeDelete ( String filename ) : void | ||
filename | String | |
Результат | void |
protected abstract sendClientInteropMessage ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
Результат | void |
protected sendConnectionEndMessage ( String message ) : void | ||
message | String | |
Результат | void |
protected sendMessageTCP ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
Результат | void |
protected sendMessageUDP ( KLFCommon id, byte data ) : void | ||
id | KLFCommon | |
data | byte | |
Результат | void |
protected sendPluginUpdate ( byte data, bool primary ) : void | ||
data | byte | |
primary | bool | |
Результат | void |
protected sendScreenshotWatchPlayerMessage ( bool send_screenshot, int current_index, int index, String name ) : void | ||
send_screenshot | bool | |
current_index | int | |
index | int | |
name | String | |
Результат | void |
protected sendShareCraftMessage ( String craft_name, byte data, byte type ) : void | ||
craft_name | String | |
data | byte | |
type | byte | |
Результат | void |
protected sendShareScreenshotMesssage ( byte data ) : void | ||
data | byte | |
Результат | void |
protected sendTextMessage ( String message ) : void | ||
message | String | |
Результат | void |
public throttledShareScreenshots ( ) : void | ||
Результат | void |
protected KLFCommon.ServerMessageID currentMessageID | ||
Результат | KLFCommon.ServerMessageID |
public static UnicodeEncoding encoder | ||
Результат | UnicodeEncoding |
public ScreenshotSettings screenshotSettings | ||
Результат | ScreenshotSettings |