Lots of little stuff..
Generics Misc tweaks/fixes
This commit is contained in:
parent
8da138d6ed
commit
455fa28f48
16 changed files with 99 additions and 219 deletions
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using System.Text;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
using Server;
|
||||
using Server.Items;
|
||||
using Server.Network;
|
||||
|
|
@ -25,7 +25,7 @@ namespace Server.Commands
|
|||
Invoke( from, start, end, args, null );
|
||||
}
|
||||
|
||||
public static void Invoke( Mobile from, Point3D start, Point3D end, string[] args, ArrayList packs )
|
||||
public static void Invoke( Mobile from, Point3D start, Point3D end, string[] args, List<Container> packs )
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ namespace Server.Commands
|
|||
Array.Copy( old, 1, args, 0, args.Length );
|
||||
}
|
||||
|
||||
public static int BuildObjects( Mobile from, Type type, Point3D start, Point3D end, string[] args, string[,] props, ArrayList packs )
|
||||
public static int BuildObjects( Mobile from, Type type, Point3D start, Point3D end, string[] args, string[,] props, List<Container> packs )
|
||||
{
|
||||
Utility.FixPoints( ref start, ref end );
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ namespace Server.Commands
|
|||
return built;
|
||||
}
|
||||
|
||||
public static int Build( Mobile from, Point3D start, Point3D end, ConstructorInfo ctor, object[] values, string[,] props, PropertyInfo[] realProps, ArrayList packs )
|
||||
public static int Build( Mobile from, Point3D start, Point3D end, ConstructorInfo ctor, object[] values, string[,] props, PropertyInfo[] realProps, List<Container> packs )
|
||||
{
|
||||
try
|
||||
{
|
||||
|
|
@ -299,7 +299,7 @@ namespace Server.Commands
|
|||
|
||||
if ( built is Item )
|
||||
{
|
||||
Container pack = (Container)packs[i];
|
||||
Container pack = packs[i];
|
||||
|
||||
pack.DropItem( (Item)built );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using Server;
|
||||
|
|
@ -19,7 +18,7 @@ namespace Server.Commands
|
|||
public static void Convert_OnCommand( CommandEventArgs e )
|
||||
{
|
||||
e.Mobile.SendMessage( "Converting all players to PlayerMobile. You will be disconnected. Please Restart the server after the world has finished saving." );
|
||||
ArrayList mobs = new ArrayList( World.Mobiles.Values );
|
||||
List<Mobile> mobs = new List<Mobile>( World.Mobiles.Values );
|
||||
int count = 0;
|
||||
|
||||
foreach ( Mobile m in mobs )
|
||||
|
|
|
|||
|
|
@ -368,7 +368,7 @@ namespace Server.Commands.Generic
|
|||
if ( e.Arguments.Length == 0 )
|
||||
return;
|
||||
|
||||
ArrayList packs = new ArrayList( list.Count );
|
||||
List<Container> packs = new List<Container>( list.Count );
|
||||
|
||||
for ( int i = 0; i < list.Count; ++i )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1125,10 +1125,6 @@ namespace Server.Commands
|
|||
return;
|
||||
}
|
||||
|
||||
if ( GoGump.MoveToLocation( from, e.ArgString ) )
|
||||
return;
|
||||
|
||||
|
||||
if ( e.Length == 1 )
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue