Terraria ModLoader  0.11.1
A framework for Terraria mods
ModSide.cs
Go to the documentation of this file.
1 namespace Terraria.ModLoader
2 {
4  public enum ModSide
5  {
7  Both,
9  Client,
11  Server,
13  NoSync
14  }
15 
16  public static class ModSideExtensions
17  {
18  public static string ToFriendlyString(this ModSide sortmode) {
19  switch (sortmode) {
20  case ModSide.Both:
21  return "Both";
22  case ModSide.Client:
23  return "Client";
24  case ModSide.Server:
25  return "Server";
26  case ModSide.NoSync:
27  return "NoSync";
28  }
29  return "Unknown";
30  }
31  }
32 }
static string ToFriendlyString(this ModSide sortmode)
Definition: ModSide.cs:18
The default value for ModSide. This means that the mod has effects both client-side and server-side...
Command is executed by server in MP.
This means that the mod could have effects client-side and could have effects server-side. The client will not download this mod if it connects to a server with this mod, and the client will not disable this mod if it connects to a server without this mod. If a client connects to a server and both have this mod, then IDs will still be synchronized. This is useful if you want optional extra features when both the client and server have this mod.
ModSide
A ModSide enum defines how mods are synced between clients and servers. You can set your mod's ModSid...
Definition: ModSide.cs:4
This means that the mod only has effects client-side. This mod will not be disabled client-side if th...