TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.ModLoader.ModNet Class Reference
+ Collaboration diagram for Terraria.ModLoader.ModNet:

Classes

class  ModHeader
 
class  NetConfig
 

Static Public Member Functions

static bool IsModdedClient (int i)
 
static Mod GetMod (int netID)
 
static void Log (int whoAmI, string s)
 
static void Log (RemoteAddress addr, string s)
 
static void Log (string s)
 
static void Warn (int whoAmI, string s)
 
static void Warn (RemoteAddress addr, string s)
 
static void Warn (string s)
 
static void Debug (int whoAmI, string s)
 
static void Debug (RemoteAddress addr, string s)
 
static void Debug (string s)
 
static void Error (int whoAmI, string s, Exception e=null)
 
static void Error (RemoteAddress addr, string s, Exception e=null)
 
static void Error (string s, Exception e=null)
 
static void LogSend (int toClient, int ignoreClient, string s, int len)
 

Static Public Attributes

static bool DetailedLogging
 

Static Package Functions

static bool IsClientCompatible (string clientVersion, out bool isModded, out string kickMsg)
 
static void AssignNetIDs ()
 
static void Unload ()
 
static void SyncMods (int clientIndex)
 
static void SyncClientMods (BinaryReader reader)
 
static bool SyncClientMods (BinaryReader reader, out bool needsReload)
 
static void SendMod (string modName, int toClient)
 
static void ReceiveMod (BinaryReader reader)
 
static Action NetReload ()
 
static void SendNetIDs (int toClient)
 
static void HandleModPacket (BinaryReader reader, int whoAmI, int length)
 
static void SetModNetDiagnosticsUI (IEnumerable< Mod > mods)
 
static bool HijackGetData (ref byte messageType, ref BinaryReader reader, int playerNumber)
 
static bool HijackSendData (int whoAmI, int msgType, int remoteClient, int ignoreClient, NetworkText text, int number, float number2, float number3, float number4, int number5, int number6, int number7)
 

Static Package Attributes

static bool downloadModsFromServers
 
static bool onlyDownloadSignedMods
 
static bool[] isModdedClient
 
static bool ShouldDrawModNetDiagnosticsUI
 
static List< NetConfigpendingConfigs
 
const int CHUNK_SIZE = 16384
 
static bool NetReloadActive
 
static bool ReadUnderflowBypass
 

Properties

static bool AllowVanillaClients [get, set]
 
static int NetModCount [get]
 
static INetDiagnosticsUI ModNetDiagnosticsUI [get, private set]
 
static ? Version StableNetVersion [get]
 
static string NetVersionString [get]
 
static ILog NetLog [get]
 

Static Private Member Functions

static ModNet ()
 
static void AddNoSyncDeps (List< Mod > syncMods)
 
static void SendServerConfigs (ModPacket p, Mod mod)
 
static void DownloadNextMod ()
 
static void CancelDownload ()
 
static void OnModsDownloaded (bool needsReload)
 
static void ReadNetIDs (BinaryReader reader)
 
static string Identifier (int whoAmI)
 
static string Identifier (RemoteAddress addr)
 

Static Private Attributes

static Mod[] netMods
 
static Queue< ModHeaderdownloadQueue
 
static ModHeader downloadingMod
 
static FileStream downloadingFile
 
static long downloadingLength
 
static Version IncompatiblePatchVersion
 Update every time a change is pushed to stable which is incompatible between server and clients. Ignored if not updated each month.
 

Detailed Description

Definition at line 16 of file ModNet.cs.


The documentation for this class was generated from the following file: