예제 #1
0
		public void Add(BinaryTagNode node)
		{
			if (Nodes.ContainsKey(node.Name))
			{
				throw new ArgumentException("DuplicateBinaryTagNodeException: The BinaryTagNode \"" + node.Name + "\" already exists!");
			}
			Nodes.Add(node.Name, node);
		}
예제 #2
0
        public void Add(BinaryTagNode node)
        {
            if (node.Type == (TagType.TagList | TagType.TagByteArray | TagType.TagIntArray | TagType.TagLongArray | TagType.TagEnd))
            {
                throw new Exception("InvalidBinaryTagNodeException\nTag is not a primitive BinaryTagNode / BinaryTagNodeMultiple");
            }

            Nodes.Add(node);
        }
예제 #3
0
		public void Remove(BinaryTagNode node)
		{
			Nodes.Remove(node.Name);
		}
예제 #4
0
		public bool Contains(BinaryTagNode node)
		{
			return Nodes.ContainsValue(node);
		}
예제 #5
0
 public bool Contains(BinaryTagNode node)
 {
     return(Nodes.Contains(node));
 }