forked from mirrors/NBTExplorer
36 lines
745 B
C#
36 lines
745 B
C#
using System;
|
|
using Substrate.Nbt;
|
|
|
|
namespace NBTExplorer.Model
|
|
{
|
|
public class TagIntArrayDataNode : TagDataNode
|
|
{
|
|
public TagIntArrayDataNode (TagNodeIntArray tag)
|
|
: base(tag)
|
|
{ }
|
|
|
|
protected new TagNodeIntArray Tag
|
|
{
|
|
get { return base.Tag as TagNodeIntArray; }
|
|
}
|
|
|
|
public override bool CanEditNode
|
|
{
|
|
#if WINDOWS
|
|
get { return true; }
|
|
#else
|
|
get { return false; }
|
|
#endif
|
|
}
|
|
|
|
public override bool EditNode ()
|
|
{
|
|
return EditIntHexValue(Tag);
|
|
}
|
|
|
|
public override string NodeDisplay
|
|
{
|
|
get { return NodeDisplayPrefix + Tag.Data.Length + " integers"; }
|
|
}
|
|
}
|
|
}
|