TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Clone()

virtual ModConfig Terraria.ModLoader.Config.ModConfig.Clone ( )
inlinevirtual

tModLoader will call Clone on ModConfig to facilitate proper implementation of the ModConfig user interface and detecting when a reload is required. Modders need to override this method if their config contains reference types. Failure to do so will lead to bugs. See ModConfigShowcaseDataTypes.Clone for examples and explanations.

Returns

Definition at line 78 of file ModConfig.cs.

79 {
80 return (ModConfig)MemberwiseClone();
81 }