예제 #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);
        }
예제 #2
0
        public TextureItem(string name, TextureFlags flags, string primarySubItemName, int width, int height)
        {
            Name  = name;
            Flags = flags;
            var baseItem = new TextureSubItem(TextureSubItemType.Base, this, primarySubItemName, width, height);

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