Definition at line 130 of file Mod.cs.
131 {
133 {
134 return;
135 }
139 {
141 {
144 {
145 throw new Exception(
"The ModConfig " +
mc.Name +
" can't be loaded because the config is ServerSide but this Mods ModSide isn't Both or Server");
146 }
148 {
149 throw new Exception(
"The ModConfig " +
mc.Name +
" can't be loaded because the config is ClientSide but this Mods ModSide is Server");
150 }
151 mc.Mod = this;
152 string name =
type2.Name;
153 if (
mc.Autoload(
ref name))
154 {
156 }
157 }
158 }
159 }
ModConfig provides a way for mods to be configurable. ModConfigs can either be Client specific or Ser...
static Type[] GetLoadableTypes(Assembly assembly)
void AddConfig(string name, ModConfig mc)
ModSide Side
The ModSide that controls how this mod is synced between client and server.
Assembly Code
The assembly code this is loaded when tModLoader loads this mod. Do NOT call M:System....
ConfigScope
Each ModConfig class has a different scope. Failure to use the correct mode will lead to bugs.
References Terraria.ModLoader.Mod.AddConfig(), Terraria.ModLoader.Mod.Code, Terraria.ModLoader.Core.AssemblyManager.GetLoadableTypes(), and Terraria.ModLoader.Mod.Side.
Referenced by Terraria.ModLoader.ModContent.Load().