Terraria.Player.Player C# (CSharp) Method

Player() public method

public Player ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework
        public Player()
        {
            this.width = 20;
            this.height = 42;
            this.name = string.Empty;
            for (int index = 0; index < 59; ++index)
            {
                if (index < this.armor.Length)
                {
                    this.armor[index] = new Item();
                    this.armor[index].name = "";
                }
                this.inventory[index] = new Item();
                this.inventory[index].name = "";
            }
            for (int index = 0; index < 40; ++index)
            {
                this.bank.item[index] = new Item();
                this.bank.item[index].name = "";
                this.bank2.item[index] = new Item();
                this.bank2.item[index].name = "";
            }
            for (int index = 0; index < this.dye.Length; ++index)
                this.dye[index] = new Item();
            for (int index = 0; index < this.miscEquips.Length; ++index)
                this.miscEquips[index] = new Item();
            for (int index = 0; index < this.miscDyes.Length; ++index)
                this.miscDyes[index] = new Item();
            this.trashItem = new Item();
            this.grappling[0] = -1;
			GiveStartEquipment();
            this.statManaMax = 20;
            if (Main.cEd)
                this.inventory[3].SetDefaults(603, false);
            for (int index = 0; index < 419; ++index)
            {
                this.adjTile[index] = false;
                this.oldAdjTile[index] = false;
            }
            this.hitTile = new HitTile();
            this.mount = new Mount();
		}
Player