示例#1
0
        public Container(Tile tile)
            : base((ushort)FixedItems.BrowseField)
        {
            if (tile.Items != null)
            {
                foreach (Item item in tile.Items)
                {
                    if (item is Container || item.HasProperty(ItemProperties.Moveable))
                    {
                        ItemList.AddToFront(item);
                        item.SetParent(this);
                    }
                }
            }

            MaxSize            = 30;
            TotalWeight        = 0;
            SerializationCount = 0;
            IsUnlocked         = false;
            HasPagination      = true;
            base.SetParent(tile);
        }