Reorganizes Project (#41)
This commit is contained in:
parent
08bf44af9a
commit
3614a66aee
3499 changed files with 79 additions and 55 deletions
45
Projects/Scripts/Items/Special/ML/BaseImprisonedMobile.cs
Normal file
45
Projects/Scripts/Items/Special/ML/BaseImprisonedMobile.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using Server.Gumps;
|
||||
using Server.Mobiles;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
public abstract class BaseImprisonedMobile : Item
|
||||
{
|
||||
[Constructible]
|
||||
public BaseImprisonedMobile(int itemID) : base(itemID)
|
||||
{
|
||||
}
|
||||
|
||||
public BaseImprisonedMobile(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public abstract BaseCreature Summon{ get; }
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
{
|
||||
if (IsChildOf(from.Backpack))
|
||||
from.SendGump(new ConfirmBreakCrystalGump(this));
|
||||
else
|
||||
from.SendLocalizedMessage(1042001); // That must be in your pack for you to use it.
|
||||
}
|
||||
|
||||
public override void Serialize(GenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(GenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public virtual void Release(Mobile from, BaseCreature summon)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue