fix: Update LabelTo, SendMessage, etc to Interpolated Strings (#1283)
This commit is contained in:
parent
0facd73842
commit
537526a328
94 changed files with 514 additions and 769 deletions
|
|
@ -1004,7 +1004,7 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
|
|||
Delta(MobileDelta.Noto);
|
||||
InvalidateProperties();
|
||||
|
||||
SendMessage("Your access level has been changed. You are now {0}.", GetAccessLevelName(value));
|
||||
SendMessage($"Your access level has been changed. You are now {GetAccessLevelName(value)}.");
|
||||
|
||||
ClearScreen();
|
||||
SendEverything();
|
||||
|
|
@ -8092,11 +8092,6 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
|
|||
|
||||
public void SayTo(Mobile to, string text) => SayTo(to, false, text);
|
||||
|
||||
public void SayTo(Mobile to, string format, params object[] args) => SayTo(to, false, string.Format(format, args));
|
||||
|
||||
public void SayTo(Mobile to, bool ascii, string format, params object[] args) =>
|
||||
SayTo(to, ascii, string.Format(format, args));
|
||||
|
||||
public void SayTo(Mobile to, int number, string args = "") =>
|
||||
to.NetState.SendMessageLocalized(Serial, Body, MessageType.Regular, SpeechHue, 3, number, Name, args);
|
||||
|
||||
|
|
@ -8104,8 +8099,6 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
|
|||
|
||||
public void Say(string text) => PublicOverheadMessage(MessageType.Regular, SpeechHue, false, text);
|
||||
|
||||
public void Say(string format, params object[] args) => Say(string.Format(format, args));
|
||||
|
||||
public void Say(int number, AffixType type, string affix, string args) =>
|
||||
PublicOverheadMessage(MessageType.Regular, SpeechHue, number, type, affix, args);
|
||||
|
||||
|
|
@ -8113,21 +8106,15 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
|
|||
|
||||
public void Emote(string text) => PublicOverheadMessage(MessageType.Emote, EmoteHue, false, text);
|
||||
|
||||
public void Emote(string format, params object[] args) => Emote(string.Format(format, args));
|
||||
|
||||
public void Emote(int number, string args = "") => PublicOverheadMessage(MessageType.Emote, EmoteHue, number, args);
|
||||
|
||||
public void Whisper(string text) => PublicOverheadMessage(MessageType.Whisper, WhisperHue, false, text);
|
||||
|
||||
public void Whisper(string format, params object[] args) => Whisper(string.Format(format, args));
|
||||
|
||||
public void Whisper(int number, string args = "") =>
|
||||
PublicOverheadMessage(MessageType.Whisper, WhisperHue, number, args);
|
||||
|
||||
public void Yell(string text) => PublicOverheadMessage(MessageType.Yell, YellHue, false, text);
|
||||
|
||||
public void Yell(string format, params object[] args) => Yell(string.Format(format, args));
|
||||
|
||||
public void Yell(int number, string args = "") =>
|
||||
PublicOverheadMessage(MessageType.Yell, YellHue, number, args);
|
||||
|
||||
|
|
@ -9105,26 +9092,14 @@ public class Mobile : IHued, IComparable<Mobile>, ISpawnable, IObjectPropertyLis
|
|||
|
||||
public void SendMessage(string text) => SendMessage(0x3B2, text);
|
||||
|
||||
public void SendMessage(string format, params object[] args) =>
|
||||
SendMessage(0x3B2, string.Format(format, args));
|
||||
|
||||
public void SendMessage(int hue, string text) =>
|
||||
m_NetState.SendMessage(Serial.MinusOne, -1, MessageType.Regular, hue, 3, false, "ENU", "System", text);
|
||||
|
||||
public void SendMessage(int hue, string format, params object[] args) =>
|
||||
SendMessage(hue, string.Format(format, args));
|
||||
|
||||
public void SendAsciiMessage(string text) => SendAsciiMessage(0x3B2, text);
|
||||
|
||||
public void SendAsciiMessage(string format, params object[] args) =>
|
||||
SendAsciiMessage(0x3B2, string.Format(format, args));
|
||||
|
||||
public void SendAsciiMessage(int hue, string text) =>
|
||||
m_NetState.SendMessage(Serial.MinusOne, -1, MessageType.Regular, hue, 3, true, null, "System", text);
|
||||
|
||||
public void SendAsciiMessage(int hue, string format, params object[] args) =>
|
||||
SendAsciiMessage(hue, string.Format(format, args));
|
||||
|
||||
/// <summary>
|
||||
/// Overridable. Event invoked when the Mobile is double clicked. By default, this method can either dismount or open the
|
||||
/// paperdoll.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue