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); }
public TextureSubItem(TextureSubItemType type, TextureItem item, string name, int width, int height) { Type = type; Name = name; Width = width; Height = height; Item = item; }
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; }