BattleNet.Container.SetItemFields C# (CSharp) Method

SetItemFields() protected method

protected SetItemFields ( Item item, bool value ) : void
item Item
value bool
return void
        protected void SetItemFields(Item item, bool value)
        {
            try
            {
                for (int y = 0; y < item.height; y++)
                    for (int x = 0; x < item.width; x++)
                        m_fields[(int)item.y + y][(int)item.x + x] = value;
            }
            catch
            {
                Console.WriteLine("Coordinate Exception....");
            }
        }