Changes properties to use automatic property initializers
This commit is contained in:
parent
f0a48ad431
commit
06fa31a7bf
623 changed files with 13072 additions and 19304 deletions
|
|
@ -15,15 +15,9 @@ namespace Server.Multis
|
|||
|
||||
public override int LabelNumber => 1061690; // Packing Crate
|
||||
|
||||
private BaseHouse m_House;
|
||||
|
||||
private Timer m_InternalizeTimer;
|
||||
|
||||
public BaseHouse House
|
||||
{
|
||||
get => m_House;
|
||||
set => m_House = value;
|
||||
}
|
||||
public BaseHouse House { get; set; }
|
||||
|
||||
public override int DefaultMaxItems => 0;
|
||||
public override int DefaultMaxWeight => 0;
|
||||
|
|
@ -33,7 +27,7 @@ namespace Server.Multis
|
|||
Hue = 0x8A5;
|
||||
Movable = false;
|
||||
|
||||
m_House = house;
|
||||
House = house;
|
||||
}
|
||||
|
||||
public MovingCrate( Serial serial ) : base( serial )
|
||||
|
|
@ -225,7 +219,7 @@ namespace Server.Multis
|
|||
|
||||
writer.WriteEncodedInt( 1 );
|
||||
|
||||
writer.Write( (Item) m_House );
|
||||
writer.Write( (Item) House );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
|
|
@ -234,11 +228,11 @@ namespace Server.Multis
|
|||
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
m_House = reader.ReadItem() as BaseHouse;
|
||||
House = reader.ReadItem() as BaseHouse;
|
||||
|
||||
if ( m_House != null )
|
||||
if ( House != null )
|
||||
{
|
||||
m_House.MovingCrate = this;
|
||||
House.MovingCrate = this;
|
||||
Timer.DelayCall( TimeSpan.Zero, Hide );
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue