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

◆ ToNetworkText() [1/2]

NetworkText Terraria.Localization.LocalizedText.ToNetworkText ( )
inline

Convert this T:Terraria.Localization.LocalizedText to a T:Terraria.Localization.NetworkText for use in various network code applications. Non-chat messages sent to other players should be sent as T:Terraria.Localization.NetworkText to facilitate localization.

Definition at line 112 of file LocalizedText.cs.

113 {
114 return NetworkText.FromKey(Key, BoundArgs ?? Array.Empty<object>());
115 }
object[] BoundArgs
Returns the args used with M:Terraria.Localization.LocalizedText.WithFormatArgs(System....

References Terraria.Localization.LocalizedText.BoundArgs, Terraria.Localization.NetworkText.FromKey(), and Terraria.Localization.LocalizedText.Key.

+ Here is the call graph for this function: