forked from mirrors/NBTExplorer
47 lines
961 B
C#
47 lines
961 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace Substrate.Map.Entities
|
|||
|
{
|
|||
|
using Substrate.Map.NBT;
|
|||
|
|
|||
|
public class EntityMonster : EntityMob
|
|||
|
{
|
|||
|
public static readonly NBTCompoundNode MonsterSchema = MobSchema.MergeInto(new NBTCompoundNode("")
|
|||
|
{
|
|||
|
new NBTStringNode("id", "Monster"),
|
|||
|
});
|
|||
|
|
|||
|
public EntityMonster ()
|
|||
|
: base("Monster")
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
public EntityMonster (Entity e)
|
|||
|
: base(e)
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
|
|||
|
#region INBTObject<Entity> Members
|
|||
|
|
|||
|
public override bool ValidateTree (NBT_Value tree)
|
|||
|
{
|
|||
|
return new NBTVerifier(tree, MonsterSchema).Verify();
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
|
|||
|
#region ICopyable<Entity> Members
|
|||
|
|
|||
|
public override Entity Copy ()
|
|||
|
{
|
|||
|
return new EntityMonster(this);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|