Exemple #1
0
        public TextureSubItem AddSubItem(TextureSubItemType type, string name, int width, int height)
        {
            var si = new TextureSubItem(type, this, name, width, height);

            _subItems.Add(type, si);
            return(si);
        }
Exemple #2
0
        public TextureItem(TexturePackage package, string name, TextureFlags flags, string primarySubItemName, int width, int height)
        {
            Package = package;
            Name    = name;
            Flags   = flags;
            var baseItem = new TextureSubItem(TextureSubItemType.Base, this, primarySubItemName, width, height);

            _subItems = new Dictionary <TextureSubItemType, TextureSubItem> {
                { TextureSubItemType.Base, baseItem }
            };
        }