Removes implicit types

This commit is contained in:
Kamron Batman 2018-09-14 08:48:39 -07:00
parent 33f5e77a24
commit 04b4cfe75b
261 changed files with 1329 additions and 1329 deletions

View file

@ -84,7 +84,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Simple | CommandSupport.Complex | CommandSupport.Self;
Commands = new string[]{ "Condition" };
Commands = new[]{ "Condition" };
ObjectTypes = ObjectTypes.All;
Usage = "Condition <condition>";
Description = "Checks that the given condition matches a targeted object.";
@ -119,7 +119,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllItems;
Commands = new string[]{ "BringToPack" };
Commands = new[]{ "BringToPack" };
ObjectTypes = ObjectTypes.Items;
Usage = "BringToPack";
Description = "Brings a targeted item to your backpack.";
@ -143,7 +143,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Simple;
Commands = new string[]{ "RefreshHouse" };
Commands = new[]{ "RefreshHouse" };
ObjectTypes = ObjectTypes.Items;
Usage = "RefreshHouse";
Description = "Refreshes a targeted house sign.";
@ -178,7 +178,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Complex;
Commands = new string[]{ "Count" };
Commands = new[]{ "Count" };
ObjectTypes = ObjectTypes.All;
Usage = "Count";
Description = "Counts the number of objects that a command modifier would use. Generally used with condition arguments.";
@ -200,7 +200,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
Commands = new string[]{ "OpenBrowser", "OB" };
Commands = new[]{ "OpenBrowser", "OB" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "OpenBrowser <url>";
Description = "Opens the web browser of a targeted player to a specified url.";
@ -287,7 +287,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
Commands = new string[]{ "Increase", "Inc" };
Commands = new[]{ "Increase", "Inc" };
ObjectTypes = ObjectTypes.Both;
Usage = "Increase {<propertyName> <offset> ...}";
Description = "Increases the value of a specified property by the specified offset.";
@ -321,7 +321,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
Commands = new string[]{ "PrivSound" };
Commands = new[]{ "PrivSound" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "PrivSound <index>";
Description = "Plays a sound to a given target.";
@ -360,13 +360,13 @@ namespace Server.Commands.Generic
if ( inGump )
{
Commands = new string[]{ "Message", "Msg" };
Commands = new[]{ "Message", "Msg" };
Usage = "Message \"text\"";
Description = "Sends a message to a targeted player.";
}
else
{
Commands = new string[]{ "Tell" };
Commands = new[]{ "Tell" };
Usage = "Tell \"text\"";
Description = "Sends a system message to a targeted player.";
}
@ -392,7 +392,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.All;
Commands = new string[]{ "AddToPack", "AddToCont" };
Commands = new[]{ "AddToPack", "AddToCont" };
ObjectTypes = ObjectTypes.Both;
ListOptimized = true;
Usage = "AddToPack <name> [params] [set {<propertyName> <value> ...}]";
@ -432,7 +432,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Simple | CommandSupport.Self;
Commands = new string[]{ "Add" };
Commands = new[]{ "Add" };
ObjectTypes = ObjectTypes.All;
Usage = "Add [<name> [params] [set {<propertyName> <value> ...}]]";
Description = "Adds an item or npc by name to a targeted location. Optional constructor parameters. Optional set property list. If no arguments are specified, this brings up a categorized add menu.";
@ -493,7 +493,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.Simple;
Commands = new string[]{ "Teleport", "Tele" };
Commands = new[]{ "Teleport", "Tele" };
ObjectTypes = ObjectTypes.All;
Usage = "Teleport";
Description = "Teleports your character to a targeted location.";
@ -532,7 +532,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
Commands = new string[]{ "Dismount" };
Commands = new[]{ "Dismount" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "Dismount";
Description = "Forcefully dismounts a given target.";
@ -591,7 +591,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllNPCs;
Commands = new string[]{ "Restock" };
Commands = new[]{ "Restock" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "Restock";
Description = "Manually restocks a targeted vendor, refreshing the quantity of every item the vendor sells to the maximum. This also invokes the maximum quantity adjustment algorithms.";
@ -619,7 +619,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
Commands = new string[]{ "GetType" };
Commands = new[]{ "GetType" };
ObjectTypes = ObjectTypes.All;
Usage = "GetType";
Description = "Gets the type name of a targeted object.";
@ -649,7 +649,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
Commands = new string[]{ "Get" };
Commands = new[]{ "Get" };
ObjectTypes = ObjectTypes.All;
Usage = "Get <propertyName>";
Description = "Gets one or more property values by name of a targeted object.";
@ -695,7 +695,7 @@ namespace Server.Commands.Generic
else
Supports = CommandSupport.All;
Commands = new string[]{ command };
Commands = new[]{ command };
ObjectTypes = objects;
Usage = command;
Description = String.Format( "Sets the {0} property to {1}.", name, value );
@ -718,7 +718,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.All;
Commands = new string[]{ "Set" };
Commands = new[]{ "Set" };
ObjectTypes = ObjectTypes.Both;
Usage = "Set <propertyName> <value> [...]";
Description = "Sets one or more property values by name of a targeted object.";
@ -751,7 +751,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllNPCs | CommandSupport.AllItems;
Commands = new string[]{ "Delete", "Remove" };
Commands = new[]{ "Delete", "Remove" };
ObjectTypes = ObjectTypes.Both;
Usage = "Delete";
Description = "Deletes a targeted item or mobile. Does not delete players.";
@ -836,7 +836,7 @@ namespace Server.Commands.Generic
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.AllMobiles;
Commands = value ? new string[]{ "Kill" } : new string[]{ "Resurrect", "Res" };
Commands = value ? new[]{ "Kill" } : new[]{ "Resurrect", "Res" };
ObjectTypes = ObjectTypes.Mobiles;
if ( value )
@ -919,7 +919,7 @@ namespace Server.Commands.Generic
AccessLevel = AccessLevel.Counselor;
Supports = CommandSupport.AllMobiles;
Commands = new string[]{ value ? "Hide" : "Unhide" };
Commands = new[]{ value ? "Hide" : "Unhide" };
ObjectTypes = ObjectTypes.Mobiles;
if ( value )
@ -968,7 +968,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Administrator;
Supports = CommandSupport.AllMobiles;
Commands = new string[]{ "Firewall" };
Commands = new[]{ "Firewall" };
ObjectTypes = ObjectTypes.Mobiles;
Usage = "Firewall";
Description = "Adds a targeted player to the firewall (list of blocked IP addresses). This command does not ban or kick.";
@ -1011,7 +1011,7 @@ namespace Server.Commands.Generic
AccessLevel = ( ban ? AccessLevel.Administrator : AccessLevel.GameMaster );
Supports = CommandSupport.AllMobiles;
Commands = new string[]{ ban ? "Ban" : "Kick" };
Commands = new[]{ ban ? "Ban" : "Kick" };
ObjectTypes = ObjectTypes.Mobiles;
if ( ban )
@ -1073,7 +1073,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.Administrator;
Supports = CommandSupport.Simple;
Commands = new string[] { "TraceLockdown" };
Commands = new[] { "TraceLockdown" };
ObjectTypes = ObjectTypes.Items;
Usage = "TraceLockdown";
Description = "Finds the BaseHouse for which a targeted item is locked down or secured.";

View file

@ -19,7 +19,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Single | CommandSupport.Area;
Commands = new string[] { "DesignInsert" };
Commands = new[] { "DesignInsert" };
ObjectTypes = ObjectTypes.Items;
Usage = "DesignInsert [allItems=false]";
Description = "Inserts multiple targeted items into a customizable house's design.";

View file

@ -14,7 +14,7 @@ namespace Server.Commands.Generic
{
AccessLevel = AccessLevel.GameMaster;
Supports = CommandSupport.Complex | CommandSupport.Simple;
Commands = new string[]{ "Interface" };
Commands = new[]{ "Interface" };
ObjectTypes = ObjectTypes.Both;
Usage = "Interface [view <properties ...>]";
Description = "Opens an interface to interact with matched objects. Generally used with condition arguments.";

View file

@ -120,7 +120,7 @@ namespace Server.Commands.Generic
"Parse",
BindingFlags.Public | BindingFlags.Static,
null,
new Type[] { typeof( string ), typeof( NumberStyles ) },
new[] { typeof( string ), typeof( NumberStyles ) },
null
);
@ -143,7 +143,7 @@ namespace Server.Commands.Generic
"Parse",
BindingFlags.Public | BindingFlags.Static,
null,
new Type[] { typeof( string ) },
new[] { typeof( string ) },
null
);
@ -279,7 +279,7 @@ namespace Server.Commands.Generic
methodName,
BindingFlags.Public | BindingFlags.Static,
null,
new Type[]
new[]
{
typeof( string ),
typeof( string )
@ -319,7 +319,7 @@ namespace Server.Commands.Generic
methodName,
BindingFlags.Public | BindingFlags.Instance,
null,
new Type[]
new[]
{
typeof( string )
},
@ -494,7 +494,7 @@ namespace Server.Commands.Generic
/* name */ "Verify",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( bool ),
/* params */ new Type[] { typeof( object ) } );
/* params */ new[] { typeof( object ) } );
LocalBuilder obj = emitter.CreateLocal( objectType );
LocalBuilder eq = emitter.CreateLocal( typeof( bool ) );
@ -531,7 +531,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IConditional ).GetMethod(
"Verify",
new Type[]
new[]
{
typeof( object )
}

View file

@ -48,7 +48,7 @@ namespace Server.Commands.Generic
/* name */ "Compare",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( int ),
/* params */ new Type[] { typeof( object ), typeof( object ) } );
/* params */ new[] { typeof( object ), typeof( object ) } );
LocalBuilder a = emitter.CreateLocal( objectType );
LocalBuilder b = emitter.CreateLocal( objectType );
@ -103,7 +103,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IComparer ).GetMethod(
"Compare",
new Type[]
new[]
{
typeof( object ),
typeof( object )
@ -127,7 +127,7 @@ namespace Server.Commands.Generic
/* name */ "Equals",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( bool ),
/* params */ new Type[] { typeof( object ), typeof( object ) } );
/* params */ new[] { typeof( object ), typeof( object ) } );
emitter.Generator.Emit( OpCodes.Ldarg_0 );
emitter.Generator.Emit( OpCodes.Ldarg_1 );
@ -145,7 +145,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IEqualityComparer<object> ).GetMethod(
"Equals",
new Type[]
new[]
{
typeof( object ),
typeof( object )
@ -163,7 +163,7 @@ namespace Server.Commands.Generic
/* name */ "GetHashCode",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( int ),
/* params */ new Type[] { typeof( object ) } );
/* params */ new[] { typeof( object ) } );
LocalBuilder obj = emitter.CreateLocal( objectType );
@ -229,7 +229,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IEqualityComparer<object> ).GetMethod(
"GetHashCode",
new Type[]
new[]
{
typeof( object )
}

View file

@ -90,7 +90,7 @@ namespace Server.Commands.Generic
/* name */ "Compare",
/* attr */ MethodAttributes.Public | MethodAttributes.Virtual,
/* return */ typeof( int ),
/* params */ new Type[] { typeof( object ), typeof( object ) } );
/* params */ new[] { typeof( object ), typeof( object ) } );
LocalBuilder a = emitter.CreateLocal( objectType );
LocalBuilder b = emitter.CreateLocal( objectType );
@ -148,7 +148,7 @@ namespace Server.Commands.Generic
emitter.Method,
typeof( IComparer ).GetMethod(
"Compare",
new Type[]
new[]
{
typeof( object ),
typeof( object )

View file

@ -11,7 +11,7 @@ namespace Server.Commands.Generic
public AreaCommandImplementor()
{
Accessors = new string[]{ "Area", "Group" };
Accessors = new[]{ "Area", "Group" };
SupportRequirement = CommandSupport.Area;
SupportsConditionals = true;
AccessLevel = AccessLevel.GameMaster;

View file

@ -9,7 +9,7 @@ namespace Server.Commands.Generic
{
public ContainedCommandImplementor()
{
Accessors = new string[]{ "Contained" };
Accessors = new[]{ "Contained" };
SupportRequirement = CommandSupport.Contained;
AccessLevel = AccessLevel.GameMaster;
Usage = "Contained <command> [condition]";

View file

@ -4,7 +4,7 @@ namespace Server.Commands.Generic
{
public FacetCommandImplementor()
{
Accessors = new string[]{ "Facet" };
Accessors = new[]{ "Facet" };
SupportRequirement = CommandSupport.Area;
SupportsConditionals = true;
AccessLevel = AccessLevel.GameMaster;

View file

@ -7,7 +7,7 @@ namespace Server.Commands.Generic
{
public GlobalCommandImplementor()
{
Accessors = new string[]{ "Global" };
Accessors = new[]{ "Global" };
SupportRequirement = CommandSupport.Global;
SupportsConditionals = true;
AccessLevel = AccessLevel.Administrator;

View file

@ -8,7 +8,7 @@ namespace Server.Commands.Generic
{
public IPAddressCommandImplementor()
{
Accessors = new string[]{ "IPAddress" };
Accessors = new[]{ "IPAddress" };
SupportRequirement = CommandSupport.IPAddress;
SupportsConditionals = true;
AccessLevel = AccessLevel.Administrator;

View file

@ -6,7 +6,7 @@ namespace Server.Commands.Generic
{
public MultiCommandImplementor()
{
Accessors = new string[]{ "Multi", "m" };
Accessors = new[]{ "Multi", "m" };
SupportRequirement = CommandSupport.Multi;
AccessLevel = AccessLevel.Counselor;
Usage = "Multi <command>";

View file

@ -9,7 +9,7 @@ namespace Server.Commands.Generic
{
public OnlineCommandImplementor()
{
Accessors = new string[]{ "Online" };
Accessors = new[]{ "Online" };
SupportRequirement = CommandSupport.Online;
SupportsConditionals = true;
AccessLevel = AccessLevel.GameMaster;

View file

@ -8,7 +8,7 @@ namespace Server.Commands.Generic
public RangeCommandImplementor()
{
Accessors = new string[]{ "Range" };
Accessors = new[]{ "Range" };
SupportRequirement = CommandSupport.Area;
SupportsConditionals = true;
AccessLevel = AccessLevel.GameMaster;

View file

@ -7,7 +7,7 @@ namespace Server.Commands.Generic
{
public RegionCommandImplementor()
{
Accessors = new string[]{ "Region" };
Accessors = new[]{ "Region" };
SupportRequirement = CommandSupport.Region;
SupportsConditionals = true;
AccessLevel = AccessLevel.GameMaster;

View file

@ -4,7 +4,7 @@ namespace Server.Commands.Generic
{
public ScreenCommandImplementor()
{
Accessors = new string[]{ "Screen" };
Accessors = new[]{ "Screen" };
SupportRequirement = CommandSupport.Area;
SupportsConditionals = true;
AccessLevel = AccessLevel.GameMaster;

View file

@ -4,7 +4,7 @@ namespace Server.Commands.Generic
{
public SelfCommandImplementor()
{
Accessors = new string[]{ "Self" };
Accessors = new[]{ "Self" };
SupportRequirement = CommandSupport.Self;
AccessLevel = AccessLevel.Counselor;
Usage = "Self <command>";

View file

@ -4,7 +4,7 @@ namespace Server.Commands.Generic
{
public SerialCommandImplementor()
{
Accessors = new string[]{ "Serial" };
Accessors = new[]{ "Serial" };
SupportRequirement = CommandSupport.Single;
AccessLevel = AccessLevel.Counselor;
Usage = "Serial <serial> <command>";

View file

@ -6,7 +6,7 @@ namespace Server.Commands.Generic
{
public SingleCommandImplementor()
{
Accessors = new string[]{ "Single" };
Accessors = new[]{ "Single" };
SupportRequirement = CommandSupport.Single;
AccessLevel = AccessLevel.Counselor;
Usage = "Single <command>";