tModLoader v0.11.8.9
A mod to make and play Terraria mods
ModSide.cs
Go to the documentation of this file.
1namespace 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
ModSide
A ModSide enum defines how mods are synced between clients and servers. You can set your mod's ModSid...
Definition: ModSide.cs:5
@ Both
The default value for ModSide. This means that the mod has effects both client-side and server-side....
@ Client
This means that the mod only has effects client-side. This mod will not be disabled client-side if th...
@ NoSync
This means that the mod could have effects client-side and could have effects server-side....
@ Server
Command is executed by server in MP.