NBTExplorer/Model/TagContainerInterface.cs

41 lines
1,009 B
C#
Raw Normal View History

2012-08-31 05:29:32 +00:00
using System.Collections.Generic;
using Substrate.Nbt;
namespace NBTExplorer.Model
{
public interface ITagContainer
{
int TagCount { get; }
bool DeleteTag (TagNode tag);
}
public interface IMetaTagContainer : ITagContainer
{
bool IsNamedContainer { get; }
bool IsOrderedContainer { get; }
INamedTagContainer NamedTagContainer { get; }
IOrderedTagContainer OrderedTagContainer { get; }
}
public interface INamedTagContainer : ITagContainer
{
IEnumerable<string> TagNamesInUse { get; }
string GetTagName (TagNode tag);
2012-11-20 06:02:35 +00:00
TagNode GetTagNode (string name);
2012-08-31 05:29:32 +00:00
bool AddTag (TagNode tag, string name);
bool RenameTag (TagNode tag, string name);
2012-11-20 06:02:35 +00:00
bool ContainsTag (string name);
bool DeleteTag (string name);
2012-08-31 05:29:32 +00:00
}
public interface IOrderedTagContainer : ITagContainer
{
int GetTagIndex (TagNode tag);
bool InsertTag (TagNode tag, int index);
}
}