fix: Optimizes gump relay info (Prep for Static Gumps) (#1698)

This commit is contained in:
Kamron Batman 2024-03-07 20:54:53 -08:00 • committed by GitHub
parent 50fcee12dc
commit cfe9e04c78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
220 changed files with 364 additions and 402 deletions

View file

@ -126,7 +126,7 @@ namespace Server.Items
AddButton(145, 35, 0x868, 0x869, (int)Buttons.South);
}
public override void OnResponse(NetState sender, RelayInfo info)
public override void OnResponse(NetState sender, in RelayInfo info)
{
int m_ItemID;

View file

@ -141,7 +141,7 @@ namespace Server.Items
AddButton(335, 285, 247, 248, 1);
}
public override void OnResponse(NetState sender, RelayInfo info)
public override void OnResponse(NetState sender, in RelayInfo info)
{
var from = sender.Mobile;
@ -182,12 +182,7 @@ namespace Server.Items
from.SendMessage("You add the personalized greeting to your St. Valentine Bear.");
}
private static string GetLine(RelayInfo info, int idx)
{
var tr = info.GetTextEntry(idx);
return tr?.Text;
}
private static string GetLine(RelayInfo info, int idx) => info.GetTextEntry(idx);
}
}