C# Класс Plugin.NetworkManager

Manages all network stuff
Показать файл Открыть проект

Открытые методы

Метод Описание
Close ( ) : void

Closes the networkmanager

GetNetworkFunction ( string name ) : FunctionInfo

Returns the corresponding network function to the custom name

Init ( ) : void

Initializes the manager

RegisterNetworkFunction ( FunctionInfo info ) : void

Registers a networkfunction so it can get called

UnregisterNetworkFunction ( string name ) : void

Unregisteres a networkfunction so it cant get called anymore

Приватные методы

Метод Описание
HandleMessage ( ServerInstance arg1, string message ) : void
IndexesOf ( this haystack, string needle ) : IEnumerable
PluginManager_PluginUnload ( Plugin plugin ) : void
Server_CliendDisconnected ( ServerInstance obj ) : void
Server_ClientConnected ( ServerInstance obj ) : void
Server_MessageReceived ( ServerInstance arg1, byte arg2 ) : void

Описание методов

Close() публичный статический Метод

Closes the networkmanager
public static Close ( ) : void
Результат void

GetNetworkFunction() публичный статический Метод

Returns the corresponding network function to the custom name
public static GetNetworkFunction ( string name ) : FunctionInfo
name string The network functions name
Результат FunctionInfo

Init() публичный статический Метод

Initializes the manager
public static Init ( ) : void
Результат void

RegisterNetworkFunction() публичный статический Метод

Registers a networkfunction so it can get called
public static RegisterNetworkFunction ( FunctionInfo info ) : void
info FunctionInfo The functions info
Результат void

UnregisterNetworkFunction() публичный статический Метод

Unregisteres a networkfunction so it cant get called anymore
public static UnregisterNetworkFunction ( string name ) : void
name string The functions info
Результат void