Class LiteNetCommandSender
Inheritance
LiteNetCommandSender
Assembly: cs.temp.dll.dll
Syntax
public class LiteNetCommandSender : ICommandSender
Constructors
LiteNetCommandSender(NetPeer, UserPrivileges, NetDataWriter)
Declaration
public LiteNetCommandSender(NetPeer peer, UserPrivileges privileges, NetDataWriter dataWriter)
Parameters
Type |
Name |
Description |
NetPeer |
peer |
|
UserPrivileges |
privileges |
|
NetDataWriter |
dataWriter |
|
Fields
Peer
Declaration
public readonly NetPeer Peer
Field Value
Properties
LastCommandSentTime
Declaration
public DateTime LastCommandSentTime { get; }
Property Value
Type |
Description |
DateTime |
|
Origin
Declaration
public string Origin { get; }
Property Value
User
Declaration
public string User { get; }
Property Value
Methods
HasPrivilege(Int32)
Declaration
public bool HasPrivilege(int cmdAccesFlags)
Parameters
Type |
Name |
Description |
Int32 |
cmdAccesFlags |
|
Returns
LogMessage(String, LogType)
Declaration
public void LogMessage(string message, LogType logType = LogType.DEFAULT)
Parameters
OnCommandSent()
Declaration
public void OnCommandSent()
SendCommandList(Byte[])
Declaration
public void SendCommandList(byte[] serializedCmdList)
Parameters
Type |
Name |
Description |
Byte[] |
serializedCmdList |
|
SendUpdatedParamValues(Byte[])
Declaration
public void SendUpdatedParamValues(byte[] serializedParamValuesList)
Parameters
Type |
Name |
Description |
Byte[] |
serializedParamValuesList |
|
TimeoutDisconnect()
Declaration
public void TimeoutDisconnect()
Implements