#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
81
Scripts/Engines/ConPVP/Games/EventGame.cs
Normal file
81
Scripts/Engines/ConPVP/Games/EventGame.cs
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
|
||||
namespace Server.Engines.ConPVP
|
||||
{
|
||||
public abstract class EventController : Item
|
||||
{
|
||||
public abstract EventGame Construct( DuelContext dc );
|
||||
|
||||
public abstract string Title { get; }
|
||||
|
||||
public abstract string GetTeamName( int teamID );
|
||||
|
||||
public EventController()
|
||||
: base( 0x1B7A )
|
||||
{
|
||||
Visible = false;
|
||||
Movable = false;
|
||||
}
|
||||
|
||||
public EventController( Serial serial )
|
||||
: base( serial )
|
||||
{
|
||||
}
|
||||
|
||||
public override void Serialize( GenericWriter writer )
|
||||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.Write( (int) 0 );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
{
|
||||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
|
||||
public override void OnDoubleClick( Mobile from )
|
||||
{
|
||||
if ( from.AccessLevel >= AccessLevel.GameMaster )
|
||||
from.SendGump( new Gumps.PropertiesGump( from, this ) );
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class EventGame
|
||||
{
|
||||
protected DuelContext m_Context;
|
||||
|
||||
public DuelContext Context { get { return m_Context; } }
|
||||
|
||||
public virtual bool FreeConsume { get { return true; } }
|
||||
|
||||
public EventGame( DuelContext context )
|
||||
{
|
||||
m_Context = context;
|
||||
}
|
||||
|
||||
public virtual bool OnDeath( Mobile mob, Container corpse )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public virtual bool CantDoAnything( Mobile mob )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public virtual void OnStart()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void OnStop()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue