本文整理汇总了C#中Server.Serial类的典型用法代码示例。如果您正苦于以下问题:C# Serial类的具体用法?C# Serial怎么用?C# Serial使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Serial类属于Server命名空间,在下文中一共展示了Serial类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BaseRangedModule
public BaseRangedModule( Serial serial )
: base(serial)
{
HasBowString = true;
StringStrengthSelection = StringStrength.VeryWeak;
PullWeightSelection = PoundsPerPull.Fourty;
}
示例2: ScavengerBasket
public ScavengerBasket( Serial serial )
: base(serial)
{
//No need for the conditional since we KNOW the List isn't persisted across restarts.
//if(!ScavengerSignup.ScavengerBaskets.Contains(this))
ScavengerSignup.ScavengerBaskets.Add( this );
}
示例3: SpiritGem
public SpiritGem( Serial serial ) : base( serial )
{
//On server restart the timer is reset to 120 seconds which ensures that the item actually decays.
//This is inaccurate but this way we don't have to save the value and restore it.
m_TimeLeft = DELETE_AFTER_SECONDS;
m_Timer = new DeleteTimer(this);
}
示例4: RogueSandals
public RogueSandals( Serial serial ) : base( serial )
{
DefineMods();
if ( Parent != null && this.Parent is Mobile )
SetMods( (Mobile)Parent );
}
示例5: CastCommandsModule
public CastCommandsModule(Serial serial, string castCommand, CastInfo info)
: base(serial)
{
m_CastCommands = new Dictionary<string, CastInfo>();
Add(castCommand, info);
}
示例6: IconsModule
public IconsModule(Serial serial, IconInfo info)
: base(serial)
{
//m_Icons = new Hashtable();
m_Icons = new Dictionary<Type, IconInfo>();
Add(info);
}
示例7: greencarrot
public greencarrot( Serial serial ) : base( serial )
{
/*}
public override Item Dupe( int amount )
{
return base.Dupe( new greencarrot( amount ), amount );*/
}
示例8: DiamondHoopEarrings
public DiamondHoopEarrings( Serial serial ) : base( serial )
{
/*}
public override Item Dupe( int amount )
{
return base.Dupe( new DiamondHoopEarrings( amount ), amount );*/
}
示例9: ArrianasClips
public ArrianasClips( Serial serial ) : base( serial )
{
/*}
public override Item Dupe( int amount )
{
return base.Dupe( new ArrianasClips( amount ), amount );*/
}
示例10: GoldenMandrakeRoot
public GoldenMandrakeRoot( Serial serial ) : base( serial )
{
/*}
public override Item Dupe( int amount )
{
return base.Dupe( new GoldenMandrakeRoot( amount ), amount );*/
}
示例11: goldenegg
public goldenegg( Serial serial ) : base( serial )
{
/*}
public override Item Dupe( int amount )
{
return base.Dupe( new goldenegg( amount ), amount );*/
}
示例12: FireSilk
public FireSilk( Serial serial ) : base( serial )
{
/*}
public override Item Dupe( int amount )
{
return base.Dupe( new FireSilk( amount ), amount );*/
}
示例13: GroupDungeonTeleporter
public GroupDungeonTeleporter(Serial serial) : base(serial)
{
Name = "an instance zone-in teleporter";
Hue = 1157;
Visible = true;
base.MapDest = this.Map;
base.PointDest = this.Location;
}
示例14: MarketEntry
public MarketEntry( Mobile seller )
{
_active = true;
_category = Category.Misc;
_cost = 0;
_description = "";
_objectSerial = Serial.MinusOne;
_seller = seller;
_tableId = -1;
}
示例15: Module
public Module( Serial ser )
{
m_Owner = ser;
Type type = this.GetType();
m_TypeRef = CentralMemory.m_Types.IndexOf( type );
if( m_TypeRef == -1 )
m_TypeRef = CentralMemory.m_Types.Add( type );
}