Player List

All Out displays a (toggable) player list in the top right corner of game UI. We provide some hooks to register your own custom columns in this list. For example, to display a players Rank or Score.
Custom Player List Items
In a GameManager.cs file you can add items as follows:
public override void Awake()
{
PlayerList.RegisterSortCallback((Player[] players) =>
{
Array.Sort(players, (a, b) =>
{
return ((FatPlayer)b).Rebirth.CompareTo(((FatPlayer)a).Rebirth);
});
});
PlayerList.Register("Rank", (Player[] players, string[] scores) =>
{
for (int i = 0; i < players.Length; i++)
{
FatPlayer fatPlayer = (FatPlayer)players[i];
var p = fatPlayer.Entity.Position;
var rbd = Rebirth.GetRebirthData(fatPlayer.CurrentWorldId, fatPlayer.Rebirth);
scores[i] = rbd.RankName;
}
});
PlayerList.Register("Trophies", (Player[] players, string[] scores) =>
{
for (int i = 0; i < players.Length; i++)
{
FatPlayer fatPlayer = (FatPlayer)players[i];
scores[i] = Util.FormatDouble(fatPlayer.Trophies);
}
});
}