本文整理汇总了C#中Server.Multis.HouseSign类的典型用法代码示例。如果您正苦于以下问题:C# HouseSign类的具体用法?C# HouseSign怎么用?C# HouseSign使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HouseSign类属于Server.Multis命名空间,在下文中一共展示了HouseSign类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetSign
public void SetSign( int xoff, int yoff, int zoff )
{
m_Sign = new HouseSign( this );
m_Sign.MoveToWorld( new Point3D( this.X + xoff, this.Y + yoff, this.Z + zoff ), this.Map );
}
示例2: Deserialize
//.........这里部分代码省略.........
m_RelativeBanLocation = this.BaseBanLocation;
if ( version < 12 )
{
m_VendorRentalContracts = new ArrayList();
m_InternalizedVendors = new ArrayList();
}
if ( version < 4 )
m_Addons = new ArrayList();
if ( version < 7 )
m_Access = new ArrayList();
if ( version < 8 )
m_Price = DefaultPrice;
m_Owner = reader.ReadMobile();
if ( version < 5 )
{
count = reader.ReadInt();
for(int i=0;i<count;i++)
reader.ReadRect2D();
}
UpdateRegion();
m_CoOwners = reader.ReadMobileList();
m_Friends = reader.ReadMobileList();
m_Bans = reader.ReadMobileList();
m_Sign = reader.ReadItem() as HouseSign;
m_Trash = reader.ReadItem() as TrashBarrel;
m_Doors = reader.ReadItemList();
m_LockDowns = reader.ReadItemList();
for ( int i = 0; i < m_LockDowns.Count; ++i )
((Item)m_LockDowns[i]).IsLockedDown = true;
for ( int i = 0; i < m_VendorRentalContracts.Count; ++i )
((Item)m_VendorRentalContracts[i]).IsLockedDown = true;
if ( version < 3 )
{
ArrayList items = reader.ReadItemList();
m_Secures = new ArrayList( items.Count );
for ( int i = 0; i < items.Count; ++i )
{
Container c = items[i] as Container;
if ( c != null )
{
c.IsSecure = true;
m_Secures.Add( new SecureInfo( c, SecureLevel.CoOwners ) );
}
}
}
m_MaxLockDowns = reader.ReadInt();
m_MaxSecures = reader.ReadInt();
if ( (Map == null || Map == Map.Internal) && Location == Point3D.Zero )
示例3: VendorsEntry
public VendorsEntry( HouseSign sign )
: base(6211)
{
m_Sign = sign;
}
示例4: ReclaimVendorInventoryEntry
public ReclaimVendorInventoryEntry( HouseSign sign )
: base(6213)
{
m_Sign = sign;
}
示例5: KickPetsEntry
public KickPetsEntry( HouseSign sign )
: base(6181)
{
m_Sign = sign;
}
示例6: SetSignTowerCastle
public void SetSignTowerCastle(int xoff, int yoff, int zoff)
{
m_Sign = new HouseSign(this, m_KeyOwner, true);
m_Sign.MoveToWorld(new Point3D(this.X + xoff, this.Y + yoff, this.Z + zoff), this.Map);
}
示例7: Deserialize
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
m_Region = new HouseRegion( this );
switch ( version )
{
case 0:
{
m_KeyValue = reader.ReadUInt();
m_Visits = reader.ReadInt();
m_Price = reader.ReadInt();
m_BuiltOn = reader.ReadDateTime();
m_LastTraded = reader.ReadDateTime();
m_Public = reader.ReadBool();
m_Region.GoLocation = reader.ReadPoint3D();
if ( version < 8 )
m_Price = DefaultPrice;
m_Owner = reader.ReadMobile();
UpdateRegionArea();
Region.AddRegion( m_Region );
m_Sign = reader.ReadItem() as HouseSign;
m_Trash = reader.ReadItem() as TrashBarrel;
m_Doors = reader.ReadItemList();
m_Addons = reader.ReadItemList();
if ( (Map == null || Map == Map.Internal) && Location == Point3D.Zero )
Delete();
break;
}
}
}
示例8: AgelessHouseTimer
public AgelessHouseTimer( HouseSign h ) : base( TimeSpan.FromDays( 60 ) )
{
sign = h;
Priority = TimerPriority.OneSecond;
}
示例9: Deserialize
//.........这里部分代码省略.........
if (version < 4)
{
m_Addons = new List<Item>();
}
if (version < 7)
{
m_Access = new List<Mobile>();
}
if (version < 8)
{
m_Price = DefaultPrice;
}
m_Owner = reader.ReadMobile();
if (version < 5)
{
count = reader.ReadInt();
for (int i = 0; i < count; i++)
{
reader.ReadRect2D();
}
}
UpdateRegion();
m_CoOwners = reader.ReadStrongMobileList();
m_Friends = reader.ReadStrongMobileList();
m_Bans = reader.ReadStrongMobileList();
m_Sign = reader.ReadItem() as HouseSign;
m_Trash = reader.ReadItem() as TrashBarrel;
m_Doors = reader.ReadStrongItemList<Item>();
m_LockDowns = reader.ReadStrongItemList();
for (int i = 0; i < m_LockDowns.Count; ++i)
{
m_LockDowns[i].IsLockedDown = true;
}
for (int i = 0; i < m_VendorRentalContracts.Count; ++i)
{
m_VendorRentalContracts[i].IsLockedDown = true;
}
if (version < 3)
{
List<Item> items = reader.ReadStrongItemList();
m_Secures = new List<SecureInfo>(items.Count);
for (int i = 0; i < items.Count; ++i)
{
var c = items[i] as Container;
if (c != null)
{
c.IsSecure = true;
m_Secures.Add(new SecureInfo(c, SecureLevel.CoOwners));
}
}
}
示例10: Deserialize
//.........这里部分代码省略.........
if (version < 12)
{
Refresh();
m_NeverDecay = false;
}
if (version < 4)
m_Addons = new ArrayList();
if (version < 7)
m_Access = new ArrayList();
if (version < 8)
m_Price = DefaultPrice;
m_Owner = reader.ReadMobile();
if (version < 5)
{
count = reader.ReadInt();
for (int i = 0; i < count; i++)
reader.ReadRect2D();
}
UpdateRegionArea();
Region.AddRegion(m_Region);
m_CoOwners = reader.ReadMobileList();
m_Friends = reader.ReadMobileList();
m_Bans = reader.ReadMobileList();
m_Sign = reader.ReadItem() as HouseSign;
m_Trash = reader.ReadItem() as TrashBarrel;
m_Doors = reader.ReadItemList();
m_LockDowns = reader.ReadItemList();
for (int i = 0; i < m_LockDowns.Count; ++i)
{
Item item = m_LockDowns[i] as Item;
if (item != null)
{
item.IsLockedDown = true;
item.CancelFreezeTimer(); // don't initiate for Deserialize
}
}
if (version < 3)
{
ArrayList items = reader.ReadItemList();
m_Secures = new ArrayList(items.Count);
for (int i = 0; i < items.Count; ++i)
{
Container c = items[i] as Container;
if (c != null)
{
c.IsSecure = true;
m_Secures.Add(new SecureInfo(c, SecureLevel.CoOwners));
}
}
}
示例11: Deserialize
//.........这里部分代码省略.........
if ( version < 12 )
{
m_VendorRentalContracts = new ArrayList();
m_InternalizedVendors = new ArrayList();
}
if ( version < 4 )
m_Addons = new ArrayList();
if ( version < 7 )
m_Access = new ArrayList();
if ( version < 8 )
m_Price = DefaultPrice;
m_Owner = reader.ReadMobile();
if ( version < 5 )
{
count = reader.ReadInt();
for(int i=0;i<count;i++)
reader.ReadRect2D();
}
UpdateRegionArea();
Region.AddRegion( m_Region );
m_CoOwners = reader.ReadMobileList();
m_Friends = reader.ReadMobileList();
m_Bans = reader.ReadMobileList();
m_Sign = reader.ReadItem() as HouseSign;
m_Trash = reader.ReadItem() as TrashBarrel;
m_Doors = reader.ReadItemList();
m_LockDowns = reader.ReadItemList();
for ( int i = 0; i < m_LockDowns.Count; ++i )
((Item)m_LockDowns[i]).IsLockedDown = true;
for ( int i = 0; i < m_VendorRentalContracts.Count; ++i )
((Item)m_VendorRentalContracts[i]).IsLockedDown = true;
if ( version < 3 )
{
ArrayList items = reader.ReadItemList();
m_Secures = new ArrayList( items.Count );
for ( int i = 0; i < items.Count; ++i )
{
Container c = items[i] as Container;
if ( c != null )
{
c.IsSecure = true;
m_Secures.Add( new SecureInfo( c, SecureLevel.CoOwners ) );
}
}
}
m_MaxLockDowns = reader.ReadInt();
m_MaxSecures = reader.ReadInt();
if ( (Map == null || Map == Map.Internal) && Location == Point3D.Zero )