feat: Replaces params array with params ReadOnlySpan (#2125)
This commit is contained in:
parent
90059c5e74
commit
279b10dd0f
15 changed files with 36 additions and 35 deletions
|
|
@ -147,17 +147,17 @@ namespace Server.Multis
|
|||
return table;
|
||||
}
|
||||
|
||||
private void LoadItems(string path, params string[] itemColumns)
|
||||
private void LoadItems(string path, params ReadOnlySpan<string> itemColumns)
|
||||
{
|
||||
LoadSpreadsheet(m_ItemTable, path, itemColumns);
|
||||
}
|
||||
|
||||
private void LoadMultis(string path, params string[] multiColumns)
|
||||
private void LoadMultis(string path, params ReadOnlySpan<string> multiColumns)
|
||||
{
|
||||
LoadSpreadsheet(m_MultiTable, path, multiColumns);
|
||||
}
|
||||
|
||||
private void LoadSpreadsheet(int[] table, string path, params string[] tileColumns)
|
||||
private void LoadSpreadsheet(int[] table, string path, params ReadOnlySpan<string> tileColumns)
|
||||
{
|
||||
var ss = new Spreadsheet(path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue