The character displayed on the lobby screen can now be changed.

PlayerSetting_ChangeShowCard
This commit is contained in:
Kei-Luna
2026-04-26 14:33:41 +09:00
parent 6eb03c15e7
commit abb6b51dea
3 changed files with 55 additions and 0 deletions

View File

@@ -188,9 +188,22 @@ public class PlayerInstance(PlayerGameData data)
proto.Attrs[ToShiftedAttrKey(gid, sid)] = val;
}
proto.ShowItems.AddRange(Data.ShowItems);
return proto;
}
public void SetShowItem(int index, ulong itemId)
{
if (index <= 0)
return;
while (Data.ShowItems.Count < index)
Data.ShowItems.Add(0);
Data.ShowItems[index - 1] = itemId;
}
private static uint ToPackedAttrKey(uint gid, uint sid)
{
if (gid == 0)