From 4ea9a1e9dcbc4b91355a6e26c4b0ce67cd86ca99 Mon Sep 17 00:00:00 2001 From: asayre Date: Fri, 31 Dec 2010 11:09:18 +0000 Subject: [PATCH] Sealing some packet classes --- Scripts/Misc/BuffIcons.cs | 34 +++++++++++++++---------------- Scripts/Misc/CharacterCreation.cs | 2 +- Scripts/Multis/HouseFoundation.cs | 4 ++-- Server/Network/Packets.cs | 2 +- Server/ObjectPropertyList.cs | 4 ++-- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/Scripts/Misc/BuffIcons.cs b/Scripts/Misc/BuffIcons.cs index 8443d8cc2..e8ae1bc83 100644 --- a/Scripts/Misc/BuffIcons.cs +++ b/Scripts/Misc/BuffIcons.cs @@ -147,7 +147,7 @@ namespace Server #endregion - #region Convience Methods + #region Convenience Methods public static void AddBuff( Mobile m, BuffInfo b ) { PlayerMobile pm = m as PlayerMobile; @@ -184,26 +184,26 @@ namespace Server EvilOmen, UnknownStandingSwirl, //Which is healing throttle & Stamina throttle? UnknownKneelingSword, - DivineFury, - EnemyOfOne, + DivineFury, //* + EnemyOfOne, //* HidingAndOrStealth, //* ActiveMeditation, //* - BloodOathCaster, - BloodOathCurse, + BloodOathCaster, //* + BloodOathCurse, //* CorpseSkin, //* Mindrot, //* PainSpike, //* Strangle, GiftOfRenewal, //* - AttuneWeapon, - Thunderstorm, - EssenceOfWind, - EtherealVoyage, - GiftOfLife, - ArcaneEmpowerment, + AttuneWeapon, //* + Thunderstorm, //* + EssenceOfWind, //* + EtherealVoyage, //* + GiftOfLife, //* + ArcaneEmpowerment, //* MortalStrike, - ReactiveArmor, - Protection, + ReactiveArmor, //* + Protection, //* ArchProtection, MagicReflection, //* Incognito, //* @@ -217,15 +217,15 @@ namespace Server Clumsy, //* FeebleMind, //* Weaken, //* - Curse, + Curse, //* MassCurse, Agility, //* Cunning, //* Strength, //* - Bless + Bless //* } - public class AddBuffPacket : Packet + public sealed class AddBuffPacket : Packet { public AddBuffPacket( Mobile m, BuffInfo info ) : this( m, info.ID, info.TitleCliloc, info.SecondaryCliloc, info.Args, (info.TimeStart != DateTime.MinValue) ? ((info.TimeStart + info.TimeLength) - DateTime.Now) : TimeSpan.Zero ) @@ -279,7 +279,7 @@ namespace Server } } - public class RemoveBuffPacket : Packet + public sealed class RemoveBuffPacket : Packet { public RemoveBuffPacket( Mobile mob, BuffInfo info ) : this( mob, info.ID ) diff --git a/Scripts/Misc/CharacterCreation.cs b/Scripts/Misc/CharacterCreation.cs index 63e4a37c3..8f3fe3e9b 100644 --- a/Scripts/Misc/CharacterCreation.cs +++ b/Scripts/Misc/CharacterCreation.cs @@ -357,7 +357,7 @@ namespace Server.Misc PlaceItemIn( cont, 93, 66, new PixieSwatter() ); for( int i = 0; i < 10; i++ ) - PlaceItemIn( cont, 117, 128, new MessageInABottle( Utility.RandomBool() ? Map.Trammel : Map.Felucca, 4 ) ); + PlaceItemIn( cont, 117, 128, new MessageInABottle( Utility.RandomBool() ? Map.Trammel : Map.Felucca, 4 ) ); PlaceItemIn( bank, 18, 124, cont ); diff --git a/Scripts/Multis/HouseFoundation.cs b/Scripts/Multis/HouseFoundation.cs index 2e039eecb..00866a2ef 100644 --- a/Scripts/Multis/HouseFoundation.cs +++ b/Scripts/Multis/HouseFoundation.cs @@ -2114,7 +2114,7 @@ namespace Server.Multis } } - public class DesignStateGeneral : Packet + public sealed class DesignStateGeneral : Packet { public DesignStateGeneral( HouseFoundation house, DesignState state ) : base( 0xBF ) @@ -2127,7 +2127,7 @@ namespace Server.Multis } } - public class DesignStateDetailed : Packet + public sealed class DesignStateDetailed : Packet { public const int MaxItemsPerStairBuffer = 750; diff --git a/Server/Network/Packets.cs b/Server/Network/Packets.cs index df34a2db2..27916f8d5 100644 --- a/Server/Network/Packets.cs +++ b/Server/Network/Packets.cs @@ -3771,7 +3771,7 @@ namespace Server.Network } } - public class ClearWeaponAbility : Packet + public sealed class ClearWeaponAbility : Packet { public static readonly Packet Instance = Packet.SetStatic( new ClearWeaponAbility() ); diff --git a/Server/ObjectPropertyList.cs b/Server/ObjectPropertyList.cs index 4a24e4e5f..0e10d10a3 100644 --- a/Server/ObjectPropertyList.cs +++ b/Server/ObjectPropertyList.cs @@ -25,7 +25,7 @@ using Server.Network; namespace Server { - public class ObjectPropertyList : Packet + public sealed class ObjectPropertyList : Packet { private IEntity m_Entity; private int m_Hash; @@ -178,7 +178,7 @@ namespace Server } } - public class OPLInfo : Packet + public sealed class OPLInfo : Packet { /*public OPLInfo( ObjectPropertyList list ) : base( 0xBF ) {