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
|
|
@ -274,11 +274,6 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public void AllianceMessage(int num, bool append, string format, params object[] args)
|
||||
{
|
||||
AllianceMessage(num, append, string.Format(format, args));
|
||||
}
|
||||
|
||||
public void AllianceMessage(int number)
|
||||
{
|
||||
for (var i = 0; i < m_Members.Count; ++i)
|
||||
|
|
@ -303,15 +298,7 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public void AllianceTextMessage(string text)
|
||||
{
|
||||
AllianceTextMessage(0x3B2, text);
|
||||
}
|
||||
|
||||
public void AllianceTextMessage(string format, params object[] args)
|
||||
{
|
||||
AllianceTextMessage(0x3B2, string.Format(format, args));
|
||||
}
|
||||
public void AllianceTextMessage(string text) => AllianceTextMessage(0x3B2, text);
|
||||
|
||||
public void AllianceTextMessage(int hue, string text)
|
||||
{
|
||||
|
|
@ -321,11 +308,6 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public void AllianceTextMessage(int hue, string format, params object[] args)
|
||||
{
|
||||
AllianceTextMessage(hue, string.Format(format, args));
|
||||
}
|
||||
|
||||
public void AllianceChat(Mobile from, int hue, string text)
|
||||
{
|
||||
Span<byte> buffer = stackalloc byte[OutgoingMessagePackets.GetMaxMessageLength(text)].InitializePacket();
|
||||
|
|
@ -1462,11 +1444,6 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public void GuildMessage(int num, bool append, string format, params object[] args)
|
||||
{
|
||||
GuildMessage(num, append, string.Format(format, args));
|
||||
}
|
||||
|
||||
public void GuildMessage(int number)
|
||||
{
|
||||
for (var i = 0; i < Members.Count; ++i)
|
||||
|
|
@ -1491,15 +1468,7 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public void GuildTextMessage(string text)
|
||||
{
|
||||
GuildTextMessage(0x3B2, text);
|
||||
}
|
||||
|
||||
public void GuildTextMessage(string format, params object[] args)
|
||||
{
|
||||
GuildTextMessage(0x3B2, string.Format(format, args));
|
||||
}
|
||||
public void GuildTextMessage(string text) => GuildTextMessage(0x3B2, text);
|
||||
|
||||
public void GuildTextMessage(int hue, string text)
|
||||
{
|
||||
|
|
@ -1509,11 +1478,6 @@ namespace Server.Guilds
|
|||
}
|
||||
}
|
||||
|
||||
public void GuildTextMessage(int hue, string format, params object[] args)
|
||||
{
|
||||
GuildTextMessage(hue, string.Format(format, args));
|
||||
}
|
||||
|
||||
public void GuildChat(Mobile from, int hue, string text)
|
||||
{
|
||||
Span<byte> buffer = stackalloc byte[OutgoingMessagePackets.GetMaxMessageLength(text)].InitializePacket();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue