tModLoader v0.11.8.9
A mod to make and play Terraria mods
Terraria.ModLoader.ModSideExtensions Class Reference

Static Public Member Functions

static string ToFriendlyString (this ModSide sortmode)

Detailed Description

Definition at line 16 of file ModSide.cs.

Member Function Documentation

◆ ToFriendlyString()

static string Terraria.ModLoader.ModSideExtensions.ToFriendlyString ( this ModSide  sortmode)

Definition at line 18 of file ModSide.cs.

18 {
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 }
A ModSide enum defines how mods are synced between clients and servers. You can set your mod's ModSid...
Definition: ModSide.cs:5