a few generics and misc code cleanup
slight tweaks/opt
This commit is contained in:
parent
83190372f8
commit
566de1c2cf
20 changed files with 125 additions and 164 deletions
|
|
@ -1,5 +1,5 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.Multis;
|
||||
using Server.Network;
|
||||
|
|
@ -152,7 +152,7 @@ namespace Server.Items
|
|||
public Container ConvertToStandardContainer()
|
||||
{
|
||||
Container metalBox = new MetalBox();
|
||||
ArrayList subItems = new ArrayList( Items );
|
||||
List<Item> subItems = new List<Item>( Items );
|
||||
|
||||
foreach ( Item subItem in subItems )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Server;
|
||||
using Server.ContextMenus;
|
||||
using Server.Engines.PartySystem;
|
||||
using Server.Gumps;
|
||||
using Server.Multis;
|
||||
using Server.Network;
|
||||
using Server.ContextMenus;
|
||||
using Server.Engines.PartySystem;
|
||||
|
||||
namespace Server.Items
|
||||
{
|
||||
|
|
@ -274,7 +273,7 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
private ArrayList m_Lifted = new ArrayList();
|
||||
private List<Item> m_Lifted = new List<Item>();
|
||||
|
||||
private bool CheckLoot( Mobile m, bool criminalAction )
|
||||
{
|
||||
|
|
@ -365,7 +364,7 @@ namespace Server.Items
|
|||
|
||||
writer.Write( (int) m_Level );
|
||||
writer.WriteDeltaTime( m_DeleteTime );
|
||||
writer.WriteItemList( m_Lifted, true );
|
||||
writer.Write( m_Lifted, true );
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
|
|
@ -393,7 +392,7 @@ namespace Server.Items
|
|||
{
|
||||
m_Level = reader.ReadInt();
|
||||
m_DeleteTime = reader.ReadDeltaTime();
|
||||
m_Lifted = reader.ReadItemList();
|
||||
m_Lifted = reader.ReadStrongItemList();
|
||||
|
||||
if ( version < 2 )
|
||||
m_Guardians = new List<Mobile>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue