using System; using System.Collections.Generic; public class ListPlayersExtended : ConsoleCommand { public ListPlayersExtended(ConsoleSdtd cons) : base(cons) { } public override string Description () { return "lists all players with extended attributes"; } public override string[] Names () { return new string[] { "listplayersextended", "lpe" }; } public override void Run (string[] _params) { World w = this.m_Console.gameManager.World; int num = 0; foreach (KeyValuePair current in w.playerEntities.dict) { m_Console.md000a (string.Concat (new object[] { string.Empty, ++num, ". id=", current.Value.fd0087, ", ", current.Value.EntityName, ", pos=", current.Value.GetPosition (), ", rot=", current.Value.rotation, ", remote=", current.Value.fd00aa, ", health=", current.Value.Health, ", deaths=", current.Value.Died, ", zombies=", current.Value.KilledZombies, ", players=", current.Value.KilledPlayers, ", score=", current.Value.Score, ", ", SingletonMonoBehaviour.Instance.GetPlayerId (current.Value.EntityName) })); } m_Console.md000a ("Total of " + w.playerEntities.list.Count + " in the game"); } }