From 54d728a322f1c6529108acd4f99a3c0319ca3082 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Sun, 17 Apr 2022 08:02:15 -0700 Subject: [PATCH] fix: Updates serialization to use v2.0 (#998) - [X] Deletes serialization annotations - [X] Updates to ModernUO.Serialization.Annotations nuget - [X] Updates serializer to v2.0 - [X] Changes all `Serializable()` to `SerializationGenerator()` - [X] Updates to schema generator v2.0 --- .config/dotnet-tools.json | 2 +- Projects/Server/Collections/BitArray.cs | 2 +- Projects/Server/Main.cs | 2 +- .../AfterDeserializationAttribute.cs | 38 ------- .../Attributes/DeltaDateTimeAttribute.cs | 27 ----- .../DeserializeTimerFieldAttribute.cs | 34 ------ .../EmbeddedSerializableAttribute.cs | 32 ------ .../Attributes/EncodedIntAttribute.cs | 27 ----- .../Attributes/InternStringAttribute.cs | 27 ----- .../InvalidatePropertiesAttribute.cs | 28 ----- .../Attributes/SerializableAttribute.cs | 32 ------ .../Attributes/SerializableFieldAttribute.cs | 46 -------- .../SerializableFieldAttributeAttribute.cs | 46 -------- .../SerializableFieldDefaultAttribute.cs | 35 ------ .../SerializableFieldSaveFlagAttribute.cs | 30 ----- .../Attributes/SerializableParentAttribute.cs | 30 ----- .../Serialization/Attributes/TidyAttribute.cs | 27 ----- .../Attributes/TimerDriftAttribute.cs | 28 ----- Projects/Server/Server.csproj | 3 +- .../Security/PasswordProtectionTest.cs | 1 - Projects/UOContent/Accounting/Account.cs | 3 +- .../UOContent/Engines/Bulk Orders/BaseBOD.cs | 3 +- .../UOContent/Engines/Bulk Orders/LargeBOD.cs | 3 +- .../Engines/Bulk Orders/LargeSmithBOD.cs | 4 +- .../Engines/Bulk Orders/LargeTailorBOD.cs | 4 +- .../Engines/Bulk Orders/SmallSmithBOD.cs | 3 +- .../Engines/Bulk Orders/SmallTailorBOD.cs | 3 +- .../Christmas/2010/Addons/FireFliesDeed.cs | 5 +- .../Christmas/2010/Items/AngelDecoration.cs | 6 +- .../Christmas/2010/Items/RockingHorse.cs | 6 +- .../Easter/2011/Items/DragonEasterEgg.cs | 6 +- .../Halloween/2006/Engines/TrickOrTreat.cs | 3 +- .../Halloween/2006/Items/HalloweenPumpkin.cs | 5 +- .../Halloween/2006/Items/PumpkinScarecrow.cs | 6 +- .../Halloween/2006/Items/RuinedTapestry.cs | 6 +- .../Halloween/2006/Items/TwilightLantern.cs | 6 +- .../Halloween/2009/Foods/CreepyCake.cs | 6 +- .../Halloween/2009/Foods/HarvestWine.cs | 6 +- .../Halloween/2009/Foods/MrPlainsCookies.cs | 6 +- .../Halloween/2009/Foods/MurkyMilk.cs | 6 +- .../Halloween/2009/Foods/PumpkinPizza.cs | 6 +- .../Halloween/2009/Items/GrimWarning.cs | 6 +- .../Halloween/2009/Items/SkullsOnPike.cs | 6 +- .../2010/Items/ChairInAGhostCostume.cs | 4 +- .../Halloween/2010/Items/ColoredSmallWebs.cs | 4 +- .../2010/Items/ExcellentIronMaiden.cs | 4 +- .../2010/Items/HalloweenGuillotine.cs | 4 +- .../Halloween/2011/Items/BasePaintedMask.cs | 6 +- .../Halloween/2011/Items/ClownMask.cs | 6 +- .../Halloween/2011/Items/DaemonMask.cs | 6 +- .../Halloween/2011/Items/PlagueMask.cs | 6 +- .../Halloween/2011/Mobiles/PumpkinHead.cs | 3 +- .../Halloween/2012/Engines/PlayerZombies.cs | 5 +- .../Halloween/2012/Items/EvilJesterMask.cs | 6 +- .../Halloween/2012/Items/PorcelainMask.cs | 6 +- .../Halloween/Treats/Jellybeans.cs | 6 +- .../Halloween/Treats/Lollipops.cs | 6 +- .../Halloween/Treats/NougatSwirl.cs | 6 +- .../Holiday Stuff/Halloween/Treats/Taffy.cs | 6 +- .../Halloween/Treats/WrappedCandy.cs | 6 +- .../2010/Items/AnimatedHeartShapedBox.cs | 4 +- .../Valentine/2011/Items/StValentinesBears.cs | 7 +- .../Valentine/2012/Items/CupidStatue.cs | 4 +- .../Valentine/2012/Items/CupidsArrow.cs | 3 +- .../Valentine/2012/Items/HeartShapedBox.cs | 4 +- .../UOContent/Items/Addons/AbbatoirAddon.cs | 6 +- .../UOContent/Items/Addons/AddonComponent.cs | 9 +- .../Items/Addons/AddonContainerComponent.cs | 5 +- .../Items/Addons/AlchemistTableEastAddon.cs | 6 +- .../Items/Addons/AlchemistTableSouthAddon.cs | 6 +- .../UOContent/Items/Addons/AnvilEastAddon.cs | 6 +- .../UOContent/Items/Addons/AnvilSouthAddon.cs | 6 +- .../Items/Addons/ArcaneBookshelfEastAddon.cs | 6 +- .../Items/Addons/ArcaneBookshelfSouthAddon.cs | 6 +- .../Items/Addons/ArcaneCircleAddon.cs | 6 +- .../Items/Addons/ArcanistStatueEastAddon.cs | 6 +- .../Items/Addons/ArcanistStatueSouthAddon.cs | 6 +- .../Items/Addons/ArcheryButteAddon.cs | 7 +- Projects/UOContent/Items/Addons/BallotBox.cs | 7 +- Projects/UOContent/Items/Addons/BaseAddon.cs | 3 +- .../Items/Addons/BaseAddonContainer.cs | 3 +- .../UOContent/Items/Addons/BaseAddonDeed.cs | 3 +- Projects/UOContent/Items/Addons/BearRugs.cs | 18 +-- .../UOContent/Items/Addons/BloodPentagram.cs | 4 +- Projects/UOContent/Items/Addons/DartBoard.cs | 11 +- .../Items/Addons/ElvenBedEastAddon.cs | 6 +- .../Items/Addons/ElvenBedSouthAddon.cs | 6 +- .../Items/Addons/ElvenDresserEastAddon.cs | 6 +- .../Items/Addons/ElvenDresserSouthAddon.cs | 6 +- .../UOContent/Items/Addons/ElvenForgeAddon.cs | 6 +- .../Items/Addons/ElvenLoveseatEastAddon.cs | 6 +- .../Items/Addons/ElvenLoveseatSouthAddon.cs | 6 +- .../Addons/ElvenSpinningWheelEastAddon.cs | 5 +- .../Addons/ElvenSpinningwheelSouthAddon.cs | 5 +- .../Items/Addons/ElvenStoveEastAddon.cs | 6 +- .../Items/Addons/ElvenStoveSouthAddon.cs | 6 +- .../Items/Addons/ElvenWashbasinEastAddon.cs | 6 +- .../Items/Addons/ElvenWashbasinSouthAddon.cs | 6 +- .../Items/Addons/FancyElvenTableEastAddon.cs | 6 +- .../Items/Addons/FancyElvenTableSouthAddon.cs | 6 +- .../UOContent/Items/Addons/FireColumnAddon.cs | 4 +- .../Items/Addons/FlourMillEastAddon.cs | 5 +- .../Items/Addons/FlourMillSouthAddon.cs | 5 +- .../Items/Addons/FlowerTapestries.cs | 18 +-- Projects/UOContent/Items/Addons/GiantWebs.cs | 14 ++- Projects/UOContent/Items/Addons/GozaMats.cs | 34 +++--- .../Addons/GrayBrickFireplaceEastAddon.cs | 6 +- .../Addons/GrayBrickFireplaceSouthAddon.cs | 6 +- .../UOContent/Items/Addons/JackOLantern.cs | 4 +- .../Items/Addons/LargeBedEastAddon.cs | 4 +- .../Items/Addons/LargeBedSouthAddon.cs | 6 +- .../Items/Addons/LargeForgeEastAddon.cs | 6 +- .../Items/Addons/LargeForgeSouthAddon.cs | 6 +- .../Items/Addons/LargeStoneTableEastAddon.cs | 6 +- .../Items/Addons/LargeStoneTableSouthAddon.cs | 6 +- .../UOContent/Items/Addons/LoomEastAddon.cs | 6 +- .../UOContent/Items/Addons/LoomSouthAddon.cs | 6 +- .../Items/Addons/MediumStoneTableEastAddon.cs | 6 +- .../Addons/MediumStoneTableSouthAddon.cs | 6 +- .../Items/Addons/OrnateElvenChestEastAddon.cs | 6 +- .../Addons/OrnateElvenChestSouthAddon.cs | 6 +- .../Items/Addons/OrnateElvenTableEastAddon.cs | 6 +- .../Addons/OrnateElvenTableSouthAddon.cs | 6 +- .../Items/Addons/ParrotPerchAddon.cs | 6 +- .../UOContent/Items/Addons/PentagramAddon.cs | 6 +- .../UOContent/Items/Addons/PickpocketDips.cs | 11 +- .../UOContent/Items/Addons/PyramidAddon.cs | 4 +- .../Items/Addons/RejuvinationAnkhs.cs | 9 +- .../UOContent/Items/Addons/SHTeleporter.cs | 5 +- .../Addons/SandstoneFireplaceEastAddon.cs | 6 +- .../Addons/SandstoneFireplaceSouthAddon.cs | 6 +- .../Items/Addons/SandstoneFountainAddon.cs | 4 +- .../Items/Addons/SerpentPillarAddon.cs | 4 +- .../Items/Addons/ShrineOfWisdomAddon.cs | 5 +- .../UOContent/Items/Addons/SkullPileAddon.cs | 4 +- .../Items/Addons/SmallBedEastAddon.cs | 6 +- .../Items/Addons/SmallBedSouthAddon.cs | 6 +- .../UOContent/Items/Addons/SmallForgeAddon.cs | 6 +- .../UOContent/Items/Addons/SolenAntHole.cs | 5 +- .../Items/Addons/SpinningwheelEastAddon.cs | 5 +- .../Items/Addons/SpinningwheelSouthAddon.cs | 5 +- .../Items/Addons/SquirrelStatueEastAddon.cs | 6 +- .../Items/Addons/SquirrelStatueSouthAddon.cs | 6 +- .../Items/Addons/StoneFireplaceEastAddon.cs | 6 +- .../Items/Addons/StoneFireplaceSouthAddon.cs | 6 +- .../Items/Addons/StoneFountainAddon.cs | 4 +- .../Items/Addons/StoneOvenEastAddon.cs | 6 +- .../Items/Addons/StoneOvenSouthAddon.cs | 6 +- .../UOContent/Items/Addons/StretchedHides.cs | 18 +-- .../Items/Addons/TallElvenBedEastAddon.cs | 6 +- .../Items/Addons/TallElvenBedSouthAddon.cs | 6 +- Projects/UOContent/Items/Addons/Telescope.cs | 4 +- .../UOContent/Items/Addons/TrainingDummies.cs | 11 +- .../Items/Addons/WarriorStatueEastAddon.cs | 6 +- .../Items/Addons/WarriorStatueSouthAddon.cs | 6 +- .../Items/Addons/WaterTroughEastAddon.cs | 6 +- .../Items/Addons/WaterTroughSouthAddon.cs | 6 +- Projects/UOContent/Items/Addons/WaterVat.cs | 6 +- Projects/UOContent/Items/Aquarium/Aquarium.cs | 7 +- .../Items/Aquarium/AquariumFishingNet.cs | 4 +- .../UOContent/Items/Aquarium/AquariumFood.cs | 4 +- .../UOContent/Items/Aquarium/AquariumState.cs | 7 +- Projects/UOContent/Items/Aquarium/BaseFish.cs | 3 +- .../Aquarium/Fish/AlbinoCourtesanFish.cs | 4 +- .../Items/Aquarium/Fish/AlbinoFrog.cs | 4 +- .../Items/Aquarium/Fish/BritainCrownFish.cs | 4 +- .../Items/Aquarium/Fish/FandancerFish.cs | 4 +- .../Items/Aquarium/Fish/GoldenBroadtail.cs | 4 +- .../Items/Aquarium/Fish/Jellyfish.cs | 4 +- .../Items/Aquarium/Fish/KillerFrog.cs | 4 +- .../Items/Aquarium/Fish/LongClawCrab.cs | 4 +- .../Aquarium/Fish/MakotoCourtesanFish.cs | 4 +- .../Items/Aquarium/Fish/MinocBlueFish.cs | 4 +- .../Items/Aquarium/Fish/NujelmHoneyFish.cs | 4 +- .../Items/Aquarium/Fish/PurpleFrog.cs | 4 +- .../Items/Aquarium/Fish/RedDartFish.cs | 4 +- .../UOContent/Items/Aquarium/Fish/Shrimp.cs | 4 +- .../Aquarium/Fish/SmallMouthSuckerFin.cs | 4 +- .../Items/Aquarium/Fish/SpeckledCrab.cs | 4 +- .../Aquarium/Fish/SpinedScratcherFish.cs | 4 +- .../Items/Aquarium/Fish/SpottedBuccaneer.cs | 4 +- .../Items/Aquarium/Fish/VesperReefTiger.cs | 4 +- .../Items/Aquarium/Fish/YellowFinBluebelly.cs | 4 +- Projects/UOContent/Items/Aquarium/FishBowl.cs | 3 +- .../Items/Aquarium/Reward Fish/BrineShrimp.cs | 4 +- .../Items/Aquarium/Reward Fish/Coral.cs | 4 +- .../Aquarium/Reward Fish/FullMoonFish.cs | 4 +- .../Items/Aquarium/Reward Fish/SeaHorse.cs | 4 +- .../Aquarium/Reward Fish/StrippedFlakeFish.cs | 4 +- .../Reward Fish/StrippedSosarianSwill.cs | 4 +- .../Items/Aquarium/Rewards/AquariumMessage.cs | 4 +- .../Rewards/CaptainBlackheartsFishingPole.cs | 4 +- .../Aquarium/Rewards/CraftysFishingHat.cs | 4 +- .../Items/Aquarium/Rewards/FishBones.cs | 4 +- .../Items/Aquarium/Rewards/IslandStatue.cs | 4 +- .../UOContent/Items/Aquarium/Rewards/Shell.cs | 4 +- .../Items/Aquarium/Rewards/ToyBoat.cs | 4 +- .../Aquarium/Rewards/WaterloggedBoots.cs | 4 +- .../UOContent/Items/Aquarium/VacationWafer.cs | 4 +- .../Items/Armor/Artifacts/ArmorOfFortune.cs | 4 +- .../Armor/Artifacts/Craftable/BrambleCoat.cs | 4 +- .../Artifacts/Craftable/IronwoodCrown.cs | 4 +- .../Artifacts/Craftable/SongWovenMantle.cs | 4 +- .../Artifacts/Craftable/SpellWovenBritches.cs | 4 +- .../Artifacts/Craftable/StitchersMittens.cs | 4 +- .../Armor/Artifacts/GauntletsOfNobility.cs | 4 +- .../Items/Armor/Artifacts/HelmOfInsight.cs | 4 +- .../Armor/Artifacts/HolyKnightsBreastplate.cs | 4 +- .../Armor/Artifacts/InquisitorsResolution.cs | 4 +- .../Items/Armor/Artifacts/JackalsCollar.cs | 4 +- .../Items/Armor/Artifacts/LeggingsOfBane.cs | 4 +- .../Items/Armor/Artifacts/MidnightBracers.cs | 4 +- .../Artifacts/OrnateCrownOfTheHarrower.cs | 4 +- .../Armor/Artifacts/ShadowDancerLeggings.cs | 4 +- .../Items/Armor/Artifacts/TunicOfFire.cs | 4 +- .../Armor/Artifacts/VoiceOfTheFallenKing.cs | 4 +- Projects/UOContent/Items/Armor/BaseArmor.cs | 3 +- .../UOContent/Items/Armor/Bone/BoneArms.cs | 4 +- .../UOContent/Items/Armor/Bone/BoneChest.cs | 4 +- .../UOContent/Items/Armor/Bone/BoneGloves.cs | 4 +- .../UOContent/Items/Armor/Bone/BoneLegs.cs | 4 +- .../UOContent/Items/Armor/Chain/ChainChest.cs | 4 +- .../Items/Armor/Chain/ChainHatsuburi.cs | 4 +- .../UOContent/Items/Armor/Chain/ChainLegs.cs | 4 +- .../Armor/Cloth/GargishClothArmsType1.cs | 4 +- .../Armor/Cloth/GargishClothArmsType2.cs | 4 +- .../Armor/Cloth/GargishClothChestType1.cs | 4 +- .../Armor/Cloth/GargishClothChestType2.cs | 4 +- .../Armor/Cloth/GargishClothKiltType1.cs | 4 +- .../Armor/Cloth/GargishClothKiltType2.cs | 4 +- .../Armor/Cloth/GargishClothLegsType1.cs | 4 +- .../Armor/Cloth/GargishClothLegsType2.cs | 4 +- .../Items/Armor/DaemonBone/DaemonArms.cs | 4 +- .../Items/Armor/DaemonBone/DaemonChest.cs | 4 +- .../Items/Armor/DaemonBone/DaemonGloves.cs | 4 +- .../Items/Armor/DaemonBone/DaemonLegs.cs | 4 +- .../Items/Armor/Dragon/DragonArms.cs | 4 +- .../Items/Armor/Dragon/DragonChest.cs | 4 +- .../Items/Armor/Dragon/DragonGloves.cs | 4 +- .../Items/Armor/Dragon/DragonHelm.cs | 4 +- .../Items/Armor/Dragon/DragonLegs.cs | 4 +- .../Armor/Glasses/AnthropomorphistGlasses.cs | 4 +- .../Items/Armor/Glasses/ArtsGlasses.cs | 4 +- .../Items/Armor/Glasses/ElvenGlasses.cs | 4 +- .../Items/Armor/Glasses/FoldedSteelGlasses.cs | 4 +- .../Items/Armor/Glasses/LightOfWayGlasses.cs | 4 +- .../Items/Armor/Glasses/LyricalGlasses.cs | 4 +- .../Items/Armor/Glasses/MaceShieldGlasses.cs | 4 +- .../Items/Armor/Glasses/MaritimeGlasses.cs | 4 +- .../Items/Armor/Glasses/NecromanticGlasses.cs | 4 +- .../Items/Armor/Glasses/PoisonedGlasses.cs | 4 +- .../Items/Armor/Glasses/TradeGlasses.cs | 4 +- .../Armor/Glasses/TreasureTrinketGlasses.cs | 4 +- .../Items/Armor/Glasses/WizardsGlasses.cs | 4 +- .../UOContent/Items/Armor/Helmets/Bascinet.cs | 4 +- .../UOContent/Items/Armor/Helmets/BoneHelm.cs | 4 +- .../Items/Armor/Helmets/ChainCoif.cs | 4 +- .../UOContent/Items/Armor/Helmets/Circlet.cs | 4 +- .../Items/Armor/Helmets/CloseHelm.cs | 4 +- .../Items/Armor/Helmets/DaemonHelm.cs | 4 +- .../Items/Armor/Helmets/GemmedCirclet.cs | 4 +- .../UOContent/Items/Armor/Helmets/Helmet.cs | 4 +- .../Items/Armor/Helmets/LeatherCap.cs | 4 +- .../Items/Armor/Helmets/NorseHelm.cs | 4 +- .../UOContent/Items/Armor/Helmets/OrcHelm.cs | 4 +- .../Items/Armor/Helmets/PlateHelm.cs | 4 +- .../Items/Armor/Helmets/RavenHelm.cs | 4 +- .../Items/Armor/Helmets/RoyalCirclet.cs | 4 +- .../Items/Armor/Helmets/VultureHelm.cs | 4 +- .../Items/Armor/Helmets/WingedHelm.cs | 4 +- .../Items/Armor/Leather/FemaleLeafChest.cs | 4 +- .../Items/Armor/Leather/FemaleLeatherChest.cs | 4 +- .../Armor/Leather/GargishLeatherArmsType1.cs | 4 +- .../Armor/Leather/GargishLeatherArmsType2.cs | 4 +- .../Armor/Leather/GargishLeatherChestType1.cs | 4 +- .../Armor/Leather/GargishLeatherChestType2.cs | 4 +- .../Armor/Leather/GargishLeatherKiltType1.cs | 4 +- .../Armor/Leather/GargishLeatherKiltType2.cs | 4 +- .../Armor/Leather/GargishLeatherLegsType1.cs | 4 +- .../Armor/Leather/GargishLeatherLegsType2.cs | 4 +- .../Armor/Leather/GargishLeatherWingArmor.cs | 4 +- .../UOContent/Items/Armor/Leather/LeafArms.cs | 4 +- .../Items/Armor/Leather/LeafChest.cs | 4 +- .../Items/Armor/Leather/LeafGloves.cs | 4 +- .../Items/Armor/Leather/LeafGorget.cs | 4 +- .../UOContent/Items/Armor/Leather/LeafLegs.cs | 4 +- .../Items/Armor/Leather/LeafTonlet.cs | 4 +- .../Items/Armor/Leather/LeatherArms.cs | 4 +- .../Items/Armor/Leather/LeatherBustierArms.cs | 4 +- .../Items/Armor/Leather/LeatherChest.cs | 4 +- .../Items/Armor/Leather/LeatherDo.cs | 4 +- .../Items/Armor/Leather/LeatherGloves.cs | 4 +- .../Items/Armor/Leather/LeatherGorget.cs | 4 +- .../Items/Armor/Leather/LeatherHaidate.cs | 4 +- .../Items/Armor/Leather/LeatherHiroSode.cs | 4 +- .../Items/Armor/Leather/LeatherJingasa.cs | 4 +- .../Items/Armor/Leather/LeatherLegs.cs | 4 +- .../Items/Armor/Leather/LeatherMempo.cs | 4 +- .../Items/Armor/Leather/LeatherNinjaHood.cs | 4 +- .../Items/Armor/Leather/LeatherNinjaJacket.cs | 4 +- .../Items/Armor/Leather/LeatherNinjaMitts.cs | 4 +- .../Items/Armor/Leather/LeatherNinjaPants.cs | 4 +- .../Items/Armor/Leather/LeatherShorts.cs | 4 +- .../Items/Armor/Leather/LeatherSkirt.cs | 4 +- .../Items/Armor/Leather/LeatherSuneate.cs | 4 +- .../Armor/Plate/DecorativePlateKabuto.cs | 4 +- .../Items/Armor/Plate/FemalePlateChest.cs | 4 +- .../Items/Armor/Plate/FemaleWoodlandChest.cs | 4 +- .../Items/Armor/Plate/HeavyPlateJingasa.cs | 4 +- .../Items/Armor/Plate/LightPlateJingasa.cs | 4 +- .../UOContent/Items/Armor/Plate/PlateArms.cs | 4 +- .../Items/Armor/Plate/PlateBattleKabuto.cs | 4 +- .../UOContent/Items/Armor/Plate/PlateChest.cs | 4 +- .../UOContent/Items/Armor/Plate/PlateDo.cs | 4 +- .../Items/Armor/Plate/PlateGloves.cs | 4 +- .../Items/Armor/Plate/PlateGorget.cs | 4 +- .../Items/Armor/Plate/PlateHaidate.cs | 4 +- .../Items/Armor/Plate/PlateHatsuburi.cs | 4 +- .../Items/Armor/Plate/PlateHiroSode.cs | 4 +- .../UOContent/Items/Armor/Plate/PlateLegs.cs | 4 +- .../UOContent/Items/Armor/Plate/PlateMempo.cs | 4 +- .../Items/Armor/Plate/PlateSuneate.cs | 4 +- .../Items/Armor/Plate/SmallPlateJingasa.cs | 4 +- .../Items/Armor/Plate/StandardPlateKabuto.cs | 4 +- .../Items/Armor/Plate/WoodlandArms.cs | 4 +- .../Items/Armor/Plate/WoodlandChest.cs | 4 +- .../Items/Armor/Plate/WoodlandGloves.cs | 4 +- .../Items/Armor/Plate/WoodlandGorget.cs | 4 +- .../Items/Armor/Plate/WoodlandLegs.cs | 4 +- .../Items/Armor/Ranger/RangerArms.cs | 4 +- .../Items/Armor/Ranger/RangerChest.cs | 4 +- .../Items/Armor/Ranger/RangerGloves.cs | 4 +- .../Items/Armor/Ranger/RangerGorget.cs | 4 +- .../Items/Armor/Ranger/RangerLegs.cs | 4 +- .../Items/Armor/Ring/RingmailArms.cs | 4 +- .../Items/Armor/Ring/RingmailChest.cs | 4 +- .../Items/Armor/Ring/RingmailGloves.cs | 4 +- .../Items/Armor/Ring/RingmailLegs.cs | 4 +- .../Armor/Stone/GargishStoneArmsType1.cs | 4 +- .../Armor/Stone/GargishStoneArmsType2.cs | 4 +- .../Armor/Stone/GargishStoneChestType1.cs | 4 +- .../Armor/Stone/GargishStoneChestType2.cs | 4 +- .../Armor/Stone/GargishStoneKiltType1.cs | 4 +- .../Armor/Stone/GargishStoneKiltType2.cs | 4 +- .../Armor/Stone/GargishStoneLegsType1.cs | 4 +- .../Armor/Stone/GargishStoneLegsType2.cs | 4 +- .../Items/Armor/Studded/FemaleStuddedChest.cs | 4 +- .../Armor/Studded/GargishStuddedArmsType1.cs | 4 +- .../Armor/Studded/GargishStuddedArmsType2.cs | 4 +- .../Armor/Studded/GargishStuddedChestType1.cs | 4 +- .../Armor/Studded/GargishStuddedChestType2.cs | 4 +- .../Armor/Studded/GargishStuddedKiltType1.cs | 4 +- .../Armor/Studded/GargishStuddedKiltType2.cs | 4 +- .../Armor/Studded/GargishStuddedLegsType1.cs | 4 +- .../Armor/Studded/GargishStuddedLegsType2.cs | 4 +- .../Items/Armor/Studded/HideChest.cs | 4 +- .../Items/Armor/Studded/HideFemaleChest.cs | 4 +- .../Items/Armor/Studded/HideGloves.cs | 4 +- .../Items/Armor/Studded/HideGorget.cs | 4 +- .../Items/Armor/Studded/HidePants.cs | 4 +- .../Items/Armor/Studded/HidePauldrons.cs | 4 +- .../Items/Armor/Studded/StuddedArms.cs | 4 +- .../Items/Armor/Studded/StuddedBustierArms.cs | 4 +- .../Items/Armor/Studded/StuddedChest.cs | 4 +- .../Items/Armor/Studded/StuddedDo.cs | 4 +- .../Items/Armor/Studded/StuddedGloves.cs | 4 +- .../Items/Armor/Studded/StuddedGorget.cs | 4 +- .../Items/Armor/Studded/StuddedHaidate.cs | 4 +- .../Items/Armor/Studded/StuddedHiroSode.cs | 4 +- .../Items/Armor/Studded/StuddedLegs.cs | 4 +- .../Items/Armor/Studded/StuddedMempo.cs | 4 +- .../Items/Armor/Studded/StuddedSuneate.cs | 4 +- .../UOContent/Items/Body Parts/BonePile.cs | 4 +- Projects/UOContent/Items/Body Parts/Head.cs | 4 +- .../UOContent/Items/Body Parts/LeftArm.cs | 4 +- .../UOContent/Items/Body Parts/LeftLeg.cs | 4 +- .../UOContent/Items/Body Parts/RibCage.cs | 4 +- .../UOContent/Items/Body Parts/RightArm.cs | 4 +- .../UOContent/Items/Body Parts/RightLeg.cs | 4 +- Projects/UOContent/Items/Body Parts/Torso.cs | 4 +- Projects/UOContent/Items/Books/BaseBook.cs | 3 +- Projects/UOContent/Items/Books/BlueBook.cs | 4 +- Projects/UOContent/Items/Books/BrownBook.cs | 4 +- .../Books/Defined/BlackthornWelcomeBook.cs | 4 +- .../Items/Books/Defined/DrakovsJournal.cs | 4 +- .../Items/Books/Defined/FropozJournal.cs | 4 +- .../Items/Books/Defined/KaburJournal.cs | 4 +- .../Items/Books/Defined/LibraryBooks.cs | 58 +++++----- .../Items/Books/Defined/NewAquariumBook.cs | 4 +- .../Defined/TranslatedGargoyleJournal.cs | 4 +- Projects/UOContent/Items/Books/RedBook.cs | 4 +- Projects/UOContent/Items/Books/TanBook.cs | 4 +- .../Items/Bulletin Boards/BulletinBoard.cs | 5 +- .../Items/Bulletin Boards/BulletinMessage.cs | 3 +- .../Decorative/ArtifactLargeVase.cs | 4 +- .../Decorative/ArtifactVase.cs | 4 +- .../Decorative/DemonSkull.cs | 4 +- .../Decorative/DirtPatch.cs | 4 +- .../Decorative/EvilIdolSkull.cs | 4 +- .../Champion Artifacts/Decorative/Futon.cs | 4 +- .../Champion Artifacts/Decorative/LavaTile.cs | 4 +- .../Champion Artifacts/Decorative/Pier.cs | 4 +- .../Decorative/SkullPole.cs | 4 +- .../Decorative/SwampTile.cs | 4 +- .../TatteredAncientMummyWrapping.cs | 4 +- .../Decorative/WallBlood.cs | 4 +- .../Decorative/WaterTile.cs | 4 +- .../Champion Artifacts/Decorative/Web.cs | 4 +- .../Decorative/WindSpirit.cs | 4 +- .../Shared/ANecromancerShroud.cs | 4 +- .../Shared/BraveKnightOfTheBritannia.cs | 4 +- .../Shared/CaptainJohnsHat.cs | 4 +- .../Shared/DetectiveBoots.cs | 3 +- .../Champion Artifacts/Shared/DjinnisRing.cs | 4 +- .../Shared/EmbroideredOakLeafCloak.cs | 4 +- .../Shared/GauntletsOfAnger.cs | 4 +- .../LieutenantOfTheBritannianRoyalGuard.cs | 4 +- .../Shared/OblivionsNeedle.cs | 4 +- .../Shared/RoyalGuardSurvivalKnife.cs | 4 +- .../Shared/SamaritanRobe.cs | 4 +- .../Shared/TheMostKnowledgePerson.cs | 4 +- .../Shared/TheRobeOfBritanniaAri.cs | 4 +- .../Unique/AcidProofRobe.cs | 4 +- .../Items/Champion Artifacts/Unique/Calm.cs | 4 +- .../Unique/CrownOfTalKeesh.cs | 4 +- .../Champion Artifacts/Unique/FangOfRactus.cs | 4 +- .../Unique/GladiatorsCollar.cs | 4 +- .../Unique/OrcChieftainHelm.cs | 4 +- .../Items/Champion Artifacts/Unique/Pacify.cs | 4 +- .../Items/Champion Artifacts/Unique/Quell.cs | 4 +- .../Unique/ShroudOfDeceit.cs | 4 +- .../Items/Champion Artifacts/Unique/Subdue.cs | 4 +- .../Clothing/Artifacts/CrimsonCincture.cs | 4 +- .../Clothing/Artifacts/DivineCountenance.cs | 4 +- .../Items/Clothing/Artifacts/HatOfTheMagi.cs | 4 +- .../Clothing/Artifacts/HuntersHeaddress.cs | 4 +- .../Clothing/Artifacts/SpiritOfTheTotem.cs | 4 +- .../UOContent/Items/Clothing/BaseClothing.cs | 3 +- Projects/UOContent/Items/Clothing/Cloaks.cs | 9 +- Projects/UOContent/Items/Clothing/Hats.cs | 47 ++++---- .../UOContent/Items/Clothing/MiddleTorso.cs | 20 ++-- .../UOContent/Items/Clothing/OuterLegs.cs | 12 +- .../UOContent/Items/Clothing/OuterTorso.cs | 31 ++--- Projects/UOContent/Items/Clothing/Pants.cs | 12 +- Projects/UOContent/Items/Clothing/Shirts.cs | 14 ++- Projects/UOContent/Items/Clothing/Shoes.cs | 22 ++-- Projects/UOContent/Items/Clothing/Waist.cs | 10 +- .../UOContent/Items/Construction/Ankhs.cs | 9 +- .../Items/Construction/Chairs/Benchs.cs | 4 +- .../Items/Construction/Chairs/Chairs.cs | 18 +-- .../Items/Construction/Chairs/Stools.cs | 6 +- .../Items/Construction/Chairs/Thrones.cs | 6 +- .../Decorative/DecorativeShield.cs | 32 +++--- .../Decorative/DecorativeWeapon.cs | 26 +++-- .../Decorative/GiantReplicaAcorn.cs | 4 +- .../Decorative/MountedDreadHorn.cs | 4 +- .../Decorative/PaintingPortraits.cs | 16 +-- .../Items/Construction/Decorative/Tapestry.cs | 46 ++++---- .../Items/Construction/Tables/ElvenPodium.cs | 4 +- .../Items/Construction/Tables/Tables.cs | 12 +- .../Items/Construction/Tables/WritingTable.cs | 4 +- .../Items/Construction/Walls/BaseWall.cs | 4 +- .../Items/Construction/Walls/DarkWoodWall.cs | 4 +- .../Construction/Walls/ThickGrayStoneWall.cs | 4 +- .../Items/Construction/Walls/ThinBrickWall.cs | 4 +- .../Items/Construction/Walls/ThinStoneWall.cs | 4 +- .../Construction/Walls/WhiteStoneWall.cs | 4 +- .../Items/Containers/BaseTreasureChest.cs | 3 +- .../UOContent/Items/Containers/Container.cs | 55 ++++----- .../Items/Containers/FurnitureContainer.cs | 29 ++--- .../Items/Containers/LockableContainer.cs | 3 +- .../Items/Containers/MarkContainer.cs | 3 +- .../Items/Containers/ParagonChest.cs | 4 +- .../UOContent/Items/Containers/SalvageBag.cs | 3 +- .../UOContent/Items/Containers/Strongbox.cs | 3 +- .../Items/Containers/TrappableContainer.cs | 3 +- .../Items/Containers/TreasureChest.cs | 8 +- .../Items/Containers/TreasureMapChest.cs | 3 +- .../AcademicBooksArtifacts.cs | 4 +- .../BaseDecorationArtifact.cs | 6 +- .../DoomDecorationArtifacts.cs | 48 ++++---- .../SEDecorationArtifacts.cs | 107 +++++++++--------- .../UOContent/Items/Deeds/BarkeepContract.cs | 3 +- .../Items/Deeds/ClothingBlessDeed.cs | 3 +- .../UOContent/Items/Deeds/CommodityDeed.cs | 3 +- .../Items/Deeds/DragonBardingDeed.cs | 3 +- .../Items/Deeds/HairRestylingDeed.cs | 3 +- .../UOContent/Items/Deeds/HolidayTreeDeed.cs | 3 +- .../UOContent/Items/Deeds/NameChangeDeed.cs | 3 +- .../UOContent/Items/Deeds/NewPlayerTicket.cs | 3 +- .../Items/Resources/Blacksmithing/Ingots.cs | 22 ++-- .../Items/Resources/Blacksmithing/Ore.cs | 21 ++-- .../Items/Resources/Fishing/BigFish.cs | 3 +- .../UOContent/Items/Resources/Fishing/Fish.cs | 4 +- .../Items/Resources/Fishing/MagicFish.cs | 11 +- .../Items/Resources/MiscMLResources.cs | 52 +++++---- .../Items/Resources/Reagents/BaseReagent.cs | 4 +- .../Items/Resources/Reagents/BatWing.cs | 4 +- .../Items/Resources/Reagents/BlackPearl.cs | 4 +- .../Items/Resources/Reagents/Bloodmoss.cs | 4 +- .../Items/Resources/Reagents/DaemonBlood.cs | 4 +- .../Items/Resources/Reagents/DaemonBone.cs | 4 +- .../Items/Resources/Reagents/DeadWood.cs | 4 +- .../Items/Resources/Reagents/DragonsBlood.cs | 6 +- .../Items/Resources/Reagents/Garlic.cs | 4 +- .../Items/Resources/Reagents/Ginseng.cs | 4 +- .../Items/Resources/Reagents/GraveDust.cs | 4 +- .../Items/Resources/Reagents/MandrakeRoot.cs | 4 +- .../Items/Resources/Reagents/Nightshade.cs | 4 +- .../Items/Resources/Reagents/NoxCrystal.cs | 4 +- .../Items/Resources/Reagents/PigIron.cs | 4 +- .../Items/Resources/Reagents/SpidersSilk.cs | 4 +- .../Items/Resources/Reagents/SulfurousAsh.cs | 4 +- .../Items/Resources/Tailor/BoltOfCloth.cs | 3 +- .../UOContent/Items/Resources/Tailor/Bone.cs | 4 +- .../UOContent/Items/Resources/Tailor/Cloth.cs | 3 +- .../Items/Resources/Tailor/Cotton.cs | 3 +- .../UOContent/Items/Resources/Tailor/Flax.cs | 3 +- .../UOContent/Items/Resources/Tailor/Hides.cs | 12 +- .../Items/Resources/Tailor/Leathers.cs | 12 +- .../Items/Resources/Tailor/UncutCloth.cs | 3 +- .../UOContent/Items/Resources/Tailor/Wool.cs | 5 +- .../Items/Resources/Tailor/YarnsAndThreads.cs | 11 +- .../Items/Shields/GargishWoodenShield.cs | 4 +- .../Items/Skill Items/Lumberjack/Log.cs | 16 +-- .../Tailor Items/Dyetubs/BlackDyeTub.cs | 4 +- .../Tailor Items/Dyetubs/BlazeDyeTub.cs | 4 +- .../Tailor Items/Dyetubs/DyeTub.cs | 3 +- .../Tailor Items/Dyetubs/FurnitureDyeTub.cs | 3 +- .../Tailor Items/Dyetubs/LeatherDyeTub.cs | 3 +- .../Dyetubs/MetallicClothDyetub.cs | 4 +- .../Dyetubs/MetallicLeatherDyeTub.cs | 4 +- .../Tailor Items/Dyetubs/RewardBlackDyeTub.cs | 3 +- .../Tailor Items/Dyetubs/RunebookDyeTub.cs | 3 +- .../Tailor Items/Dyetubs/SpecialDyeTub.cs | 3 +- .../Tailor Items/Dyetubs/StatuetteDyeTub.cs | 3 +- .../Tailor Items/Dyetubs/WhiteClothDyeTub.cs | 4 +- .../Dyetubs/WhiteLeatherDyeTub.cs | 4 +- .../Items/Skill Items/Tools/TinkerTools.cs | 5 +- Projects/UOContent/Items/Special/SoulStone.cs | 1 - .../TreasureChests/TreasureChestLevel1.cs | 3 +- .../TreasureChests/TreasureChestLevel2.cs | 3 +- .../TreasureChests/TreasureChestLevel3.cs | 3 +- .../TreasureChests/TreasureChestLevel4.cs | 3 +- Projects/UOContent/Items/Wands/BaseWand.cs | 3 +- Projects/UOContent/Items/Wands/ClumsyWand.cs | 3 +- Projects/UOContent/Items/Wands/FeebleWand.cs | 3 +- .../UOContent/Items/Wands/FireballWand.cs | 3 +- .../UOContent/Items/Wands/GreaterHealWand.cs | 3 +- Projects/UOContent/Items/Wands/HarmWand.cs | 3 +- Projects/UOContent/Items/Wands/HealWand.cs | 3 +- Projects/UOContent/Items/Wands/IDWand.cs | 3 +- .../UOContent/Items/Wands/LightningWand.cs | 3 +- .../UOContent/Items/Wands/MagicArrowWand.cs | 3 +- .../UOContent/Items/Wands/ManaDrainWand.cs | 3 +- .../UOContent/Items/Wands/WeaknessWand.cs | 3 +- .../Weapons/Artifacts/AxeOfTheHeavens.cs | 4 +- .../Weapons/Artifacts/BladeOfInsanity.cs | 4 +- .../Weapons/Artifacts/BladeOfTheRighteous.cs | 4 +- .../Items/Weapons/Artifacts/BoneCrusher.cs | 4 +- .../Weapons/Artifacts/BreathOfTheDead.cs | 4 +- .../Items/Weapons/Artifacts/Frostbringer.cs | 4 +- .../Weapons/Artifacts/LegacyOfTheDreadLord.cs | 4 +- .../Items/Weapons/Artifacts/SerpentsFang.cs | 4 +- .../Items/Weapons/Artifacts/StaffOfTheMagi.cs | 4 +- .../Weapons/Artifacts/TheBeserkersMaul.cs | 4 +- .../Weapons/Artifacts/TheDragonSlayer.cs | 4 +- .../Items/Weapons/Artifacts/TheDryadBow.cs | 4 +- .../Items/Weapons/Artifacts/TheTaskmaster.cs | 4 +- .../Items/Weapons/Artifacts/TitansHammer.cs | 4 +- .../Items/Weapons/Artifacts/ZyronicClaw.cs | 4 +- Projects/UOContent/Items/Weapons/Axes/Axe.cs | 4 +- .../UOContent/Items/Weapons/Axes/BaseAxe.cs | 3 +- .../UOContent/Items/Weapons/Axes/BattleAxe.cs | 4 +- .../UOContent/Items/Weapons/Axes/DoubleAxe.cs | 4 +- .../Items/Weapons/Axes/DualShortAxes.cs | 4 +- .../Items/Weapons/Axes/ExecutionersAxe.cs | 4 +- .../Items/Weapons/Axes/GuardianAxe.cs | 4 +- .../UOContent/Items/Weapons/Axes/Hatchet.cs | 4 +- .../Items/Weapons/Axes/HeavyOrnateAxe.cs | 4 +- .../Items/Weapons/Axes/LargeBattleAxe.cs | 4 +- .../UOContent/Items/Weapons/Axes/Pickaxe.cs | 3 +- .../Items/Weapons/Axes/SingingAxe.cs | 4 +- .../Items/Weapons/Axes/ThunderingAxe.cs | 4 +- .../Items/Weapons/Axes/TwoHandedAxe.cs | 4 +- .../UOContent/Items/Weapons/Axes/WarAxe.cs | 3 +- Projects/UOContent/Items/Weapons/Fists.cs | 3 +- .../Items/Weapons/Knives/BaseKnife.cs | 3 +- .../Items/Weapons/Knives/ButcherKnife.cs | 4 +- .../UOContent/Items/Weapons/Knives/Cleaver.cs | 4 +- .../UOContent/Items/Weapons/Knives/Dagger.cs | 4 +- .../Items/Weapons/Knives/SkinningKnife.cs | 4 +- .../Items/Weapons/Knives/ThrowingDagger.cs | 3 +- .../Artifacts/BlightGrippedLongbow.cs | 4 +- .../ML Weapons/Artifacts/ColdForgedBlade.cs | 4 +- .../ML Weapons/Artifacts/FaerieFire.cs | 4 +- .../ML Weapons/Artifacts/LuminousRuneBlade.cs | 4 +- .../ML Weapons/Artifacts/MischiefMaker.cs | 4 +- .../Artifacts/OverseerSunderedBlade.cs | 4 +- .../ML Weapons/Artifacts/PhantomStaff.cs | 4 +- .../ML Weapons/Artifacts/RuneCarvingKnife.cs | 4 +- .../ML Weapons/Artifacts/ShardTrasher.cs | 4 +- .../Artifacts/SilvanisFeywoodBow.cs | 4 +- .../ML Weapons/Artifacts/TheNightReaper.cs | 4 +- .../Items/Weapons/ML Weapons/AssassinSpike.cs | 4 +- .../Weapons/ML Weapons/ButchersWarCleaver.cs | 4 +- .../Items/Weapons/ML Weapons/DiamondMace.cs | 4 +- .../ML Weapons/ElvenCompositeLongbow.cs | 3 +- .../Items/Weapons/ML Weapons/ElvenMachete.cs | 4 +- .../Weapons/ML Weapons/ElvenSpellblade.cs | 4 +- .../Items/Weapons/ML Weapons/Leafblade.cs | 4 +- .../Weapons/ML Weapons/MagicalShortbow.cs | 3 +- .../Items/Weapons/ML Weapons/OrnateAxe.cs | 4 +- .../Weapons/ML Weapons/RadiantScimitar.cs | 4 +- .../Items/Weapons/ML Weapons/RuneBlade.cs | 4 +- .../Items/Weapons/ML Weapons/WarCleaver.cs | 4 +- .../Items/Weapons/ML Weapons/WildStaff.cs | 4 +- .../Items/Weapons/Maces/BaseBashing.cs | 3 +- .../UOContent/Items/Weapons/Maces/Club.cs | 4 +- .../UOContent/Items/Weapons/Maces/DiscMace.cs | 4 +- .../Items/Weapons/Maces/EmeraldMace.cs | 4 +- .../Items/Weapons/Maces/FireworksWand.cs | 3 +- .../Items/Weapons/Maces/HammerPick.cs | 4 +- .../UOContent/Items/Weapons/Maces/Mace.cs | 4 +- .../Items/Weapons/Maces/MagicWand.cs | 4 +- .../UOContent/Items/Weapons/Maces/Maul.cs | 4 +- .../UOContent/Items/Weapons/Maces/RubyMace.cs | 4 +- .../Items/Weapons/Maces/SapphireMace.cs | 4 +- .../UOContent/Items/Weapons/Maces/Scepter.cs | 4 +- .../Items/Weapons/Maces/SilverEtchedMace.cs | 4 +- .../Items/Weapons/Maces/WarHammer.cs | 4 +- .../UOContent/Items/Weapons/Maces/WarMace.cs | 4 +- .../Items/Weapons/PoleArms/Bardiche.cs | 4 +- .../Items/Weapons/PoleArms/BasePoleArm.cs | 3 +- .../Items/Weapons/PoleArms/Halberd.cs | 4 +- .../Items/Weapons/PoleArms/Scythe.cs | 3 +- .../Items/Weapons/Ranged/AssassinsShortbow.cs | 4 +- .../Items/Weapons/Ranged/BarbedLongbow.cs | 4 +- .../Items/Weapons/Ranged/BaseRanged.cs | 3 +- .../UOContent/Items/Weapons/Ranged/Bow.cs | 3 +- .../Items/Weapons/Ranged/CompositeBow.cs | 3 +- .../Items/Weapons/Ranged/Crossbow.cs | 3 +- .../Items/Weapons/Ranged/FrozenLongbow.cs | 4 +- .../Items/Weapons/Ranged/HeavyCrossbow.cs | 3 +- .../UOContent/Items/Weapons/Ranged/JukaBow.cs | 3 +- .../Weapons/Ranged/LightweightShortbow.cs | 4 +- .../Items/Weapons/Ranged/LongbowOfMight.cs | 4 +- .../Items/Weapons/Ranged/MysticalShortbow.cs | 4 +- .../Items/Weapons/Ranged/RangersShortbow.cs | 4 +- .../Items/Weapons/Ranged/RepeatingCrossbow.cs | 3 +- .../Items/Weapons/Ranged/SlayerLongbow.cs | 4 +- .../Items/Weapons/SE Weapons/Bokuto.cs | 4 +- .../Items/Weapons/SE Weapons/Daisho.cs | 4 +- .../Items/Weapons/SE Weapons/Kama.cs | 4 +- .../Items/Weapons/SE Weapons/Lajatang.cs | 4 +- .../Items/Weapons/SE Weapons/NoDachi.cs | 4 +- .../Items/Weapons/SE Weapons/Nunchaku.cs | 4 +- .../UOContent/Items/Weapons/SE Weapons/Sai.cs | 4 +- .../Items/Weapons/SE Weapons/Tekagi.cs | 4 +- .../Items/Weapons/SE Weapons/Tessen.cs | 4 +- .../Items/Weapons/SE Weapons/Tetsubo.cs | 4 +- .../Items/Weapons/SE Weapons/Wakizashi.cs | 4 +- .../Items/Weapons/SE Weapons/Yumi.cs | 3 +- .../Items/Weapons/SpearsAndForks/BaseSpear.cs | 3 +- .../Weapons/SpearsAndForks/BladedStaff.cs | 4 +- .../SpearsAndForks/DoubleBladedStaff.cs | 4 +- .../SpearsAndForks/DualPointedSpear.cs | 4 +- .../Items/Weapons/SpearsAndForks/Pike.cs | 4 +- .../Items/Weapons/SpearsAndForks/Pitchfork.cs | 4 +- .../Weapons/SpearsAndForks/ShortSpear.cs | 4 +- .../Items/Weapons/SpearsAndForks/Spear.cs | 4 +- .../Weapons/SpearsAndForks/TribalSpear.cs | 4 +- .../Items/Weapons/SpearsAndForks/WarFork.cs | 4 +- .../Items/Weapons/Staves/BaseStaff.cs | 4 +- .../Items/Weapons/Staves/BlackStaff.cs | 4 +- .../Items/Weapons/Staves/GlacialStaff.cs | 4 +- .../Items/Weapons/Staves/GlassStaff.cs | 4 +- .../Items/Weapons/Staves/GnarledStaff.cs | 4 +- .../Items/Weapons/Staves/QuarterStaff.cs | 4 +- .../Items/Weapons/Staves/SerpentstoneStaff.cs | 4 +- .../Items/Weapons/Staves/ShepherdsCrook.cs | 3 +- .../Weapons/Swords/AdventurersMachete.cs | 4 +- .../Items/Weapons/Swords/BaseSword.cs | 3 +- .../Items/Weapons/Swords/BloodBlade.cs | 4 +- .../Items/Weapons/Swords/BoneHarvester.cs | 4 +- .../Items/Weapons/Swords/BoneMachete.cs | 3 +- .../Items/Weapons/Swords/Broadsword.cs | 4 +- .../Weapons/Swords/ChargedAssassinSpike.cs | 4 +- .../Weapons/Swords/CorruptedRuneBlade.cs | 4 +- .../Items/Weapons/Swords/CrescentBlade.cs | 4 +- .../UOContent/Items/Weapons/Swords/Cutlass.cs | 4 +- .../Items/Weapons/Swords/DarkglowScimitar.cs | 4 +- .../Items/Weapons/Swords/DiseasedMachete.cs | 4 +- .../Items/Weapons/Swords/DreadSword.cs | 4 +- .../Items/Weapons/Swords/FierySpellblade.cs | 4 +- .../Items/Weapons/Swords/GargishTalwar.cs | 4 +- .../Items/Weapons/Swords/GlassSword.cs | 4 +- .../Items/Weapons/Swords/IcyScimitar.cs | 4 +- .../Items/Weapons/Swords/IcySpellblade.cs | 4 +- .../UOContent/Items/Weapons/Swords/Katana.cs | 4 +- .../Items/Weapons/Swords/KnightsWarCleaver.cs | 4 +- .../UOContent/Items/Weapons/Swords/Kryss.cs | 4 +- .../UOContent/Items/Weapons/Swords/Lance.cs | 4 +- .../Items/Weapons/Swords/LeafbladeOfEase.cs | 4 +- .../Items/Weapons/Swords/Longsword.cs | 4 +- .../Items/Weapons/Swords/Luckblade.cs | 4 +- .../Items/Weapons/Swords/MacheteOfDefense.cs | 4 +- .../Weapons/Swords/MagekillerAssassinSpike.cs | 4 +- .../Weapons/Swords/MagekillerLeafblade.cs | 4 +- .../Items/Weapons/Swords/MagesRuneBlade.cs | 4 +- .../Items/Weapons/Swords/OrcishMachete.cs | 4 +- .../Weapons/Swords/RuneBladeOfKnowledge.cs | 4 +- .../Items/Weapons/Swords/Runesabre.cs | 4 +- .../Items/Weapons/Swords/Scimitar.cs | 4 +- .../Weapons/Swords/SerratedWarCleaver.cs | 4 +- .../Weapons/Swords/SpellbladeOfDefense.cs | 4 +- .../Items/Weapons/Swords/ThinLongsword.cs | 4 +- .../Items/Weapons/Swords/TrueAssassinSpike.cs | 4 +- .../Items/Weapons/Swords/TrueLeafblade.cs | 4 +- .../Weapons/Swords/TrueRadiantScimitar.cs | 4 +- .../Items/Weapons/Swords/TrueSpellblade.cs | 4 +- .../Items/Weapons/Swords/TrueWarCleaver.cs | 4 +- .../Items/Weapons/Swords/TwinklingScimitar.cs | 4 +- .../Items/Weapons/Swords/VikingSword.cs | 4 +- .../Weapons/Swords/WoundingAssassinSpike.cs | 4 +- .../Items/Weapons/Wooden/AncientWildStaff.cs | 4 +- .../Weapons/Wooden/ArcanistsWildStaff.cs | 4 +- .../Items/Weapons/Wooden/HardenedWildStaff.cs | 4 +- .../Items/Weapons/Wooden/ThornedWildStaff.cs | 4 +- .../Migrations/Server.Items.Aquarium.v4.json | 4 +- .../Migrations/Server.Items.BaseArmor.v8.json | 8 +- .../Migrations/Server.Items.BaseArmor.v9.json | 6 +- .../Server.Items.BaseClothing.v6.json | 10 +- .../Server.Items.BaseClothing.v7.json | 8 +- .../Server.Items.ElvenGlasses.v0.json | 2 +- Projects/UOContent/Misc/AOS.cs | 7 +- .../Monsters/Humanoid/Magic/EvilMage.cs | 3 +- .../Monsters/Humanoid/Magic/EvilMageLord.cs | 3 +- .../Spells/Bushido/MomentumStrike.cs | 1 - Projects/UOContent/UOContent.csproj | 5 +- 740 files changed, 2552 insertions(+), 1743 deletions(-) delete mode 100644 Projects/Server/Serialization/Attributes/AfterDeserializationAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/DeltaDateTimeAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/DeserializeTimerFieldAttribute.cs delete mode 100755 Projects/Server/Serialization/Attributes/EmbeddedSerializableAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/EncodedIntAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/InternStringAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/InvalidatePropertiesAttribute.cs delete mode 100755 Projects/Server/Serialization/Attributes/SerializableAttribute.cs delete mode 100755 Projects/Server/Serialization/Attributes/SerializableFieldAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/SerializableFieldAttributeAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/SerializableFieldDefaultAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/SerializableFieldSaveFlagAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/SerializableParentAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/TidyAttribute.cs delete mode 100644 Projects/Server/Serialization/Attributes/TimerDriftAttribute.cs diff --git a/.config/dotnet-tools.json b/.config/dotnet-tools.json index e0dbc85fc..524152c71 100644 --- a/.config/dotnet-tools.json +++ b/.config/dotnet-tools.json @@ -3,7 +3,7 @@ "isRoot": true, "tools": { "modernuoschemagenerator": { - "version": "1.0.2", + "version": "2.0.3", "commands": [ "ModernUOSchemaGenerator" ] diff --git a/Projects/Server/Collections/BitArray.cs b/Projects/Server/Collections/BitArray.cs index 9df8f5441..10f87459d 100644 --- a/Projects/Server/Collections/BitArray.cs +++ b/Projects/Server/Collections/BitArray.cs @@ -15,7 +15,7 @@ namespace Server.Collections; // A vector of bits. Use this to store bits efficiently, without having to do bit // shifting yourself. -[System.Serializable] +[Serializable] public sealed class BitArray : ICollection, ICloneable { private int[] m_array; // Do not rename (binary serialization) diff --git a/Projects/Server/Main.cs b/Projects/Server/Main.cs index d7af5d17c..f9ab272b7 100644 --- a/Projects/Server/Main.cs +++ b/Projects/Server/Main.cs @@ -599,7 +599,7 @@ namespace Server if (World.DirtyTrackingEnabled) { var manualDirtyCheckingAttribute = type.GetCustomAttribute(false); - var codeGennedAttribute = type.GetCustomAttribute(false); + var codeGennedAttribute = type.GetCustomAttribute(false); if (manualDirtyCheckingAttribute == null && codeGennedAttribute == null) { diff --git a/Projects/Server/Serialization/Attributes/AfterDeserializationAttribute.cs b/Projects/Server/Serialization/Attributes/AfterDeserializationAttribute.cs deleted file mode 100644 index 97386a53d..000000000 --- a/Projects/Server/Serialization/Attributes/AfterDeserializationAttribute.cs +++ /dev/null @@ -1,38 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: AfterDeserializationAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that this method should be executed after deserializing the object. - /// Method must have no parameters and return void. - /// - [AttributeUsage(AttributeTargets.Method)] - public class AfterDeserializationAttribute : Attribute - { - /// - /// Indicates whether the source generator should execute the method this is attached to immediately, or when - /// this is set to false, execute it using a Timer Delay. - /// - /// Note: Use false when the after deserialization involves deleting objects. This is to prevent corrupted - /// deserialization by removing an object before it has finished deserializing. - /// - public bool Synchronous { get; set; } - - public AfterDeserializationAttribute(bool synchronous = true) => Synchronous = true; - } -} diff --git a/Projects/Server/Serialization/Attributes/DeltaDateTimeAttribute.cs b/Projects/Server/Serialization/Attributes/DeltaDateTimeAttribute.cs deleted file mode 100644 index aa77bdacb..000000000 --- a/Projects/Server/Serialization/Attributes/DeltaDateTimeAttribute.cs +++ /dev/null @@ -1,27 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: DeltaDateTimeAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that a serializable DateTime field or property is for delta time (duration) - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class DeltaDateTimeAttribute : Attribute - { - } -} diff --git a/Projects/Server/Serialization/Attributes/DeserializeTimerFieldAttribute.cs b/Projects/Server/Serialization/Attributes/DeserializeTimerFieldAttribute.cs deleted file mode 100644 index fb33ce62b..000000000 --- a/Projects/Server/Serialization/Attributes/DeserializeTimerFieldAttribute.cs +++ /dev/null @@ -1,34 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: DeserializeTimerFieldAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that the specified serializable field, which must be a timer, - /// can be deserialized by this method. The method signature should look like this: - /// - /// [DeserializeTimerField(0)] - /// private void DeserializeTimer(TimeSpan delay) - /// - [AttributeUsage(AttributeTargets.Method)] - public sealed class DeserializeTimerFieldAttribute : Attribute - { - public int Order { get; } - - public DeserializeTimerFieldAttribute(int order) => Order = order; - } -} diff --git a/Projects/Server/Serialization/Attributes/EmbeddedSerializableAttribute.cs b/Projects/Server/Serialization/Attributes/EmbeddedSerializableAttribute.cs deleted file mode 100755 index 8513097ef..000000000 --- a/Projects/Server/Serialization/Attributes/EmbeddedSerializableAttribute.cs +++ /dev/null @@ -1,32 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: EmbeddedSerializableAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - [AttributeUsage(AttributeTargets.Class)] - public sealed class EmbeddedSerializableAttribute : Attribute - { - public int Version { get; } - public bool EncodedVersion { get; } - - public EmbeddedSerializableAttribute(int version, bool encodedVersion = true) - { - Version = version; - EncodedVersion = encodedVersion; - } - } -} diff --git a/Projects/Server/Serialization/Attributes/EncodedIntAttribute.cs b/Projects/Server/Serialization/Attributes/EncodedIntAttribute.cs deleted file mode 100644 index 3cfd5dbaa..000000000 --- a/Projects/Server/Serialization/Attributes/EncodedIntAttribute.cs +++ /dev/null @@ -1,27 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: EncodedIntAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that a serializable int field or property should be encoded - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class EncodedIntAttribute : Attribute - { - } -} diff --git a/Projects/Server/Serialization/Attributes/InternStringAttribute.cs b/Projects/Server/Serialization/Attributes/InternStringAttribute.cs deleted file mode 100644 index 968b0dd39..000000000 --- a/Projects/Server/Serialization/Attributes/InternStringAttribute.cs +++ /dev/null @@ -1,27 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: InternalizeString.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that a serializable string field or property should be internalized on deserialization - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class InternStringAttribute : Attribute - { - } -} diff --git a/Projects/Server/Serialization/Attributes/InvalidatePropertiesAttribute.cs b/Projects/Server/Serialization/Attributes/InvalidatePropertiesAttribute.cs deleted file mode 100644 index b6f20f41e..000000000 --- a/Projects/Server/Serialization/Attributes/InvalidatePropertiesAttribute.cs +++ /dev/null @@ -1,28 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: InvalidatePropertiesAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that this field will execute an InvalidateProperties when the value is set - /// and the value is different from the current value. - /// - [AttributeUsage(AttributeTargets.Field)] - public class InvalidatePropertiesAttribute : Attribute - { - } -} diff --git a/Projects/Server/Serialization/Attributes/SerializableAttribute.cs b/Projects/Server/Serialization/Attributes/SerializableAttribute.cs deleted file mode 100755 index 052d81d11..000000000 --- a/Projects/Server/Serialization/Attributes/SerializableAttribute.cs +++ /dev/null @@ -1,32 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright (C) 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: SerializableEntityAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - [AttributeUsage(AttributeTargets.Class)] - public sealed class SerializableAttribute : Attribute - { - public int Version { get; } - public bool EncodedVersion { get; } - - public SerializableAttribute(int version, bool encodedVersion = true) - { - Version = version; - EncodedVersion = encodedVersion; - } - } -} diff --git a/Projects/Server/Serialization/Attributes/SerializableFieldAttribute.cs b/Projects/Server/Serialization/Attributes/SerializableFieldAttribute.cs deleted file mode 100755 index 52a3dc097..000000000 --- a/Projects/Server/Serialization/Attributes/SerializableFieldAttribute.cs +++ /dev/null @@ -1,46 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright (C) 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: SerializableFieldAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that this field or property should be serialized. - /// When used on a field, the source generator will generate the property entirely. - /// When used on a property, the user must call this.MarkDirty() after reassigning the value or modifying the value internally. - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public sealed class SerializableFieldAttribute : Attribute - { - public int Order { get; } - public string PropertyGetter { get; } - public string? PropertySetter { get; } - public bool IsVirtual { get; } - - public SerializableFieldAttribute( - int order, - string getter = "public", - string setter = "public", - bool isVirtual = false - ) - { - Order = order; - PropertyGetter = getter; - PropertySetter = setter; - IsVirtual = isVirtual; - } - } -} diff --git a/Projects/Server/Serialization/Attributes/SerializableFieldAttributeAttribute.cs b/Projects/Server/Serialization/Attributes/SerializableFieldAttributeAttribute.cs deleted file mode 100644 index 1cf8d6bb5..000000000 --- a/Projects/Server/Serialization/Attributes/SerializableFieldAttributeAttribute.cs +++ /dev/null @@ -1,46 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: SerializableFieldAttributeAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that this field will need this attribute on the generated property - /// [SerializableFieldAttr("[CommandProperty(AccessLevel.GameMaster)]")] - /// -or- - /// [SerializableFieldAttr(typeof(CommandPropertyAttribute), AccessLevel.GameMaster)] - /// - [AttributeUsage(AttributeTargets.Field, AllowMultiple = true)] - public sealed class SerializableFieldAttrAttribute : Attribute - { - public string AttributeString { get; } - public Type AttributeType { get; } - public object[] Arguments { get; } - - public SerializableFieldAttrAttribute(string attrString) => AttributeString = attrString; - - public SerializableFieldAttrAttribute(Type type, params object[] args) - { - if (typeof(Attribute).IsAssignableFrom(type)) - { - throw new ArgumentException($"Argument {nameof(type)} must be an attribute."); - } - - AttributeType = type; - Arguments = args; - } - } -} diff --git a/Projects/Server/Serialization/Attributes/SerializableFieldDefaultAttribute.cs b/Projects/Server/Serialization/Attributes/SerializableFieldDefaultAttribute.cs deleted file mode 100644 index 35ba44256..000000000 --- a/Projects/Server/Serialization/Attributes/SerializableFieldDefaultAttribute.cs +++ /dev/null @@ -1,35 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: SerializableFieldDefaultAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that the field with the same order should use this default value - /// while deserializing. The default is used when the save flag indicates that we don't need to serialize the value - /// because this default can be used instead. - /// - /// Note: This is only used for the current version, not previous versions. Previous versions will always use a default - /// value for that type if it is not deserialized. - /// - [AttributeUsage(AttributeTargets.Method)] - public sealed class SerializableFieldDefaultAttribute : Attribute - { - public int Order { get; } - - public SerializableFieldDefaultAttribute(int order) => Order = order; - } -} diff --git a/Projects/Server/Serialization/Attributes/SerializableFieldSaveFlagAttribute.cs b/Projects/Server/Serialization/Attributes/SerializableFieldSaveFlagAttribute.cs deleted file mode 100644 index fb9c16184..000000000 --- a/Projects/Server/Serialization/Attributes/SerializableFieldSaveFlagAttribute.cs +++ /dev/null @@ -1,30 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: SerializableFieldSaveFlagAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that the field with the same order value should use a save flag. - /// - [AttributeUsage(AttributeTargets.Method)] - public sealed class SerializableFieldSaveFlagAttribute : Attribute - { - public int Order { get; } - - public SerializableFieldSaveFlagAttribute(int order) => Order = order; - } -} diff --git a/Projects/Server/Serialization/Attributes/SerializableParentAttribute.cs b/Projects/Server/Serialization/Attributes/SerializableParentAttribute.cs deleted file mode 100644 index 12526d7f3..000000000 --- a/Projects/Server/Serialization/Attributes/SerializableParentAttribute.cs +++ /dev/null @@ -1,30 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: SerializableParentAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that this field or property indicates the ISerializable parent of this class. - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public sealed class SerializableParentAttribute : Attribute - { - public SerializableParentAttribute() - { - } - } -} diff --git a/Projects/Server/Serialization/Attributes/TidyAttribute.cs b/Projects/Server/Serialization/Attributes/TidyAttribute.cs deleted file mode 100644 index 0e2ba92d9..000000000 --- a/Projects/Server/Serialization/Attributes/TidyAttribute.cs +++ /dev/null @@ -1,27 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: TidyAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that a serializable list should be tidied up - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class TidyAttribute : Attribute - { - } -} diff --git a/Projects/Server/Serialization/Attributes/TimerDriftAttribute.cs b/Projects/Server/Serialization/Attributes/TimerDriftAttribute.cs deleted file mode 100644 index 87bb7174d..000000000 --- a/Projects/Server/Serialization/Attributes/TimerDriftAttribute.cs +++ /dev/null @@ -1,28 +0,0 @@ -/************************************************************************* - * ModernUO * - * Copyright 2019-2021 - ModernUO Development Team * - * Email: hi@modernuo.com * - * File: TimerDriftAttribute.cs * - * * - * This program is free software: you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation, either version 3 of the License, or * - * (at your option) any later version. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program. If not, see . * - *************************************************************************/ - -using System; - -namespace Server -{ - /// - /// Hints to the source generator that this serializable timer field or property will drift - /// during deserialization. - /// - [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)] - public class TimerDriftAttribute : Attribute - { - } -} diff --git a/Projects/Server/Server.csproj b/Projects/Server/Server.csproj index 5f4e998c5..68191b6ec 100755 --- a/Projects/Server/Server.csproj +++ b/Projects/Server/Server.csproj @@ -38,7 +38,8 @@ - + + diff --git a/Projects/UOContent.Tests/Tests/Accounting/Security/PasswordProtectionTest.cs b/Projects/UOContent.Tests/Tests/Accounting/Security/PasswordProtectionTest.cs index 380ab8954..1719f5295 100644 --- a/Projects/UOContent.Tests/Tests/Accounting/Security/PasswordProtectionTest.cs +++ b/Projects/UOContent.Tests/Tests/Accounting/Security/PasswordProtectionTest.cs @@ -1,5 +1,4 @@ using System; -using System.Security.Cryptography; using Server.Accounting; using Server.Accounting.Security; using Xunit; diff --git a/Projects/UOContent/Accounting/Account.cs b/Projects/UOContent/Accounting/Account.cs index 632597858..61b9dae64 100644 --- a/Projects/UOContent/Accounting/Account.cs +++ b/Projects/UOContent/Accounting/Account.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Net; using System.Runtime.CompilerServices; using System.Xml; +using ModernUO.Serialization; using Server.Accounting.Security; using Server.Misc; using Server.Mobiles; @@ -11,7 +12,7 @@ using Server.Network; namespace Server.Accounting { - [Serializable(4)] + [SerializationGenerator(4)] public partial class Account : IAccount, IComparable, ISerializable { public static readonly TimeSpan YoungDuration = TimeSpan.FromHours(40.0); diff --git a/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs b/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs index 2103ff656..42777a342 100644 --- a/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs +++ b/Projects/UOContent/Engines/Bulk Orders/BaseBOD.cs @@ -1,8 +1,9 @@ using System.Collections.Generic; +using ModernUO.Serialization; namespace Server.Engines.BulkOrders { - [Serializable(1)] + [SerializationGenerator(1)] public abstract partial class BaseBOD : Item { public BaseBOD(int hue, int amountMax, bool requireExeptional, BulkMaterialType material) : this() diff --git a/Projects/UOContent/Engines/Bulk Orders/LargeBOD.cs b/Projects/UOContent/Engines/Bulk Orders/LargeBOD.cs index b6b8c77b8..c20ec4e86 100644 --- a/Projects/UOContent/Engines/Bulk Orders/LargeBOD.cs +++ b/Projects/UOContent/Engines/Bulk Orders/LargeBOD.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Mobiles; namespace Server.Engines.BulkOrders { - [Serializable(1)] + [SerializationGenerator(1)] public abstract partial class LargeBOD : BaseBOD { [InvalidateProperties] diff --git a/Projects/UOContent/Engines/Bulk Orders/LargeSmithBOD.cs b/Projects/UOContent/Engines/Bulk Orders/LargeSmithBOD.cs index e2aace6c6..07fc832dd 100644 --- a/Projects/UOContent/Engines/Bulk Orders/LargeSmithBOD.cs +++ b/Projects/UOContent/Engines/Bulk Orders/LargeSmithBOD.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Engines.BulkOrders { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeSmithBOD : LargeBOD { public static double[] m_BlacksmithMaterialChances = diff --git a/Projects/UOContent/Engines/Bulk Orders/LargeTailorBOD.cs b/Projects/UOContent/Engines/Bulk Orders/LargeTailorBOD.cs index 39d79e8e3..f8579e289 100644 --- a/Projects/UOContent/Engines/Bulk Orders/LargeTailorBOD.cs +++ b/Projects/UOContent/Engines/Bulk Orders/LargeTailorBOD.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Engines.BulkOrders { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeTailorBOD : LargeBOD { public static double[] m_TailoringMaterialChances = diff --git a/Projects/UOContent/Engines/Bulk Orders/SmallSmithBOD.cs b/Projects/UOContent/Engines/Bulk Orders/SmallSmithBOD.cs index dc5b06095..d91f2a84e 100644 --- a/Projects/UOContent/Engines/Bulk Orders/SmallSmithBOD.cs +++ b/Projects/UOContent/Engines/Bulk Orders/SmallSmithBOD.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Engines.Craft; namespace Server.Engines.BulkOrders { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallSmithBOD : SmallBOD { public static double[] m_BlacksmithMaterialChances = diff --git a/Projects/UOContent/Engines/Bulk Orders/SmallTailorBOD.cs b/Projects/UOContent/Engines/Bulk Orders/SmallTailorBOD.cs index 598779cbd..9a0c6ed13 100644 --- a/Projects/UOContent/Engines/Bulk Orders/SmallTailorBOD.cs +++ b/Projects/UOContent/Engines/Bulk Orders/SmallTailorBOD.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Engines.Craft; namespace Server.Engines.BulkOrders { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallTailorBOD : SmallBOD { public static double[] m_TailoringMaterialChances = diff --git a/Projects/UOContent/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs b/Projects/UOContent/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs index dce038cf1..2e88a0a9b 100644 --- a/Projects/UOContent/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs +++ b/Projects/UOContent/Holiday Stuff/Christmas/2010/Addons/FireFliesDeed.cs @@ -1,3 +1,4 @@ +using ModernUO.Serialization; using Server.Gumps; using Server.Multis; using Server.Network; @@ -5,7 +6,7 @@ using Server.Targeting; namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class Fireflies : Item, IAddon { [Constructible] @@ -59,7 +60,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class FirefliesDeed : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/AngelDecoration.cs b/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/AngelDecoration.cs index 2242706da..4b6d4969c 100644 --- a/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/AngelDecoration.cs +++ b/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/AngelDecoration.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.AngelDecoration"), Flippable(0x46FA, 0x46FB)] public partial class AngelDecoration : Item { diff --git a/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/RockingHorse.cs b/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/RockingHorse.cs index a33fbf70a..f2588cf46 100644 --- a/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/RockingHorse.cs +++ b/Projects/UOContent/Holiday Stuff/Christmas/2010/Items/RockingHorse.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.RockingHorse"), Flippable(0x4214, 0x4215)] public partial class RockingHorse : Item { diff --git a/Projects/UOContent/Holiday Stuff/Easter/2011/Items/DragonEasterEgg.cs b/Projects/UOContent/Holiday Stuff/Easter/2011/Items/DragonEasterEgg.cs index 5d936e8ca..bd0212152 100644 --- a/Projects/UOContent/Holiday Stuff/Easter/2011/Items/DragonEasterEgg.cs +++ b/Projects/UOContent/Holiday Stuff/Easter/2011/Items/DragonEasterEgg.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DragonEasterEgg : Item, IDyable { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2006/Engines/TrickOrTreat.cs b/Projects/UOContent/Holiday Stuff/Halloween/2006/Engines/TrickOrTreat.cs index c66f1ccf2..9eda894b9 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2006/Engines/TrickOrTreat.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2006/Engines/TrickOrTreat.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Runtime.CompilerServices; +using ModernUO.Serialization; using Server.Events.Halloween; using Server.Items; using Server.Mobiles; @@ -232,7 +233,7 @@ namespace Server.Engines.Events } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NaughtyTwin : BaseCreature { private static readonly Point3D[] Felucca_Locations = diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/HalloweenPumpkin.cs b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/HalloweenPumpkin.cs index 7197c531e..896af55d9 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/HalloweenPumpkin.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/HalloweenPumpkin.cs @@ -1,8 +1,9 @@ -using Server.Mobiles; +using ModernUO.Serialization; +using Server.Mobiles; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class HalloweenPumpkin : Item { private static readonly string[] m_Staff = diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/PumpkinScarecrow.cs b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/PumpkinScarecrow.cs index 2d27e9e53..b6983203c 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/PumpkinScarecrow.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/PumpkinScarecrow.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PumpkinScarecrow : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/RuinedTapestry.cs b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/RuinedTapestry.cs index af265221c..db86b8f0a 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/RuinedTapestry.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/RuinedTapestry.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RuinedTapestry : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/TwilightLantern.cs b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/TwilightLantern.cs index 456804a67..5152901d2 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/TwilightLantern.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2006/Items/TwilightLantern.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TwilightLantern : Lantern { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/CreepyCake.cs b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/CreepyCake.cs index 605b1446c..268c25ae0 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/CreepyCake.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/CreepyCake.cs @@ -1,10 +1,12 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { /* first seen halloween 2009. subsequently in 2010, 2011 and 2012. GM Beggar-only Semi-Rare Treats */ - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CreepyCake : Food { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/HarvestWine.cs b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/HarvestWine.cs index d657d6dcb..ca0513ac4 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/HarvestWine.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/HarvestWine.cs @@ -1,10 +1,12 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { /* first seen halloween 2009. subsequently in 2010, 2011 and 2012. GM Beggar-only Semi-Rare Treats */ - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HarvestWine : BeverageBottle { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MrPlainsCookies.cs b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MrPlainsCookies.cs index 7b70e3a31..9e2c2b670 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MrPlainsCookies.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MrPlainsCookies.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MrPlainsCookies : Food { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MurkyMilk.cs b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MurkyMilk.cs index 1a93b89fb..eb5ab5b87 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MurkyMilk.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/MurkyMilk.cs @@ -1,10 +1,12 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { /* first seen halloween 2009. subsequently in 2010, 2011 and 2012. GM Beggar-only Semi-Rare Treats */ - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MurkyMilk : Pitcher { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/PumpkinPizza.cs b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/PumpkinPizza.cs index 29c02dcbc..ef277242f 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/PumpkinPizza.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2009/Foods/PumpkinPizza.cs @@ -1,10 +1,12 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { /* first seen halloween 2009. subsequently in 2010, 2011 and 2012. GM Beggar-only Semi-Rare Treats */ - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PumpkinPizza : CheesePizza { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/GrimWarning.cs b/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/GrimWarning.cs index 9376063eb..3a5eef292 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/GrimWarning.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/GrimWarning.cs @@ -1,10 +1,12 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { /* first seen halloween 2009. subsequently in 2010, 2011 and 2012. GM Beggar-only Semi-Rare Treats */ - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GrimWarning : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/SkullsOnPike.cs b/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/SkullsOnPike.cs index e391394fc..76d7bf978 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/SkullsOnPike.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2009/Items/SkullsOnPike.cs @@ -1,10 +1,12 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { /* first seen halloween 2009. subsequently in 2010, 2011 and 2012. GM Beggar-only Semi-Rare Treats */ - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SkullsOnPike : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ChairInAGhostCostume.cs b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ChairInAGhostCostume.cs index 73a5981b1..7b981aa3d 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ChairInAGhostCostume.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ChairInAGhostCostume.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ChairInAGhostCostume : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ColoredSmallWebs.cs b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ColoredSmallWebs.cs index d4dec3a11..33f5c0891 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ColoredSmallWebs.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ColoredSmallWebs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ColoredSmallWebs : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ExcellentIronMaiden.cs b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ExcellentIronMaiden.cs index 502eb1755..5213054b3 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ExcellentIronMaiden.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/ExcellentIronMaiden.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ExcellentIronMaiden : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/HalloweenGuillotine.cs b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/HalloweenGuillotine.cs index 6effbfe54..8eb576c92 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/HalloweenGuillotine.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2010/Items/HalloweenGuillotine.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HalloweenGuillotine : Item { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs index 4ea4e1800..8fc991ddc 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/BasePaintedMask.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.ClownMask", "Server.Items.DaemonMask", "Server.Items.PlagueMask")] public partial class BasePaintedMask : Item { diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/ClownMask.cs b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/ClownMask.cs index 6d3819aea..735285b54 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/ClownMask.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/ClownMask.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PaintedEvilClownMask : BasePaintedMask { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/DaemonMask.cs b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/DaemonMask.cs index e94e9b598..9d38be46d 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/DaemonMask.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/DaemonMask.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PaintedDaemonMask : BasePaintedMask { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/PlagueMask.cs b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/PlagueMask.cs index ff03d1bcb..320ac732d 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/PlagueMask.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2011/Items/PlagueMask.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PaintedPlagueMask : BasePaintedMask { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2011/Mobiles/PumpkinHead.cs b/Projects/UOContent/Holiday Stuff/Halloween/2011/Mobiles/PumpkinHead.cs index 8f1a35d21..954bd991d 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2011/Mobiles/PumpkinHead.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2011/Mobiles/PumpkinHead.cs @@ -1,10 +1,11 @@ using System; +using ModernUO.Serialization; using Server.Items; using Server.Items.Holiday; namespace Server.Mobiles { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PumpkinHead : BaseCreature { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs b/Projects/UOContent/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs index 20fd8e5ea..efb2cf1e0 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2012/Engines/PlayerZombies.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Events.Halloween; using Server.Items; using Server.Mobiles; @@ -132,7 +133,7 @@ namespace Server.Engines.Events } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlayerBones : BaseContainer { [Constructible] @@ -150,7 +151,7 @@ namespace Server.Engines.Events } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ZombieSkeleton : BaseCreature { [SerializableField(0, "private", "private")] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/EvilJesterMask.cs b/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/EvilJesterMask.cs index ac7e9d8ea..7cd77753d 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/EvilJesterMask.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/EvilJesterMask.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PaintedEvilJesterMask : BasePaintedMask { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/PorcelainMask.cs b/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/PorcelainMask.cs index 630fa6aba..8a194e968 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/PorcelainMask.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/2012/Items/PorcelainMask.cs @@ -1,6 +1,8 @@ -namespace Server.Items.Holiday +using ModernUO.Serialization; + +namespace Server.Items.Holiday { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PaintedPorcelainMask : BasePaintedMask { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/Treats/Jellybeans.cs b/Projects/UOContent/Holiday Stuff/Halloween/Treats/Jellybeans.cs index 5e6d763c8..5b7279389 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/Treats/Jellybeans.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/Treats/Jellybeans.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class JellyBeans : CandyCane { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/Treats/Lollipops.cs b/Projects/UOContent/Holiday Stuff/Halloween/Treats/Lollipops.cs index a768fff99..280be39c6 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/Treats/Lollipops.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/Treats/Lollipops.cs @@ -1,7 +1,9 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { [TypeAlias("Server.Items.Lollipop")] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Lollipops : CandyCane { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/Treats/NougatSwirl.cs b/Projects/UOContent/Holiday Stuff/Halloween/Treats/NougatSwirl.cs index eb9942868..750239324 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/Treats/NougatSwirl.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/Treats/NougatSwirl.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NougatSwirl : CandyCane { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/Treats/Taffy.cs b/Projects/UOContent/Holiday Stuff/Halloween/Treats/Taffy.cs index 2b2571604..814e4a822 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/Treats/Taffy.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/Treats/Taffy.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Taffy : CandyCane { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Halloween/Treats/WrappedCandy.cs b/Projects/UOContent/Holiday Stuff/Halloween/Treats/WrappedCandy.cs index eb86ac43d..8df86c688 100644 --- a/Projects/UOContent/Holiday Stuff/Halloween/Treats/WrappedCandy.cs +++ b/Projects/UOContent/Holiday Stuff/Halloween/Treats/WrappedCandy.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WrappedCandy : CandyCane { [Constructible] diff --git a/Projects/UOContent/Holiday Stuff/Valentine/2010/Items/AnimatedHeartShapedBox.cs b/Projects/UOContent/Holiday Stuff/Valentine/2010/Items/AnimatedHeartShapedBox.cs index e9e320e0c..3429c0af4 100644 --- a/Projects/UOContent/Holiday Stuff/Valentine/2010/Items/AnimatedHeartShapedBox.cs +++ b/Projects/UOContent/Holiday Stuff/Valentine/2010/Items/AnimatedHeartShapedBox.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x49CC, 0x49D0)] public partial class AnimatedHeartShapedBox : HeartShapedBox { diff --git a/Projects/UOContent/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs b/Projects/UOContent/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs index 119b167fa..700080df4 100644 --- a/Projects/UOContent/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs +++ b/Projects/UOContent/Holiday Stuff/Valentine/2011/Items/StValentinesBears.cs @@ -1,10 +1,11 @@ using System; +using ModernUO.Serialization; using Server.Gumps; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class StValentinesBear : Item { [InternString] @@ -190,7 +191,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x48E0, 0x48E1)] public partial class StValentinesPanda : StValentinesBear { @@ -200,7 +201,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x48E2, 0x48E3)] public partial class StValentinesPolarBear : StValentinesBear { diff --git a/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidStatue.cs b/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidStatue.cs index a86ba5a56..20a11413a 100644 --- a/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidStatue.cs +++ b/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidStatue.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x4F7C, 0x4F7D)] public partial class CupidStatue : Item { diff --git a/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs b/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs index 184c9cec5..7b302e836 100644 --- a/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs +++ b/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/CupidsArrow.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CupidsArrow : Item { [InternString] diff --git a/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/HeartShapedBox.cs b/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/HeartShapedBox.cs index 5f749777f..5882a3780 100644 --- a/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/HeartShapedBox.cs +++ b/Projects/UOContent/Holiday Stuff/Valentine/2012/Items/HeartShapedBox.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x49CA, 0x49CB)] public partial class HeartShapedBox : BaseContainer { diff --git a/Projects/UOContent/Items/Addons/AbbatoirAddon.cs b/Projects/UOContent/Items/Addons/AbbatoirAddon.cs index 19db8af81..a3c1979ac 100644 --- a/Projects/UOContent/Items/Addons/AbbatoirAddon.cs +++ b/Projects/UOContent/Items/Addons/AbbatoirAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AbbatoirAddon : BaseAddon { [Constructible] @@ -20,7 +22,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new AbbatoirDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AbbatoirDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/AddonComponent.cs b/Projects/UOContent/Items/Addons/AddonComponent.cs index 90d74dbc0..3cf10fc20 100644 --- a/Projects/UOContent/Items/Addons/AddonComponent.cs +++ b/Projects/UOContent/Items/Addons/AddonComponent.cs @@ -1,9 +1,10 @@ +using ModernUO.Serialization; using Server.Engines.Craft; namespace Server.Items { [Anvil] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnvilComponent : AddonComponent { [Constructible] @@ -13,7 +14,7 @@ namespace Server.Items } [Forge] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ForgeComponent : AddonComponent { [Constructible] @@ -22,7 +23,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LocalizedAddonComponent : AddonComponent { [InvalidateProperties] @@ -36,7 +37,7 @@ namespace Server.Items public override int LabelNumber => _number; } - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class AddonComponent : Item, IChoppable { private static readonly LightEntry[] m_Entries = diff --git a/Projects/UOContent/Items/Addons/AddonContainerComponent.cs b/Projects/UOContent/Items/Addons/AddonContainerComponent.cs index 509d430ea..7c612fd03 100644 --- a/Projects/UOContent/Items/Addons/AddonContainerComponent.cs +++ b/Projects/UOContent/Items/Addons/AddonContainerComponent.cs @@ -1,12 +1,13 @@ using System; using System.Buffers.Binary; using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AddonContainerComponent : Item, IChoppable { [Constructible] @@ -107,7 +108,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LocalizedContainerComponent : AddonContainerComponent { [SerializableField(0, setter: "private")] diff --git a/Projects/UOContent/Items/Addons/AlchemistTableEastAddon.cs b/Projects/UOContent/Items/Addons/AlchemistTableEastAddon.cs index a530b0d33..30492ddae 100644 --- a/Projects/UOContent/Items/Addons/AlchemistTableEastAddon.cs +++ b/Projects/UOContent/Items/Addons/AlchemistTableEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class AlchemistTableEastAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new AlchemistTableEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class AlchemistTableEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/AlchemistTableSouthAddon.cs b/Projects/UOContent/Items/Addons/AlchemistTableSouthAddon.cs index 8dabc4335..4f667d664 100644 --- a/Projects/UOContent/Items/Addons/AlchemistTableSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/AlchemistTableSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class AlchemistTableSouthAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new AlchemistTableSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class AlchemistTableSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/AnvilEastAddon.cs b/Projects/UOContent/Items/Addons/AnvilEastAddon.cs index 22d9cd232..bad7b1e1f 100644 --- a/Projects/UOContent/Items/Addons/AnvilEastAddon.cs +++ b/Projects/UOContent/Items/Addons/AnvilEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnvilEastAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new AnvilEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnvilEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/AnvilSouthAddon.cs b/Projects/UOContent/Items/Addons/AnvilSouthAddon.cs index fd5383a7c..a1495d3f5 100644 --- a/Projects/UOContent/Items/Addons/AnvilSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/AnvilSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnvilSouthAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new AnvilSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnvilSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ArcaneBookshelfEastAddon.cs b/Projects/UOContent/Items/Addons/ArcaneBookshelfEastAddon.cs index ba197ed84..224d919d5 100644 --- a/Projects/UOContent/Items/Addons/ArcaneBookshelfEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ArcaneBookshelfEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcaneBookshelfEastAddon : BaseAddonContainer { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override int DefaultDropSound => 0x42; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcaneBookshelfEastDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ArcaneBookshelfSouthAddon.cs b/Projects/UOContent/Items/Addons/ArcaneBookshelfSouthAddon.cs index 4a9569f0d..c034d992d 100644 --- a/Projects/UOContent/Items/Addons/ArcaneBookshelfSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ArcaneBookshelfSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcaneBookshelfSouthAddon : BaseAddonContainer { [Constructible] @@ -16,7 +18,7 @@ namespace Server.Items public override int LabelNumber => 1032420; // arcane bookshelf } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcaneBookshelfSouthDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ArcaneCircleAddon.cs b/Projects/UOContent/Items/Addons/ArcaneCircleAddon.cs index dd5b27f0b..931b506ae 100644 --- a/Projects/UOContent/Items/Addons/ArcaneCircleAddon.cs +++ b/Projects/UOContent/Items/Addons/ArcaneCircleAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(1)] + [SerializationGenerator(1)] public partial class ArcaneCircleAddon : BaseAddon { [Constructible] @@ -40,7 +42,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcaneCircleDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ArcanistStatueEastAddon.cs b/Projects/UOContent/Items/Addons/ArcanistStatueEastAddon.cs index a41083159..8c8c3c0f9 100644 --- a/Projects/UOContent/Items/Addons/ArcanistStatueEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ArcanistStatueEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcanistStatueEastAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ArcanistStatueEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcanistStatueEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ArcanistStatueSouthAddon.cs b/Projects/UOContent/Items/Addons/ArcanistStatueSouthAddon.cs index 27e19a4e2..1cfa9f277 100644 --- a/Projects/UOContent/Items/Addons/ArcanistStatueSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ArcanistStatueSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcanistStatueSouthAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ArcanistStatueSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcanistStatueSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ArcheryButteAddon.cs b/Projects/UOContent/Items/Addons/ArcheryButteAddon.cs index 6f417235e..fc9f7eceb 100644 --- a/Projects/UOContent/Items/Addons/ArcheryButteAddon.cs +++ b/Projects/UOContent/Items/Addons/ArcheryButteAddon.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [FlippableAttribute(0x100A /*East*/, 0x100B /*South*/)] public partial class ArcheryButte : AddonComponent { @@ -293,7 +294,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ArcheryButteAddon : BaseAddon { [Constructible] @@ -305,7 +306,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ArcheryButteDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ArcheryButteDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/BallotBox.cs b/Projects/UOContent/Items/Addons/BallotBox.cs index a952c0dfe..cc9a6b99d 100644 --- a/Projects/UOContent/Items/Addons/BallotBox.cs +++ b/Projects/UOContent/Items/Addons/BallotBox.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Gumps; using Server.Multis; using Server.Network; @@ -7,7 +8,7 @@ using Server.Prompts; namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class BallotBox : AddonComponent { public static readonly int MaxTopicLines = 6; @@ -312,7 +313,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class BallotBoxAddon : BaseAddon { public BallotBoxAddon() @@ -321,7 +322,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class BallotBoxDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/BaseAddon.cs b/Projects/UOContent/Items/Addons/BaseAddon.cs index a0507e8cb..f7fbd61c7 100644 --- a/Projects/UOContent/Items/Addons/BaseAddon.cs +++ b/Projects/UOContent/Items/Addons/BaseAddon.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.Multis; namespace Server.Items @@ -20,7 +21,7 @@ namespace Server.Items bool CouldFit(IPoint3D p, Map map); } - [Serializable(3, false)] + [SerializationGenerator(3, false)] public abstract partial class BaseAddon : Item, IChoppable, IAddon { [SerializableField(1, "private", "private")] diff --git a/Projects/UOContent/Items/Addons/BaseAddonContainer.cs b/Projects/UOContent/Items/Addons/BaseAddonContainer.cs index 976a6fc00..547c4900c 100644 --- a/Projects/UOContent/Items/Addons/BaseAddonContainer.cs +++ b/Projects/UOContent/Items/Addons/BaseAddonContainer.cs @@ -1,9 +1,10 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.Multis; namespace Server.Items { - [Serializable(2, false)] + [SerializationGenerator(2, false)] public abstract partial class BaseAddonContainer : BaseContainer, IChoppable, IAddon { [SerializableField(0, setter: "private")] diff --git a/Projects/UOContent/Items/Addons/BaseAddonDeed.cs b/Projects/UOContent/Items/Addons/BaseAddonDeed.cs index 3313140fa..49977289b 100644 --- a/Projects/UOContent/Items/Addons/BaseAddonDeed.cs +++ b/Projects/UOContent/Items/Addons/BaseAddonDeed.cs @@ -1,10 +1,11 @@ +using ModernUO.Serialization; using Server.Multis; using Server.Spells; using Server.Targeting; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x14F0, 0x14EF)] public abstract partial class BaseAddonDeed : Item { diff --git a/Projects/UOContent/Items/Addons/BearRugs.cs b/Projects/UOContent/Items/Addons/BearRugs.cs index 20adc3297..d259305cd 100644 --- a/Projects/UOContent/Items/Addons/BearRugs.cs +++ b/Projects/UOContent/Items/Addons/BearRugs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrownBearRugEastAddon : BaseAddon { [Constructible] @@ -20,7 +22,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new BrownBearRugEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrownBearRugEastDeed : BaseAddonDeed { [Constructible] @@ -32,7 +34,7 @@ namespace Server.Items public override int LabelNumber => 1049397; // a brown bear rug deed facing east } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrownBearRugSouthAddon : BaseAddon { [Constructible] @@ -52,7 +54,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new BrownBearRugSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrownBearRugSouthDeed : BaseAddonDeed { [Constructible] @@ -64,7 +66,7 @@ namespace Server.Items public override int LabelNumber => 1049398; // a brown bear rug deed facing south } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PolarBearRugEastAddon : BaseAddon { [Constructible] @@ -84,7 +86,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new PolarBearRugEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PolarBearRugEastDeed : BaseAddonDeed { [Constructible] @@ -96,7 +98,7 @@ namespace Server.Items public override int LabelNumber => 1049399; // a polar bear rug deed facing east } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PolarBearRugSouthAddon : BaseAddon { [Constructible] @@ -116,7 +118,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new PolarBearRugSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PolarBearRugSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/BloodPentagram.cs b/Projects/UOContent/Items/Addons/BloodPentagram.cs index cbe6f1857..e6e6d2f04 100644 --- a/Projects/UOContent/Items/Addons/BloodPentagram.cs +++ b/Projects/UOContent/Items/Addons/BloodPentagram.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BloodPentagram : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/DartBoard.cs b/Projects/UOContent/Items/Addons/DartBoard.cs index 18333c337..71f973ae6 100644 --- a/Projects/UOContent/Items/Addons/DartBoard.cs +++ b/Projects/UOContent/Items/Addons/DartBoard.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Network; namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class DartBoard : AddonComponent { [Constructible] @@ -86,7 +87,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DartBoardEastAddon : BaseAddon { public DartBoardEastAddon() @@ -97,7 +98,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new DartBoardEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DartBoardEastDeed : BaseAddonDeed { [Constructible] @@ -110,7 +111,7 @@ namespace Server.Items public override int LabelNumber => 1044326; // dartboard (east) } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DartBoardSouthAddon : BaseAddon { public DartBoardSouthAddon() @@ -121,7 +122,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new DartBoardSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DartBoardSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenBedEastAddon.cs b/Projects/UOContent/Items/Addons/ElvenBedEastAddon.cs index 69dd2c529..507282b2c 100644 --- a/Projects/UOContent/Items/Addons/ElvenBedEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenBedEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenBedEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ElvenBedEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenBedEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenBedSouthAddon.cs b/Projects/UOContent/Items/Addons/ElvenBedSouthAddon.cs index 96dc0d99d..5f53debec 100644 --- a/Projects/UOContent/Items/Addons/ElvenBedSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenBedSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenBedSouthAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ElvenBedSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenBedSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenDresserEastAddon.cs b/Projects/UOContent/Items/Addons/ElvenDresserEastAddon.cs index 1bf3bebd2..642021c39 100644 --- a/Projects/UOContent/Items/Addons/ElvenDresserEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenDresserEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenDresserEastAddon : BaseAddonContainer { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override int DefaultDropSound => 0x42; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenDresserEastDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenDresserSouthAddon.cs b/Projects/UOContent/Items/Addons/ElvenDresserSouthAddon.cs index c49be3673..9820186c7 100644 --- a/Projects/UOContent/Items/Addons/ElvenDresserSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenDresserSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenDresserSouthAddon : BaseAddonContainer { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override int DefaultDropSound => 0x42; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenDresserSouthDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenForgeAddon.cs b/Projects/UOContent/Items/Addons/ElvenForgeAddon.cs index 52dd5add9..a3ffc8be5 100644 --- a/Projects/UOContent/Items/Addons/ElvenForgeAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenForgeAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenForgeAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ElvenForgeDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenForgeDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenLoveseatEastAddon.cs b/Projects/UOContent/Items/Addons/ElvenLoveseatEastAddon.cs index cbd01379c..04c6695dc 100644 --- a/Projects/UOContent/Items/Addons/ElvenLoveseatEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenLoveseatEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenLoveseatEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ElvenLoveseatEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenLoveseatEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenLoveseatSouthAddon.cs b/Projects/UOContent/Items/Addons/ElvenLoveseatSouthAddon.cs index 879ca82ce..29b9056da 100644 --- a/Projects/UOContent/Items/Addons/ElvenLoveseatSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenLoveseatSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenLoveseatSouthAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ElvenLoveseatSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenLoveseatSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenSpinningWheelEastAddon.cs b/Projects/UOContent/Items/Addons/ElvenSpinningWheelEastAddon.cs index fe27635e8..e6958aed2 100644 --- a/Projects/UOContent/Items/Addons/ElvenSpinningWheelEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenSpinningWheelEastAddon.cs @@ -1,4 +1,5 @@ using System; +using ModernUO.Serialization; namespace Server.Items { @@ -10,7 +11,7 @@ namespace Server.Items void BeginSpin(SpinCallback callback, Mobile from, int hue); } - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.ElvenSpinningwheelEastAddon")] public partial class ElvenSpinningWheelEastAddon : BaseAddon, ISpinningWheel { @@ -99,7 +100,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.ElvenSpinningwheelEastDeed")] public partial class ElvenSpinningWheelEastDeed : BaseAddonDeed { diff --git a/Projects/UOContent/Items/Addons/ElvenSpinningwheelSouthAddon.cs b/Projects/UOContent/Items/Addons/ElvenSpinningwheelSouthAddon.cs index e737c3d0f..8d99ba515 100644 --- a/Projects/UOContent/Items/Addons/ElvenSpinningwheelSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenSpinningwheelSouthAddon.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.ElvenSpinningwheelSouthAddon")] public partial class ElvenSpinningWheelSouthAddon : BaseAddon, ISpinningWheel { @@ -90,7 +91,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.ElvenSpinningwheelSouthDeed")] public partial class ElvenSpinningWheelSouthDeed : BaseAddonDeed { diff --git a/Projects/UOContent/Items/Addons/ElvenStoveEastAddon.cs b/Projects/UOContent/Items/Addons/ElvenStoveEastAddon.cs index 687989ffa..cdd58cf90 100644 --- a/Projects/UOContent/Items/Addons/ElvenStoveEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenStoveEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenStoveEastAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ElvenStoveEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenStoveEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenStoveSouthAddon.cs b/Projects/UOContent/Items/Addons/ElvenStoveSouthAddon.cs index d63db83fe..aa71d591b 100644 --- a/Projects/UOContent/Items/Addons/ElvenStoveSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenStoveSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenStoveSouthAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ElvenStoveSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenStoveSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenWashbasinEastAddon.cs b/Projects/UOContent/Items/Addons/ElvenWashbasinEastAddon.cs index a47e6dbbb..986a19a3b 100644 --- a/Projects/UOContent/Items/Addons/ElvenWashbasinEastAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenWashbasinEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenWashBasinEastAddon : BaseAddonContainer { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override int DefaultDropSound => 0x0042; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenWashBasinEastDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ElvenWashbasinSouthAddon.cs b/Projects/UOContent/Items/Addons/ElvenWashbasinSouthAddon.cs index a46b37fcc..1358fea17 100644 --- a/Projects/UOContent/Items/Addons/ElvenWashbasinSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/ElvenWashbasinSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenWashBasinSouthAddon : BaseAddonContainer { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override int DefaultDropSound => 0x0042; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenWashBasinSouthDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/FancyElvenTableEastAddon.cs b/Projects/UOContent/Items/Addons/FancyElvenTableEastAddon.cs index e31e67f22..6528ea581 100644 --- a/Projects/UOContent/Items/Addons/FancyElvenTableEastAddon.cs +++ b/Projects/UOContent/Items/Addons/FancyElvenTableEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class FancyElvenTableEastAddon : BaseAddon { [Constructible] @@ -14,7 +16,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new FancyElvenTableEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class FancyElvenTableEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/FancyElvenTableSouthAddon.cs b/Projects/UOContent/Items/Addons/FancyElvenTableSouthAddon.cs index 7bed9dcf7..72886fcca 100644 --- a/Projects/UOContent/Items/Addons/FancyElvenTableSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/FancyElvenTableSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class FancyElvenTableSouthAddon : BaseAddon { [Constructible] @@ -14,7 +16,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new FancyElvenTableSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class FancyElvenTableSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/FireColumnAddon.cs b/Projects/UOContent/Items/Addons/FireColumnAddon.cs index c3672ea98..e312066ca 100644 --- a/Projects/UOContent/Items/Addons/FireColumnAddon.cs +++ b/Projects/UOContent/Items/Addons/FireColumnAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FireColumnAddon : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/FlourMillEastAddon.cs b/Projects/UOContent/Items/Addons/FlourMillEastAddon.cs index b729fd392..1fd8c3072 100644 --- a/Projects/UOContent/Items/Addons/FlourMillEastAddon.cs +++ b/Projects/UOContent/Items/Addons/FlourMillEastAddon.cs @@ -1,4 +1,5 @@ using System; +using ModernUO.Serialization; using Server.Network; namespace Server.Items @@ -16,7 +17,7 @@ namespace Server.Items Working } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FlourMillEastAddon : BaseAddon, IFlourMill { private static readonly int[][] m_StageTable = @@ -171,7 +172,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FlourMillEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/FlourMillSouthAddon.cs b/Projects/UOContent/Items/Addons/FlourMillSouthAddon.cs index f5bb4ab63..cfd7c7c72 100644 --- a/Projects/UOContent/Items/Addons/FlourMillSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/FlourMillSouthAddon.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FlourMillSouthAddon : BaseAddon, IFlourMill { private static readonly int[][] m_StageTable = @@ -159,7 +160,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FlourMillSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/FlowerTapestries.cs b/Projects/UOContent/Items/Addons/FlowerTapestries.cs index 29b655295..a67b8ea15 100644 --- a/Projects/UOContent/Items/Addons/FlowerTapestries.cs +++ b/Projects/UOContent/Items/Addons/FlowerTapestries.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightFlowerTapestryEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new LightFlowerTapestryEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightFlowerTapestryEastDeed : BaseAddonDeed { [Constructible] @@ -25,7 +27,7 @@ namespace Server.Items public override int LabelNumber => 1049393; // a flower tapestry deed facing east } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightFlowerTapestrySouthAddon : BaseAddon { [Constructible] @@ -38,7 +40,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new LightFlowerTapestrySouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightFlowerTapestrySouthDeed : BaseAddonDeed { [Constructible] @@ -50,7 +52,7 @@ namespace Server.Items public override int LabelNumber => 1049394; // a flower tapestry deed facing south } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DarkFlowerTapestryEastAddon : BaseAddon { [Constructible] @@ -63,7 +65,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new DarkFlowerTapestryEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DarkFlowerTapestryEastDeed : BaseAddonDeed { [Constructible] @@ -75,7 +77,7 @@ namespace Server.Items public override int LabelNumber => 1049395; // a dark flower tapestry deed facing east } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DarkFlowerTapestrySouthAddon : BaseAddon { [Constructible] @@ -88,7 +90,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new DarkFlowerTapestrySouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DarkFlowerTapestrySouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/GiantWebs.cs b/Projects/UOContent/Items/Addons/GiantWebs.cs index bf0160eb8..d766c51e6 100644 --- a/Projects/UOContent/Items/Addons/GiantWebs.cs +++ b/Projects/UOContent/Items/Addons/GiantWebs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class GiantWeb1 : BaseAddon { [Constructible] @@ -21,7 +23,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class GiantWeb2 : BaseAddon { [Constructible] @@ -42,7 +44,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class GiantWeb3 : BaseAddon { [Constructible] @@ -63,7 +65,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class GiantWeb4 : BaseAddon { [Constructible] @@ -84,7 +86,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class GiantWeb5 : BaseAddon { [Constructible] @@ -105,7 +107,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class GiantWeb6 : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/GozaMats.cs b/Projects/UOContent/Items/Addons/GozaMats.cs index 3127f367a..6d199c110 100644 --- a/Projects/UOContent/Items/Addons/GozaMats.cs +++ b/Projects/UOContent/Items/Addons/GozaMats.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GozaMatEastAddon : BaseAddon { [Constructible] @@ -16,7 +18,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GozaMatEastDeed : BaseAddonDeed { [Constructible] @@ -28,7 +30,7 @@ namespace Server.Items public override int LabelNumber => 1030404; // goza (east) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GozaMatSouthAddon : BaseAddon { [Constructible] @@ -44,7 +46,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GozaMatSouthDeed : BaseAddonDeed { [Constructible] @@ -56,7 +58,7 @@ namespace Server.Items public override int LabelNumber => 1030405; // goza (south) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SquareGozaMatEastAddon : BaseAddon { [Constructible] @@ -72,7 +74,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SquareGozaMatEastDeed : BaseAddonDeed { [Constructible] @@ -84,7 +86,7 @@ namespace Server.Items public override int LabelNumber => 1030407; // square goza (east) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SquareGozaMatSouthAddon : BaseAddon { [Constructible] @@ -99,7 +101,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SquareGozaMatSouthDeed : BaseAddonDeed { [Constructible] @@ -111,7 +113,7 @@ namespace Server.Items public override int LabelNumber => 1030406; // square goza (south) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeGozaMatEastAddon : BaseAddon { [Constructible] @@ -127,7 +129,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeGozaMatEastDeed : BaseAddonDeed { [Constructible] @@ -139,7 +141,7 @@ namespace Server.Items public override int LabelNumber => 1030408; // brocade goza (east) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeGozaMatSouthAddon : BaseAddon { [Constructible] @@ -155,7 +157,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeGozaMatSouthDeed : BaseAddonDeed { [Constructible] @@ -167,7 +169,7 @@ namespace Server.Items public override int LabelNumber => 1030409; // brocade goza (south) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeSquareGozaMatEastAddon : BaseAddon { [Constructible] @@ -182,7 +184,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeSquareGozaMatEastDeed : BaseAddonDeed { [Constructible] @@ -194,7 +196,7 @@ namespace Server.Items public override int LabelNumber => 1030411; // brocade square goza (east) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeSquareGozaMatSouthAddon : BaseAddon { [Constructible] @@ -209,7 +211,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrocadeSquareGozaMatSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/GrayBrickFireplaceEastAddon.cs b/Projects/UOContent/Items/Addons/GrayBrickFireplaceEastAddon.cs index 2567bccc4..f8500eabf 100644 --- a/Projects/UOContent/Items/Addons/GrayBrickFireplaceEastAddon.cs +++ b/Projects/UOContent/Items/Addons/GrayBrickFireplaceEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GrayBrickFireplaceEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new GrayBrickFireplaceEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GrayBrickFireplaceEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/GrayBrickFireplaceSouthAddon.cs b/Projects/UOContent/Items/Addons/GrayBrickFireplaceSouthAddon.cs index 50fdee87e..792f50cb0 100644 --- a/Projects/UOContent/Items/Addons/GrayBrickFireplaceSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/GrayBrickFireplaceSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GrayBrickFireplaceSouthAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new GrayBrickFireplaceSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GrayBrickFireplaceSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/JackOLantern.cs b/Projects/UOContent/Items/Addons/JackOLantern.cs index 0ff84fb93..c2f13b753 100644 --- a/Projects/UOContent/Items/Addons/JackOLantern.cs +++ b/Projects/UOContent/Items/Addons/JackOLantern.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class JackOLantern : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LargeBedEastAddon.cs b/Projects/UOContent/Items/Addons/LargeBedEastAddon.cs index e77a27d52..4fc2b7ad3 100644 --- a/Projects/UOContent/Items/Addons/LargeBedEastAddon.cs +++ b/Projects/UOContent/Items/Addons/LargeBedEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeBedEastAddon : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LargeBedSouthAddon.cs b/Projects/UOContent/Items/Addons/LargeBedSouthAddon.cs index 328702270..b7c48baf5 100644 --- a/Projects/UOContent/Items/Addons/LargeBedSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/LargeBedSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeBedSouthAddon : BaseAddon { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new LargeBedSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeBedSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LargeForgeEastAddon.cs b/Projects/UOContent/Items/Addons/LargeForgeEastAddon.cs index 197002acc..c3ebe12a6 100644 --- a/Projects/UOContent/Items/Addons/LargeForgeEastAddon.cs +++ b/Projects/UOContent/Items/Addons/LargeForgeEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeForgeEastAddon : BaseAddon { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new LargeForgeEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeForgeEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LargeForgeSouthAddon.cs b/Projects/UOContent/Items/Addons/LargeForgeSouthAddon.cs index 1c9885c56..761c804dd 100644 --- a/Projects/UOContent/Items/Addons/LargeForgeSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/LargeForgeSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeForgeSouthAddon : BaseAddon { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new LargeForgeSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeForgeSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LargeStoneTableEastAddon.cs b/Projects/UOContent/Items/Addons/LargeStoneTableEastAddon.cs index 20f652234..67568d247 100644 --- a/Projects/UOContent/Items/Addons/LargeStoneTableEastAddon.cs +++ b/Projects/UOContent/Items/Addons/LargeStoneTableEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeStoneTableEastAddon : BaseAddon { [Constructible] @@ -16,7 +18,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeStoneTableEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LargeStoneTableSouthAddon.cs b/Projects/UOContent/Items/Addons/LargeStoneTableSouthAddon.cs index 79ae3fc18..78e5f0e91 100644 --- a/Projects/UOContent/Items/Addons/LargeStoneTableSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/LargeStoneTableSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeStoneTableSouthAddon : BaseAddon { [Constructible] @@ -17,7 +19,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeStoneTableSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LoomEastAddon.cs b/Projects/UOContent/Items/Addons/LoomEastAddon.cs index 034cdbf1c..db3af2a52 100644 --- a/Projects/UOContent/Items/Addons/LoomEastAddon.cs +++ b/Projects/UOContent/Items/Addons/LoomEastAddon.cs @@ -1,3 +1,5 @@ +using ModernUO.Serialization; + namespace Server.Items { public interface ILoom @@ -5,7 +7,7 @@ namespace Server.Items int Phase { get; set; } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LoomEastAddon : BaseAddon, ILoom { [SerializableField(0)] @@ -21,7 +23,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new LoomEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LoomEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/LoomSouthAddon.cs b/Projects/UOContent/Items/Addons/LoomSouthAddon.cs index 596ff2170..9ec8f5595 100644 --- a/Projects/UOContent/Items/Addons/LoomSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/LoomSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LoomSouthAddon : BaseAddon, ILoom { [SerializableField(0)] @@ -16,7 +18,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new LoomSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LoomSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/MediumStoneTableEastAddon.cs b/Projects/UOContent/Items/Addons/MediumStoneTableEastAddon.cs index 91f1807f9..dd20cdde4 100644 --- a/Projects/UOContent/Items/Addons/MediumStoneTableEastAddon.cs +++ b/Projects/UOContent/Items/Addons/MediumStoneTableEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStoneTableEastAddon : BaseAddon { [Constructible] @@ -16,7 +18,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStoneTableEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/MediumStoneTableSouthAddon.cs b/Projects/UOContent/Items/Addons/MediumStoneTableSouthAddon.cs index 4eb79450b..09e4f4518 100644 --- a/Projects/UOContent/Items/Addons/MediumStoneTableSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/MediumStoneTableSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStoneTableSouthAddon : BaseAddon { [Constructible] @@ -16,7 +18,7 @@ namespace Server.Items public override bool RetainDeedHue => true; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStoneTableSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/OrnateElvenChestEastAddon.cs b/Projects/UOContent/Items/Addons/OrnateElvenChestEastAddon.cs index f936d0da7..066ca2870 100644 --- a/Projects/UOContent/Items/Addons/OrnateElvenChestEastAddon.cs +++ b/Projects/UOContent/Items/Addons/OrnateElvenChestEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenChestEastAddon : BaseAddonContainer { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override int DefaultDropSound => 0x42; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenChestEastDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/OrnateElvenChestSouthAddon.cs b/Projects/UOContent/Items/Addons/OrnateElvenChestSouthAddon.cs index 109433111..cc0dc3f85 100644 --- a/Projects/UOContent/Items/Addons/OrnateElvenChestSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/OrnateElvenChestSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenChestSouthAddon : BaseAddonContainer { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override int DefaultDropSound => 0x42; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenChestSouthDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/OrnateElvenTableEastAddon.cs b/Projects/UOContent/Items/Addons/OrnateElvenTableEastAddon.cs index 8328eb52f..0401e04bd 100644 --- a/Projects/UOContent/Items/Addons/OrnateElvenTableEastAddon.cs +++ b/Projects/UOContent/Items/Addons/OrnateElvenTableEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenTableEastAddon : BaseAddon { [Constructible] @@ -14,7 +16,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new OrnateElvenTableEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenTableEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/OrnateElvenTableSouthAddon.cs b/Projects/UOContent/Items/Addons/OrnateElvenTableSouthAddon.cs index 04f3553a4..14f65f529 100644 --- a/Projects/UOContent/Items/Addons/OrnateElvenTableSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/OrnateElvenTableSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenTableSouthAddon : BaseAddon { [Constructible] @@ -14,7 +16,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new OrnateElvenTableSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenTableSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ParrotPerchAddon.cs b/Projects/UOContent/Items/Addons/ParrotPerchAddon.cs index 94278a0a8..5629d8c36 100644 --- a/Projects/UOContent/Items/Addons/ParrotPerchAddon.cs +++ b/Projects/UOContent/Items/Addons/ParrotPerchAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ParrotPerchAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new ParrotPerchDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ParrotPerchDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/PentagramAddon.cs b/Projects/UOContent/Items/Addons/PentagramAddon.cs index 7190bb289..99777409d 100644 --- a/Projects/UOContent/Items/Addons/PentagramAddon.cs +++ b/Projects/UOContent/Items/Addons/PentagramAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PentagramAddon : BaseAddon { [Constructible] @@ -20,7 +22,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new PentagramDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PentagramDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/PickpocketDips.cs b/Projects/UOContent/Items/Addons/PickpocketDips.cs index aa20d1ef6..c990ff7d4 100644 --- a/Projects/UOContent/Items/Addons/PickpocketDips.cs +++ b/Projects/UOContent/Items/Addons/PickpocketDips.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1EC0, 0x1EC3)] public partial class PickpocketDip : AddonComponent { @@ -118,7 +119,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PickpocketDipEastAddon : BaseAddon { [Constructible] @@ -128,7 +129,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PickpocketDipEastDeed : BaseAddonDeed { [Constructible] @@ -140,7 +141,7 @@ namespace Server.Items public override int LabelNumber => 1044337; // pickpocket dip (east) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PickpocketDipSouthAddon : BaseAddon { [Constructible] @@ -152,7 +153,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new PickpocketDipSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PickpocketDipSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/PyramidAddon.cs b/Projects/UOContent/Items/Addons/PyramidAddon.cs index 4133f9c86..f717d576d 100644 --- a/Projects/UOContent/Items/Addons/PyramidAddon.cs +++ b/Projects/UOContent/Items/Addons/PyramidAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class PyramidAddon : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/RejuvinationAnkhs.cs b/Projects/UOContent/Items/Addons/RejuvinationAnkhs.cs index e8e059cf1..fa6b00c95 100644 --- a/Projects/UOContent/Items/Addons/RejuvinationAnkhs.cs +++ b/Projects/UOContent/Items/Addons/RejuvinationAnkhs.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RejuvinationAddonComponent : AddonComponent { public RejuvinationAddonComponent(int itemID) : base(itemID) @@ -51,7 +52,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseRejuvinationAnkh : BaseAddon { private DateTime m_NextMessage; @@ -79,7 +80,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RejuvinationAnkhWest : BaseRejuvinationAnkh { [Constructible] @@ -90,7 +91,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RejuvinationAnkhNorth : BaseRejuvinationAnkh { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SHTeleporter.cs b/Projects/UOContent/Items/Addons/SHTeleporter.cs index cdca627cc..7c56698dd 100644 --- a/Projects/UOContent/Items/Addons/SHTeleporter.cs +++ b/Projects/UOContent/Items/Addons/SHTeleporter.cs @@ -1,9 +1,10 @@ using System.Linq; +using ModernUO.Serialization; using Server.Mobiles; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SHTeleComponent : AddonComponent { private bool _active; @@ -105,7 +106,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SHTeleporter : BaseAddon { private bool m_Changing; diff --git a/Projects/UOContent/Items/Addons/SandstoneFireplaceEastAddon.cs b/Projects/UOContent/Items/Addons/SandstoneFireplaceEastAddon.cs index 0c692b860..cdd44ad82 100644 --- a/Projects/UOContent/Items/Addons/SandstoneFireplaceEastAddon.cs +++ b/Projects/UOContent/Items/Addons/SandstoneFireplaceEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SandstoneFireplaceEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SandstoneFireplaceEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SandstoneFireplaceEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SandstoneFireplaceSouthAddon.cs b/Projects/UOContent/Items/Addons/SandstoneFireplaceSouthAddon.cs index 72cc30e26..888b7baa6 100644 --- a/Projects/UOContent/Items/Addons/SandstoneFireplaceSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/SandstoneFireplaceSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SandstoneFireplaceSouthAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SandstoneFireplaceSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SandstoneFireplaceSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SandstoneFountainAddon.cs b/Projects/UOContent/Items/Addons/SandstoneFountainAddon.cs index 34b764788..38189257d 100644 --- a/Projects/UOContent/Items/Addons/SandstoneFountainAddon.cs +++ b/Projects/UOContent/Items/Addons/SandstoneFountainAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SandstoneFountainAddon : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SerpentPillarAddon.cs b/Projects/UOContent/Items/Addons/SerpentPillarAddon.cs index 7170a56e3..da1c4f065 100644 --- a/Projects/UOContent/Items/Addons/SerpentPillarAddon.cs +++ b/Projects/UOContent/Items/Addons/SerpentPillarAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SerpentPillarAddon : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/ShrineOfWisdomAddon.cs b/Projects/UOContent/Items/Addons/ShrineOfWisdomAddon.cs index 81703f6de..5f68ef9bd 100644 --- a/Projects/UOContent/Items/Addons/ShrineOfWisdomAddon.cs +++ b/Projects/UOContent/Items/Addons/ShrineOfWisdomAddon.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.Craft; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShrineOfWisdomAddon : BaseAddon { [Constructible] @@ -17,7 +18,7 @@ namespace Server.Items } [Forge] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShrineOfWisdomComponent : AddonComponent { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SkullPileAddon.cs b/Projects/UOContent/Items/Addons/SkullPileAddon.cs index aa07f9fb2..732a01ffa 100644 --- a/Projects/UOContent/Items/Addons/SkullPileAddon.cs +++ b/Projects/UOContent/Items/Addons/SkullPileAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SkullPileAddon : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SmallBedEastAddon.cs b/Projects/UOContent/Items/Addons/SmallBedEastAddon.cs index c0adb5eaf..0474f0684 100644 --- a/Projects/UOContent/Items/Addons/SmallBedEastAddon.cs +++ b/Projects/UOContent/Items/Addons/SmallBedEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallBedEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SmallBedEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallBedEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SmallBedSouthAddon.cs b/Projects/UOContent/Items/Addons/SmallBedSouthAddon.cs index c133bfbb1..b53288984 100644 --- a/Projects/UOContent/Items/Addons/SmallBedSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/SmallBedSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallBedSouthAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SmallBedSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallBedSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SmallForgeAddon.cs b/Projects/UOContent/Items/Addons/SmallForgeAddon.cs index ebf4ae75a..ad9aedd6a 100644 --- a/Projects/UOContent/Items/Addons/SmallForgeAddon.cs +++ b/Projects/UOContent/Items/Addons/SmallForgeAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallForgeAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SmallForgeDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallForgeDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SolenAntHole.cs b/Projects/UOContent/Items/Addons/SolenAntHole.cs index 00209f6bc..9cd1a469f 100644 --- a/Projects/UOContent/Items/Addons/SolenAntHole.cs +++ b/Projects/UOContent/Items/Addons/SolenAntHole.cs @@ -1,11 +1,12 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.Mobiles; using Server.Network; using Server.Spells; namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SolenAntHoleComponent : AddonComponent { public SolenAntHoleComponent(int itemID) : base(itemID) @@ -36,7 +37,7 @@ namespace Server.Items } } - [Serializable(1)] + [SerializationGenerator(1)] public partial class SolenAntHole : BaseAddon { [SerializableField(0, getter: "private", setter: "private")] diff --git a/Projects/UOContent/Items/Addons/SpinningwheelEastAddon.cs b/Projects/UOContent/Items/Addons/SpinningwheelEastAddon.cs index 7f3803ae1..9cdb98041 100644 --- a/Projects/UOContent/Items/Addons/SpinningwheelEastAddon.cs +++ b/Projects/UOContent/Items/Addons/SpinningwheelEastAddon.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.SpinningwheelEastAddon")] public partial class SpinningWheelEastAddon : BaseAddon, ISpinningWheel { @@ -97,7 +98,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.SpinningwheelEastDeed")] public partial class SpinningWheelEastDeed : BaseAddonDeed { diff --git a/Projects/UOContent/Items/Addons/SpinningwheelSouthAddon.cs b/Projects/UOContent/Items/Addons/SpinningwheelSouthAddon.cs index 062e7eccf..6ee83298e 100644 --- a/Projects/UOContent/Items/Addons/SpinningwheelSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/SpinningwheelSouthAddon.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.SpinningwheelSouthAddon")] public partial class SpinningWheelSouthAddon : BaseAddon, ISpinningWheel { @@ -97,7 +98,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.SpinningwheelSouthDeed")] public partial class SpinningWheelSouthDeed : BaseAddonDeed { diff --git a/Projects/UOContent/Items/Addons/SquirrelStatueEastAddon.cs b/Projects/UOContent/Items/Addons/SquirrelStatueEastAddon.cs index f81c70973..19f958d99 100644 --- a/Projects/UOContent/Items/Addons/SquirrelStatueEastAddon.cs +++ b/Projects/UOContent/Items/Addons/SquirrelStatueEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SquirrelStatueEastAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SquirrelStatueEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class SquirrelStatueEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/SquirrelStatueSouthAddon.cs b/Projects/UOContent/Items/Addons/SquirrelStatueSouthAddon.cs index 3429b1404..cacef3870 100644 --- a/Projects/UOContent/Items/Addons/SquirrelStatueSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/SquirrelStatueSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SquirrelStatueSouthAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SquirrelStatueSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class SquirrelStatueSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/StoneFireplaceEastAddon.cs b/Projects/UOContent/Items/Addons/StoneFireplaceEastAddon.cs index e4b7284ee..363227d55 100644 --- a/Projects/UOContent/Items/Addons/StoneFireplaceEastAddon.cs +++ b/Projects/UOContent/Items/Addons/StoneFireplaceEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneFireplaceEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new StoneFireplaceEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneFireplaceEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/StoneFireplaceSouthAddon.cs b/Projects/UOContent/Items/Addons/StoneFireplaceSouthAddon.cs index 7b10c6972..1116ac86b 100644 --- a/Projects/UOContent/Items/Addons/StoneFireplaceSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/StoneFireplaceSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneFireplaceSouthAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new StoneFireplaceSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneFireplaceSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/StoneFountainAddon.cs b/Projects/UOContent/Items/Addons/StoneFountainAddon.cs index f4307c4c7..31189f654 100644 --- a/Projects/UOContent/Items/Addons/StoneFountainAddon.cs +++ b/Projects/UOContent/Items/Addons/StoneFountainAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneFountainAddon : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/StoneOvenEastAddon.cs b/Projects/UOContent/Items/Addons/StoneOvenEastAddon.cs index b160916da..06378063a 100644 --- a/Projects/UOContent/Items/Addons/StoneOvenEastAddon.cs +++ b/Projects/UOContent/Items/Addons/StoneOvenEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneOvenEastAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new StoneOvenEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneOvenEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/StoneOvenSouthAddon.cs b/Projects/UOContent/Items/Addons/StoneOvenSouthAddon.cs index 5f54e0f1e..afe43d098 100644 --- a/Projects/UOContent/Items/Addons/StoneOvenSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/StoneOvenSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneOvenSouthAddon : BaseAddon { [Constructible] @@ -13,7 +15,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new StoneOvenSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneOvenSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/StretchedHides.cs b/Projects/UOContent/Items/Addons/StretchedHides.cs index e6a8f9aff..6911e1324 100644 --- a/Projects/UOContent/Items/Addons/StretchedHides.cs +++ b/Projects/UOContent/Items/Addons/StretchedHides.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallStretchedHideEastAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SmallStretchedHideEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallStretchedHideEastDeed : BaseAddonDeed { [Constructible] @@ -24,7 +26,7 @@ namespace Server.Items public override int LabelNumber => 1049401; // a small stretched hide deed facing east } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallStretchedHideSouthAddon : BaseAddon { [Constructible] @@ -36,7 +38,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new SmallStretchedHideSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallStretchedHideSouthDeed : BaseAddonDeed { [Constructible] @@ -48,7 +50,7 @@ namespace Server.Items public override int LabelNumber => 1049402; // a small stretched hide deed facing south } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStretchedHideEastAddon : BaseAddon { [Constructible] @@ -60,7 +62,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new MediumStretchedHideEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStretchedHideEastDeed : BaseAddonDeed { [Constructible] @@ -72,7 +74,7 @@ namespace Server.Items public override int LabelNumber => 1049403; // a medium stretched hide deed facing east } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStretchedHideSouthAddon : BaseAddon { [Constructible] @@ -84,7 +86,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new MediumStretchedHideSouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MediumStretchedHideSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/TallElvenBedEastAddon.cs b/Projects/UOContent/Items/Addons/TallElvenBedEastAddon.cs index c4a26ad76..74cb13a78 100644 --- a/Projects/UOContent/Items/Addons/TallElvenBedEastAddon.cs +++ b/Projects/UOContent/Items/Addons/TallElvenBedEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TallElvenBedEastAddon : BaseAddon { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new TallElvenBedEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TallElvenBedEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/TallElvenBedSouthAddon.cs b/Projects/UOContent/Items/Addons/TallElvenBedSouthAddon.cs index 9b319957c..85cf51b48 100644 --- a/Projects/UOContent/Items/Addons/TallElvenBedSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/TallElvenBedSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TallElvenBedSouthAddon : BaseAddon { [Constructible] @@ -15,7 +17,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new TallElvenBedSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TallElvenBedSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/Telescope.cs b/Projects/UOContent/Items/Addons/Telescope.cs index 0fe081fca..ec5c0711b 100644 --- a/Projects/UOContent/Items/Addons/Telescope.cs +++ b/Projects/UOContent/Items/Addons/Telescope.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Telescope : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Addons/TrainingDummies.cs b/Projects/UOContent/Items/Addons/TrainingDummies.cs index 760b1a8a5..61f81dc1a 100644 --- a/Projects/UOContent/Items/Addons/TrainingDummies.cs +++ b/Projects/UOContent/Items/Addons/TrainingDummies.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1070, 0x1074)] public partial class TrainingDummy : AddonComponent { @@ -131,7 +132,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TrainingDummyEastAddon : BaseAddon { [Constructible] @@ -143,7 +144,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new TrainingDummyEastDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TrainingDummyEastDeed : BaseAddonDeed { [Constructible] @@ -155,7 +156,7 @@ namespace Server.Items public override int LabelNumber => 1044335; // training dummy (east) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TrainingDummySouthAddon : BaseAddon { [Constructible] @@ -167,7 +168,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new TrainingDummySouthDeed(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TrainingDummySouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/WarriorStatueEastAddon.cs b/Projects/UOContent/Items/Addons/WarriorStatueEastAddon.cs index a33b062ed..24d178904 100644 --- a/Projects/UOContent/Items/Addons/WarriorStatueEastAddon.cs +++ b/Projects/UOContent/Items/Addons/WarriorStatueEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class WarriorStatueEastAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new WarriorStatueEastDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class WarriorStatueEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/WarriorStatueSouthAddon.cs b/Projects/UOContent/Items/Addons/WarriorStatueSouthAddon.cs index 8c24908c7..d89ea386b 100644 --- a/Projects/UOContent/Items/Addons/WarriorStatueSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/WarriorStatueSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class WarriorStatueSouthAddon : BaseAddon { [Constructible] @@ -12,7 +14,7 @@ namespace Server.Items public override BaseAddonDeed Deed => new WarriorStatueSouthDeed(); } - [Serializable(0)] + [SerializationGenerator(0)] public partial class WarriorStatueSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/WaterTroughEastAddon.cs b/Projects/UOContent/Items/Addons/WaterTroughEastAddon.cs index 6253a849b..fe55a496f 100644 --- a/Projects/UOContent/Items/Addons/WaterTroughEastAddon.cs +++ b/Projects/UOContent/Items/Addons/WaterTroughEastAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WaterTroughEastAddon : BaseAddon, IWaterSource { [Constructible] @@ -19,7 +21,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WaterTroughEastDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/WaterTroughSouthAddon.cs b/Projects/UOContent/Items/Addons/WaterTroughSouthAddon.cs index 6e17e71b5..f51fe665c 100644 --- a/Projects/UOContent/Items/Addons/WaterTroughSouthAddon.cs +++ b/Projects/UOContent/Items/Addons/WaterTroughSouthAddon.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WaterTroughSouthAddon : BaseAddon, IWaterSource { [Constructible] @@ -19,7 +21,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WaterTroughSouthDeed : BaseAddonDeed { [Constructible] diff --git a/Projects/UOContent/Items/Addons/WaterVat.cs b/Projects/UOContent/Items/Addons/WaterVat.cs index 0ecdc51f1..43b58dc0d 100644 --- a/Projects/UOContent/Items/Addons/WaterVat.cs +++ b/Projects/UOContent/Items/Addons/WaterVat.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class WaterVatEast : BaseAddon { [Constructible] @@ -24,7 +26,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class WaterVatSouth : BaseAddon { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Aquarium.cs b/Projects/UOContent/Items/Aquarium/Aquarium.cs index c228b2779..d69041f5d 100644 --- a/Projects/UOContent/Items/Aquarium/Aquarium.cs +++ b/Projects/UOContent/Items/Aquarium/Aquarium.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Multis; using Server.Network; @@ -7,7 +8,7 @@ using Server.Utilities; namespace Server.Items { - [Serializable(4, false)] + [SerializationGenerator(4, false)] public partial class Aquarium : BaseAddonContainer { public static readonly TimeSpan EvaluationInterval = TimeSpan.FromDays(1); @@ -1130,7 +1131,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AquariumEastDeed : BaseAddonContainerDeed { [Constructible] @@ -1142,7 +1143,7 @@ namespace Server.Items public override int LabelNumber => 1074501; // Large Aquarium (east) } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AquariumNorthDeed : BaseAddonContainerDeed { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/AquariumFishingNet.cs b/Projects/UOContent/Items/Aquarium/AquariumFishingNet.cs index 474abcde4..363351a13 100644 --- a/Projects/UOContent/Items/Aquarium/AquariumFishingNet.cs +++ b/Projects/UOContent/Items/Aquarium/AquariumFishingNet.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AquariumFishNet : SpecialFishingNet { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/AquariumFood.cs b/Projects/UOContent/Items/Aquarium/AquariumFood.cs index db2cc1bc9..e8dd8162c 100644 --- a/Projects/UOContent/Items/Aquarium/AquariumFood.cs +++ b/Projects/UOContent/Items/Aquarium/AquariumFood.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AquariumFood : Item { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/AquariumState.cs b/Projects/UOContent/Items/Aquarium/AquariumState.cs index 2692d3521..ed38e98f7 100644 --- a/Projects/UOContent/Items/Aquarium/AquariumState.cs +++ b/Projects/UOContent/Items/Aquarium/AquariumState.cs @@ -1,4 +1,5 @@ using System; +using ModernUO.Serialization; namespace Server.Items { @@ -21,10 +22,10 @@ namespace Server.Items } [PropertyObject] - [EmbeddedSerializable(0, false)] + [SerializationGenerator(0, false)] public partial class AquariumState { - [SerializableParent] + [DirtyTrackingEntity] private Aquarium _aquarium; private int _state; @@ -41,7 +42,7 @@ namespace Server.Items if (_state != value) { _state = Math.Clamp(value, 0, 4); - _aquarium.MarkDirty(); + this.MarkDirty(); } } } diff --git a/Projects/UOContent/Items/Aquarium/BaseFish.cs b/Projects/UOContent/Items/Aquarium/BaseFish.cs index 9611a5429..a3bfdc2aa 100644 --- a/Projects/UOContent/Items/Aquarium/BaseFish.cs +++ b/Projects/UOContent/Items/Aquarium/BaseFish.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseFish : Item { private static readonly TimeSpan DeathDelay = TimeSpan.FromMinutes(5); diff --git a/Projects/UOContent/Items/Aquarium/Fish/AlbinoCourtesanFish.cs b/Projects/UOContent/Items/Aquarium/Fish/AlbinoCourtesanFish.cs index b916c715d..b542864b6 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/AlbinoCourtesanFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/AlbinoCourtesanFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AlbinoCourtesanFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/AlbinoFrog.cs b/Projects/UOContent/Items/Aquarium/Fish/AlbinoFrog.cs index 58db24162..2e95417dc 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/AlbinoFrog.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/AlbinoFrog.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AlbinoFrog : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/BritainCrownFish.cs b/Projects/UOContent/Items/Aquarium/Fish/BritainCrownFish.cs index 35c649ad5..a4ee40404 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/BritainCrownFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/BritainCrownFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BritainCrownFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/FandancerFish.cs b/Projects/UOContent/Items/Aquarium/Fish/FandancerFish.cs index b27074e5b..c65e9ac6c 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/FandancerFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/FandancerFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FandancerFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/GoldenBroadtail.cs b/Projects/UOContent/Items/Aquarium/Fish/GoldenBroadtail.cs index 984178f1e..b01f38c2b 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/GoldenBroadtail.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/GoldenBroadtail.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GoldenBroadtail : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/Jellyfish.cs b/Projects/UOContent/Items/Aquarium/Fish/Jellyfish.cs index 05820fa3c..5751c35d8 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/Jellyfish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/Jellyfish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Jellyfish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/KillerFrog.cs b/Projects/UOContent/Items/Aquarium/Fish/KillerFrog.cs index 0fa0d33d1..239545245 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/KillerFrog.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/KillerFrog.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class KillerFrog : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/LongClawCrab.cs b/Projects/UOContent/Items/Aquarium/Fish/LongClawCrab.cs index 5e4e8f920..4bbcfccb7 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/LongClawCrab.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/LongClawCrab.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LongClawCrab : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/MakotoCourtesanFish.cs b/Projects/UOContent/Items/Aquarium/Fish/MakotoCourtesanFish.cs index 2e597a684..b2729ec10 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/MakotoCourtesanFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/MakotoCourtesanFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MakotoCourtesanFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/MinocBlueFish.cs b/Projects/UOContent/Items/Aquarium/Fish/MinocBlueFish.cs index cc98591dc..0b0924c2b 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/MinocBlueFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/MinocBlueFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MinocBlueFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/NujelmHoneyFish.cs b/Projects/UOContent/Items/Aquarium/Fish/NujelmHoneyFish.cs index 1264e7f3d..f80d24923 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/NujelmHoneyFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/NujelmHoneyFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NujelmHoneyFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/PurpleFrog.cs b/Projects/UOContent/Items/Aquarium/Fish/PurpleFrog.cs index 44b131e95..fb32ce954 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/PurpleFrog.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/PurpleFrog.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PurpleFrog : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/RedDartFish.cs b/Projects/UOContent/Items/Aquarium/Fish/RedDartFish.cs index 5593ef753..d75f46245 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/RedDartFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/RedDartFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RedDartFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/Shrimp.cs b/Projects/UOContent/Items/Aquarium/Fish/Shrimp.cs index a431db254..ae66c1b3a 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/Shrimp.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/Shrimp.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Shrimp : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/SmallMouthSuckerFin.cs b/Projects/UOContent/Items/Aquarium/Fish/SmallMouthSuckerFin.cs index 748e7f8cd..65e0d4f3b 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/SmallMouthSuckerFin.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/SmallMouthSuckerFin.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallMouthSuckerFin : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/SpeckledCrab.cs b/Projects/UOContent/Items/Aquarium/Fish/SpeckledCrab.cs index 044618b18..0c5e82c60 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/SpeckledCrab.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/SpeckledCrab.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SpeckledCrab : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/SpinedScratcherFish.cs b/Projects/UOContent/Items/Aquarium/Fish/SpinedScratcherFish.cs index 7490419cc..c9e91b504 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/SpinedScratcherFish.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/SpinedScratcherFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SpinedScratcherFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/SpottedBuccaneer.cs b/Projects/UOContent/Items/Aquarium/Fish/SpottedBuccaneer.cs index 54b4b284d..979afc170 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/SpottedBuccaneer.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/SpottedBuccaneer.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SpottedBuccaneer : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/VesperReefTiger.cs b/Projects/UOContent/Items/Aquarium/Fish/VesperReefTiger.cs index 7d7ac4fde..46d575d08 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/VesperReefTiger.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/VesperReefTiger.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class VesperReefTiger : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Fish/YellowFinBluebelly.cs b/Projects/UOContent/Items/Aquarium/Fish/YellowFinBluebelly.cs index 5a707f132..e2e6f152d 100644 --- a/Projects/UOContent/Items/Aquarium/Fish/YellowFinBluebelly.cs +++ b/Projects/UOContent/Items/Aquarium/Fish/YellowFinBluebelly.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class YellowFinBluebelly : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/FishBowl.cs b/Projects/UOContent/Items/Aquarium/FishBowl.cs index 71d364305..d180b85fb 100644 --- a/Projects/UOContent/Items/Aquarium/FishBowl.cs +++ b/Projects/UOContent/Items/Aquarium/FishBowl.cs @@ -1,10 +1,11 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FishBowl : BaseContainer { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Reward Fish/BrineShrimp.cs b/Projects/UOContent/Items/Aquarium/Reward Fish/BrineShrimp.cs index ac95c67b6..fe53aa46b 100644 --- a/Projects/UOContent/Items/Aquarium/Reward Fish/BrineShrimp.cs +++ b/Projects/UOContent/Items/Aquarium/Reward Fish/BrineShrimp.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrineShrimp : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Reward Fish/Coral.cs b/Projects/UOContent/Items/Aquarium/Reward Fish/Coral.cs index 9d50f152e..d5308177d 100644 --- a/Projects/UOContent/Items/Aquarium/Reward Fish/Coral.cs +++ b/Projects/UOContent/Items/Aquarium/Reward Fish/Coral.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Coral : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Reward Fish/FullMoonFish.cs b/Projects/UOContent/Items/Aquarium/Reward Fish/FullMoonFish.cs index aa048fe97..0136ad42e 100644 --- a/Projects/UOContent/Items/Aquarium/Reward Fish/FullMoonFish.cs +++ b/Projects/UOContent/Items/Aquarium/Reward Fish/FullMoonFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FullMoonFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Reward Fish/SeaHorse.cs b/Projects/UOContent/Items/Aquarium/Reward Fish/SeaHorse.cs index 2bbb36e37..f7d07eb71 100644 --- a/Projects/UOContent/Items/Aquarium/Reward Fish/SeaHorse.cs +++ b/Projects/UOContent/Items/Aquarium/Reward Fish/SeaHorse.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SeaHorseFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedFlakeFish.cs b/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedFlakeFish.cs index 6da23490b..665405180 100644 --- a/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedFlakeFish.cs +++ b/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedFlakeFish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StrippedFlakeFish : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedSosarianSwill.cs b/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedSosarianSwill.cs index 024593418..2d00c8122 100644 --- a/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedSosarianSwill.cs +++ b/Projects/UOContent/Items/Aquarium/Reward Fish/StrippedSosarianSwill.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StrippedSosarianSwill : BaseFish { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Rewards/AquariumMessage.cs b/Projects/UOContent/Items/Aquarium/Rewards/AquariumMessage.cs index d8f1ec031..86d5dadb8 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/AquariumMessage.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/AquariumMessage.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AquariumMessage : MessageInABottle { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Rewards/CaptainBlackheartsFishingPole.cs b/Projects/UOContent/Items/Aquarium/Rewards/CaptainBlackheartsFishingPole.cs index 6432239cb..ede935971 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/CaptainBlackheartsFishingPole.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/CaptainBlackheartsFishingPole.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CaptainBlackheartsFishingPole : FishingPole { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Rewards/CraftysFishingHat.cs b/Projects/UOContent/Items/Aquarium/Rewards/CraftysFishingHat.cs index d7fbbdc46..01dd1366f 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/CraftysFishingHat.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/CraftysFishingHat.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CraftysFishingHat : BaseHat { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Rewards/FishBones.cs b/Projects/UOContent/Items/Aquarium/Rewards/FishBones.cs index 2a3183355..d87e24503 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/FishBones.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/FishBones.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FishBones : Item { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Rewards/IslandStatue.cs b/Projects/UOContent/Items/Aquarium/Rewards/IslandStatue.cs index e8e57e963..c78a92cb5 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/IslandStatue.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/IslandStatue.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class IslandStatue : Item { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Rewards/Shell.cs b/Projects/UOContent/Items/Aquarium/Rewards/Shell.cs index ce3bc4060..c5ffeb1bb 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/Shell.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/Shell.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Shell : Item { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/Rewards/ToyBoat.cs b/Projects/UOContent/Items/Aquarium/Rewards/ToyBoat.cs index 06e470d5a..fa28f994f 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/ToyBoat.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/ToyBoat.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x14F3, 0x14F4)] public partial class ToyBoat : Item { diff --git a/Projects/UOContent/Items/Aquarium/Rewards/WaterloggedBoots.cs b/Projects/UOContent/Items/Aquarium/Rewards/WaterloggedBoots.cs index ea3a6efd5..973207bc2 100644 --- a/Projects/UOContent/Items/Aquarium/Rewards/WaterloggedBoots.cs +++ b/Projects/UOContent/Items/Aquarium/Rewards/WaterloggedBoots.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WaterloggedBoots : BaseShoes { [Constructible] diff --git a/Projects/UOContent/Items/Aquarium/VacationWafer.cs b/Projects/UOContent/Items/Aquarium/VacationWafer.cs index 1021afc37..9f4f5707a 100644 --- a/Projects/UOContent/Items/Aquarium/VacationWafer.cs +++ b/Projects/UOContent/Items/Aquarium/VacationWafer.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class VacationWafer : Item { public const int VacationDays = 7; diff --git a/Projects/UOContent/Items/Armor/Artifacts/ArmorOfFortune.cs b/Projects/UOContent/Items/Armor/Artifacts/ArmorOfFortune.cs index 624692b54..6379b8463 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/ArmorOfFortune.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/ArmorOfFortune.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ArmorOfFortune : StuddedChest { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/Craftable/BrambleCoat.cs b/Projects/UOContent/Items/Armor/Artifacts/Craftable/BrambleCoat.cs index 7327a9b52..6f694b926 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/Craftable/BrambleCoat.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/Craftable/BrambleCoat.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class BrambleCoat : WoodlandChest { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/Craftable/IronwoodCrown.cs b/Projects/UOContent/Items/Armor/Artifacts/Craftable/IronwoodCrown.cs index dd00c0838..10c01388e 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/Craftable/IronwoodCrown.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/Craftable/IronwoodCrown.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class IronwoodCrown : RavenHelm { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/Craftable/SongWovenMantle.cs b/Projects/UOContent/Items/Armor/Artifacts/Craftable/SongWovenMantle.cs index 007bf2165..db318d0e2 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/Craftable/SongWovenMantle.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/Craftable/SongWovenMantle.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SongWovenMantle : LeafArms { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/Craftable/SpellWovenBritches.cs b/Projects/UOContent/Items/Armor/Artifacts/Craftable/SpellWovenBritches.cs index 1ad94ff66..219625192 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/Craftable/SpellWovenBritches.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/Craftable/SpellWovenBritches.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SpellWovenBritches : LeafLegs { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/Craftable/StitchersMittens.cs b/Projects/UOContent/Items/Armor/Artifacts/Craftable/StitchersMittens.cs index c2b0e0a13..e60595ae6 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/Craftable/StitchersMittens.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/Craftable/StitchersMittens.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class StitchersMittens : LeafGloves { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/GauntletsOfNobility.cs b/Projects/UOContent/Items/Armor/Artifacts/GauntletsOfNobility.cs index 872851cd6..c182d7fb4 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/GauntletsOfNobility.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/GauntletsOfNobility.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GauntletsOfNobility : RingmailGloves { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/HelmOfInsight.cs b/Projects/UOContent/Items/Armor/Artifacts/HelmOfInsight.cs index c19866380..c913ccefa 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/HelmOfInsight.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/HelmOfInsight.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HelmOfInsight : PlateHelm { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/HolyKnightsBreastplate.cs b/Projects/UOContent/Items/Armor/Artifacts/HolyKnightsBreastplate.cs index 2f7b0951c..20043d69c 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/HolyKnightsBreastplate.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/HolyKnightsBreastplate.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HolyKnightsBreastplate : PlateChest { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/InquisitorsResolution.cs b/Projects/UOContent/Items/Armor/Artifacts/InquisitorsResolution.cs index 3aee07ed6..17b535ec8 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/InquisitorsResolution.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/InquisitorsResolution.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class InquisitorsResolution : PlateGloves { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/JackalsCollar.cs b/Projects/UOContent/Items/Armor/Artifacts/JackalsCollar.cs index 32114470e..c24a4b668 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/JackalsCollar.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/JackalsCollar.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class JackalsCollar : PlateGorget { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/LeggingsOfBane.cs b/Projects/UOContent/Items/Armor/Artifacts/LeggingsOfBane.cs index 6a7fa1da7..1d8c7de2d 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/LeggingsOfBane.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/LeggingsOfBane.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeggingsOfBane : ChainLegs { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/MidnightBracers.cs b/Projects/UOContent/Items/Armor/Artifacts/MidnightBracers.cs index 57d6d661d..6379b05cb 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/MidnightBracers.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/MidnightBracers.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MidnightBracers : BoneArms { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/OrnateCrownOfTheHarrower.cs b/Projects/UOContent/Items/Armor/Artifacts/OrnateCrownOfTheHarrower.cs index c94054d0d..7ae2a0ee3 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/OrnateCrownOfTheHarrower.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/OrnateCrownOfTheHarrower.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class OrnateCrownOfTheHarrower : BoneHelm { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/ShadowDancerLeggings.cs b/Projects/UOContent/Items/Armor/Artifacts/ShadowDancerLeggings.cs index 188c50b2b..1395a55b6 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/ShadowDancerLeggings.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/ShadowDancerLeggings.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShadowDancerLeggings : LeatherLegs { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/TunicOfFire.cs b/Projects/UOContent/Items/Armor/Artifacts/TunicOfFire.cs index 9b83136fd..41a3be68a 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/TunicOfFire.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/TunicOfFire.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TunicOfFire : ChainChest { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Artifacts/VoiceOfTheFallenKing.cs b/Projects/UOContent/Items/Armor/Artifacts/VoiceOfTheFallenKing.cs index e4db5af05..62e57d825 100644 --- a/Projects/UOContent/Items/Armor/Artifacts/VoiceOfTheFallenKing.cs +++ b/Projects/UOContent/Items/Armor/Artifacts/VoiceOfTheFallenKing.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class VoiceOfTheFallenKing : LeatherGorget { [Constructible] diff --git a/Projects/UOContent/Items/Armor/BaseArmor.cs b/Projects/UOContent/Items/Armor/BaseArmor.cs index c306494b3..ae821b7ee 100644 --- a/Projects/UOContent/Items/Armor/BaseArmor.cs +++ b/Projects/UOContent/Items/Armor/BaseArmor.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Engines.Craft; using Server.Ethics; using Server.Factions; @@ -10,7 +11,7 @@ using AMT = Server.Items.ArmorMaterialType; namespace Server.Items { - [Serializable(9, false)] + [SerializationGenerator(9, false)] public abstract partial class BaseArmor : Item, IScissorable, IFactionItem, ICraftable, IWearableDurability { [SerializableField(0, setter: "private")] diff --git a/Projects/UOContent/Items/Armor/Bone/BoneArms.cs b/Projects/UOContent/Items/Armor/Bone/BoneArms.cs index 886bff8a1..a5a41d647 100644 --- a/Projects/UOContent/Items/Armor/Bone/BoneArms.cs +++ b/Projects/UOContent/Items/Armor/Bone/BoneArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x144e, 0x1453)] public partial class BoneArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Bone/BoneChest.cs b/Projects/UOContent/Items/Armor/Bone/BoneChest.cs index 6431abd75..edbb82f10 100644 --- a/Projects/UOContent/Items/Armor/Bone/BoneChest.cs +++ b/Projects/UOContent/Items/Armor/Bone/BoneChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x144f, 0x1454)] public partial class BoneChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Bone/BoneGloves.cs b/Projects/UOContent/Items/Armor/Bone/BoneGloves.cs index 795fe85f4..5958198ad 100644 --- a/Projects/UOContent/Items/Armor/Bone/BoneGloves.cs +++ b/Projects/UOContent/Items/Armor/Bone/BoneGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1450, 0x1455)] public partial class BoneGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Bone/BoneLegs.cs b/Projects/UOContent/Items/Armor/Bone/BoneLegs.cs index ed0357a12..67c3f9653 100644 --- a/Projects/UOContent/Items/Armor/Bone/BoneLegs.cs +++ b/Projects/UOContent/Items/Armor/Bone/BoneLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1452, 0x1457)] public partial class BoneLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Chain/ChainChest.cs b/Projects/UOContent/Items/Armor/Chain/ChainChest.cs index 57df216de..9d4536d80 100644 --- a/Projects/UOContent/Items/Armor/Chain/ChainChest.cs +++ b/Projects/UOContent/Items/Armor/Chain/ChainChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13bf, 0x13c4)] public partial class ChainChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Chain/ChainHatsuburi.cs b/Projects/UOContent/Items/Armor/Chain/ChainHatsuburi.cs index 4f537f4b1..b5fd1431f 100644 --- a/Projects/UOContent/Items/Armor/Chain/ChainHatsuburi.cs +++ b/Projects/UOContent/Items/Armor/Chain/ChainHatsuburi.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ChainHatsuburi : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Chain/ChainLegs.cs b/Projects/UOContent/Items/Armor/Chain/ChainLegs.cs index 2e40231f7..edfbea1e5 100644 --- a/Projects/UOContent/Items/Armor/Chain/ChainLegs.cs +++ b/Projects/UOContent/Items/Armor/Chain/ChainLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13be, 0x13c3)] public partial class ChainLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType1.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType1.cs index 819d4e44e..0d124f8f4 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType1.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.GargishClothArms", "Server.Items.GargishClothArmsArmor")] public partial class GargishClothArmsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType2.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType2.cs index c46c5ebf0..96027ec54 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType2.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothArmsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.FemaleGargishClothArms", "Server.Items.FemaleGargishClothArmsArmor")] public partial class GargishClothArmsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType1.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType1.cs index 4785b91bb..76f8ac65c 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType1.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.GargishClothChest", "Server.Items.GargishClothChestArmor")] public partial class GargishClothChestType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType2.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType2.cs index a1ba296a2..0867ec5c7 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType2.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothChestType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.FemaleGargishClothChest", "Server.Items.FemaleGargishClothChestArmor")] public partial class GargishClothChestType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType1.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType1.cs index b3b8c1093..3200848bc 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType1.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.GargishClothKilt", "Server.Items.GargishClothKiltArmor")] public partial class GargishClothKiltType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType2.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType2.cs index e18718dc1..45c836fb4 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType2.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothKiltType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.GargishClothKilt", "Server.Items.GargishClothKiltArmor")] public partial class GargishClothKiltType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType1.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType1.cs index 45084fbc3..53e724d47 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType1.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.GargishClothLegs", "Server.Items.GargishClothLegsArmor")] public partial class GargishClothLegsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType2.cs b/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType2.cs index bad26d399..0016b886f 100644 --- a/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType2.cs +++ b/Projects/UOContent/Items/Armor/Cloth/GargishClothLegsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [TypeAlias("Server.Items.FemaleGargishClothLegs", "Server.Items.FemaleGargishClothLegsArmor")] public partial class GargishClothLegsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/DaemonBone/DaemonArms.cs b/Projects/UOContent/Items/Armor/DaemonBone/DaemonArms.cs index fd997f57f..8c22af849 100644 --- a/Projects/UOContent/Items/Armor/DaemonBone/DaemonArms.cs +++ b/Projects/UOContent/Items/Armor/DaemonBone/DaemonArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x144e, 0x1453)] public partial class DaemonArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/DaemonBone/DaemonChest.cs b/Projects/UOContent/Items/Armor/DaemonBone/DaemonChest.cs index 5c591a497..e2a0ec586 100644 --- a/Projects/UOContent/Items/Armor/DaemonBone/DaemonChest.cs +++ b/Projects/UOContent/Items/Armor/DaemonBone/DaemonChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x144f, 0x1454)] public partial class DaemonChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/DaemonBone/DaemonGloves.cs b/Projects/UOContent/Items/Armor/DaemonBone/DaemonGloves.cs index 070102ebe..e7d0793cd 100644 --- a/Projects/UOContent/Items/Armor/DaemonBone/DaemonGloves.cs +++ b/Projects/UOContent/Items/Armor/DaemonBone/DaemonGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1450, 0x1455)] public partial class DaemonGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/DaemonBone/DaemonLegs.cs b/Projects/UOContent/Items/Armor/DaemonBone/DaemonLegs.cs index f74377813..f07aeeae6 100644 --- a/Projects/UOContent/Items/Armor/DaemonBone/DaemonLegs.cs +++ b/Projects/UOContent/Items/Armor/DaemonBone/DaemonLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1452, 0x1457)] public partial class DaemonLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Dragon/DragonArms.cs b/Projects/UOContent/Items/Armor/Dragon/DragonArms.cs index 1412755c8..970be0af2 100644 --- a/Projects/UOContent/Items/Armor/Dragon/DragonArms.cs +++ b/Projects/UOContent/Items/Armor/Dragon/DragonArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x2657, 0x2658)] public partial class DragonArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Dragon/DragonChest.cs b/Projects/UOContent/Items/Armor/Dragon/DragonChest.cs index 796a76329..7e012296e 100644 --- a/Projects/UOContent/Items/Armor/Dragon/DragonChest.cs +++ b/Projects/UOContent/Items/Armor/Dragon/DragonChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x2641, 0x2642)] public partial class DragonChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Dragon/DragonGloves.cs b/Projects/UOContent/Items/Armor/Dragon/DragonGloves.cs index a327b29d9..4d2ec9c8d 100644 --- a/Projects/UOContent/Items/Armor/Dragon/DragonGloves.cs +++ b/Projects/UOContent/Items/Armor/Dragon/DragonGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x2643, 0x2644)] public partial class DragonGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Dragon/DragonHelm.cs b/Projects/UOContent/Items/Armor/Dragon/DragonHelm.cs index 900a9db5b..79190e074 100644 --- a/Projects/UOContent/Items/Armor/Dragon/DragonHelm.cs +++ b/Projects/UOContent/Items/Armor/Dragon/DragonHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x2645, 0x2646)] public partial class DragonHelm : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Dragon/DragonLegs.cs b/Projects/UOContent/Items/Armor/Dragon/DragonLegs.cs index d708fa77c..2f02eea46 100644 --- a/Projects/UOContent/Items/Armor/Dragon/DragonLegs.cs +++ b/Projects/UOContent/Items/Armor/Dragon/DragonLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x2647, 0x2648)] public partial class DragonLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Glasses/AnthropomorphistGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/AnthropomorphistGlasses.cs index d367588bc..059d8274c 100644 --- a/Projects/UOContent/Items/Armor/Glasses/AnthropomorphistGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/AnthropomorphistGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnthropomorphistGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/ArtsGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/ArtsGlasses.cs index 5982541ad..e1d502342 100644 --- a/Projects/UOContent/Items/Armor/Glasses/ArtsGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/ArtsGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ArtsGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/ElvenGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/ElvenGlasses.cs index 1b4bbd3e3..c9140977a 100644 --- a/Projects/UOContent/Items/Armor/Glasses/ElvenGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/ElvenGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ElvenGlasses : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/FoldedSteelGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/FoldedSteelGlasses.cs index 52ad9a712..a28392ff9 100644 --- a/Projects/UOContent/Items/Armor/Glasses/FoldedSteelGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/FoldedSteelGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FoldedSteelGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/LightOfWayGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/LightOfWayGlasses.cs index bc41b7a3f..fdc40425a 100644 --- a/Projects/UOContent/Items/Armor/Glasses/LightOfWayGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/LightOfWayGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightOfWayGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/LyricalGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/LyricalGlasses.cs index 4a83f3d33..cf453cb1e 100644 --- a/Projects/UOContent/Items/Armor/Glasses/LyricalGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/LyricalGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LyricalGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/MaceShieldGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/MaceShieldGlasses.cs index 2a71e599f..dc7ca8b8b 100644 --- a/Projects/UOContent/Items/Armor/Glasses/MaceShieldGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/MaceShieldGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MaceShieldGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/MaritimeGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/MaritimeGlasses.cs index 7afdc60d6..0f892737e 100644 --- a/Projects/UOContent/Items/Armor/Glasses/MaritimeGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/MaritimeGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MaritimeGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/NecromanticGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/NecromanticGlasses.cs index 334cb7469..cbf3b455f 100644 --- a/Projects/UOContent/Items/Armor/Glasses/NecromanticGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/NecromanticGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NecromanticGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/PoisonedGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/PoisonedGlasses.cs index e96c2e41c..706d33f3a 100644 --- a/Projects/UOContent/Items/Armor/Glasses/PoisonedGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/PoisonedGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PoisonedGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/TradeGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/TradeGlasses.cs index 7bfd740a9..224a83870 100644 --- a/Projects/UOContent/Items/Armor/Glasses/TradeGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/TradeGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TradeGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/TreasureTrinketGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/TreasureTrinketGlasses.cs index a4e4df3be..f355f166c 100644 --- a/Projects/UOContent/Items/Armor/Glasses/TreasureTrinketGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/TreasureTrinketGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TreasureTrinketGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Glasses/WizardsGlasses.cs b/Projects/UOContent/Items/Armor/Glasses/WizardsGlasses.cs index 1f9f93573..628dcfd0e 100644 --- a/Projects/UOContent/Items/Armor/Glasses/WizardsGlasses.cs +++ b/Projects/UOContent/Items/Armor/Glasses/WizardsGlasses.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WizardsGlasses : ElvenGlasses { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/Bascinet.cs b/Projects/UOContent/Items/Armor/Helmets/Bascinet.cs index a4f7b9f23..3885e397a 100644 --- a/Projects/UOContent/Items/Armor/Helmets/Bascinet.cs +++ b/Projects/UOContent/Items/Armor/Helmets/Bascinet.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bascinet : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/BoneHelm.cs b/Projects/UOContent/Items/Armor/Helmets/BoneHelm.cs index e6d891e3d..f863f6d7a 100644 --- a/Projects/UOContent/Items/Armor/Helmets/BoneHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/BoneHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1451, 0x1456)] public partial class BoneHelm : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Helmets/ChainCoif.cs b/Projects/UOContent/Items/Armor/Helmets/ChainCoif.cs index 6db814674..d1277dd77 100644 --- a/Projects/UOContent/Items/Armor/Helmets/ChainCoif.cs +++ b/Projects/UOContent/Items/Armor/Helmets/ChainCoif.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13BB, 0x13C0)] public partial class ChainCoif : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Helmets/Circlet.cs b/Projects/UOContent/Items/Armor/Helmets/Circlet.cs index 7d504bfa2..7544eb134 100644 --- a/Projects/UOContent/Items/Armor/Helmets/Circlet.cs +++ b/Projects/UOContent/Items/Armor/Helmets/Circlet.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B6E, 0x3165)] public partial class Circlet : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Helmets/CloseHelm.cs b/Projects/UOContent/Items/Armor/Helmets/CloseHelm.cs index 0de794c6b..b7a5197a4 100644 --- a/Projects/UOContent/Items/Armor/Helmets/CloseHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/CloseHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CloseHelm : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/DaemonHelm.cs b/Projects/UOContent/Items/Armor/Helmets/DaemonHelm.cs index 81fb497da..80f2de0b5 100644 --- a/Projects/UOContent/Items/Armor/Helmets/DaemonHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/DaemonHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1451, 0x1456)] public partial class DaemonHelm : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Helmets/GemmedCirclet.cs b/Projects/UOContent/Items/Armor/Helmets/GemmedCirclet.cs index 26c0d373d..3df8b821a 100644 --- a/Projects/UOContent/Items/Armor/Helmets/GemmedCirclet.cs +++ b/Projects/UOContent/Items/Armor/Helmets/GemmedCirclet.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2B70, 0x3167)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class GemmedCirclet : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/Helmet.cs b/Projects/UOContent/Items/Armor/Helmets/Helmet.cs index 9dd8a7a15..01b138abb 100644 --- a/Projects/UOContent/Items/Armor/Helmets/Helmet.cs +++ b/Projects/UOContent/Items/Armor/Helmets/Helmet.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Helmet : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/LeatherCap.cs b/Projects/UOContent/Items/Armor/Helmets/LeatherCap.cs index 455bc4550..dfeafd35b 100644 --- a/Projects/UOContent/Items/Armor/Helmets/LeatherCap.cs +++ b/Projects/UOContent/Items/Armor/Helmets/LeatherCap.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x1db9, 0x1dba)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherCap : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/NorseHelm.cs b/Projects/UOContent/Items/Armor/Helmets/NorseHelm.cs index 5278c1437..84926b157 100644 --- a/Projects/UOContent/Items/Armor/Helmets/NorseHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/NorseHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NorseHelm : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/OrcHelm.cs b/Projects/UOContent/Items/Armor/Helmets/OrcHelm.cs index 263922d7b..e7e34a718 100644 --- a/Projects/UOContent/Items/Armor/Helmets/OrcHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/OrcHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class OrcHelm : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/PlateHelm.cs b/Projects/UOContent/Items/Armor/Helmets/PlateHelm.cs index a9401e970..c4e2060cf 100644 --- a/Projects/UOContent/Items/Armor/Helmets/PlateHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/PlateHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateHelm : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/RavenHelm.cs b/Projects/UOContent/Items/Armor/Helmets/RavenHelm.cs index ce38ba388..5cd85bb25 100644 --- a/Projects/UOContent/Items/Armor/Helmets/RavenHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/RavenHelm.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2B71, 0x3168)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class RavenHelm : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/RoyalCirclet.cs b/Projects/UOContent/Items/Armor/Helmets/RoyalCirclet.cs index 673eb2e12..ed2b78800 100644 --- a/Projects/UOContent/Items/Armor/Helmets/RoyalCirclet.cs +++ b/Projects/UOContent/Items/Armor/Helmets/RoyalCirclet.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2B6F, 0x3166)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class RoyalCirclet : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/VultureHelm.cs b/Projects/UOContent/Items/Armor/Helmets/VultureHelm.cs index 59f169fc4..8d5e89a25 100644 --- a/Projects/UOContent/Items/Armor/Helmets/VultureHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/VultureHelm.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2B72, 0x3169)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class VultureHelm : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Helmets/WingedHelm.cs b/Projects/UOContent/Items/Armor/Helmets/WingedHelm.cs index f8609a28c..91c2f3b59 100644 --- a/Projects/UOContent/Items/Armor/Helmets/WingedHelm.cs +++ b/Projects/UOContent/Items/Armor/Helmets/WingedHelm.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2B73, 0x316A)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class WingedHelm : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/FemaleLeafChest.cs b/Projects/UOContent/Items/Armor/Leather/FemaleLeafChest.cs index e46b414b6..83b7bb84c 100644 --- a/Projects/UOContent/Items/Armor/Leather/FemaleLeafChest.cs +++ b/Projects/UOContent/Items/Armor/Leather/FemaleLeafChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2FCB, 0x3181)] public partial class FemaleLeafChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/FemaleLeatherChest.cs b/Projects/UOContent/Items/Armor/Leather/FemaleLeatherChest.cs index 30e3edd50..0a6433ff9 100644 --- a/Projects/UOContent/Items/Armor/Leather/FemaleLeatherChest.cs +++ b/Projects/UOContent/Items/Armor/Leather/FemaleLeatherChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1c06, 0x1c07)] public partial class FemaleLeatherChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType1.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType1.cs index 950141073..007d64209 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType1.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishLeatherArms")] public partial class GargishLeatherArmsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType2.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType2.cs index 8c973c861..5167c8e15 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType2.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherArmsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishLeatherArms")] public partial class GargishLeatherArmsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType1.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType1.cs index 1af594db3..21a38d83c 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType1.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishLeatherChest")] public partial class GargishLeatherChestType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType2.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType2.cs index 5e0278116..5e91ef3a0 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType2.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherChestType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishLeatherChest")] public partial class GargishLeatherChestType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType1.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType1.cs index e84097924..98d468165 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType1.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishLeatherKilt")] public partial class GargishLeatherKiltType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType2.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType2.cs index 89438bfb9..ef7e3491c 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType2.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherKiltType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishLeatherKilt")] public partial class GargishLeatherKiltType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType1.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType1.cs index 22bb593c9..6decd20a6 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType1.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishLeatherLegs")] public partial class GargishLeatherLegsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType2.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType2.cs index 5aa010f10..be0e8b395 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType2.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherLegsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishLeatherLegs")] public partial class GargishLeatherLegsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/GargishLeatherWingArmor.cs b/Projects/UOContent/Items/Armor/Leather/GargishLeatherWingArmor.cs index 3773586de..52505040e 100644 --- a/Projects/UOContent/Items/Armor/Leather/GargishLeatherWingArmor.cs +++ b/Projects/UOContent/Items/Armor/Leather/GargishLeatherWingArmor.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x457E, 0x457F)] public partial class GargishLeatherWingArmor : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeafArms.cs b/Projects/UOContent/Items/Armor/Leather/LeafArms.cs index cafacb422..2eb21fbfd 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeafArms.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeafArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2FC8, 0x317E)] public partial class LeafArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeafChest.cs b/Projects/UOContent/Items/Armor/Leather/LeafChest.cs index 5a1919187..853aad33d 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeafChest.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeafChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2FC5, 0x317B)] public partial class LeafChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeafGloves.cs b/Projects/UOContent/Items/Armor/Leather/LeafGloves.cs index 611e5952f..5698e6cd9 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeafGloves.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeafGloves.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable] - [Serializable(1)] + [SerializationGenerator(1)] public partial class LeafGloves : BaseArmor, IArcaneEquip { private int _maxArcaneCharges; diff --git a/Projects/UOContent/Items/Armor/Leather/LeafGorget.cs b/Projects/UOContent/Items/Armor/Leather/LeafGorget.cs index 0e024ef06..7361479ce 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeafGorget.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeafGorget.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class LeafGorget : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeafLegs.cs b/Projects/UOContent/Items/Armor/Leather/LeafLegs.cs index 1867289e3..6ba3d3593 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeafLegs.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeafLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2FC9, 0x317F)] public partial class LeafLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeafTonlet.cs b/Projects/UOContent/Items/Armor/Leather/LeafTonlet.cs index 2aa652ddf..b627757e7 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeafTonlet.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeafTonlet.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2FCA, 0x3180)] public partial class LeafTonlet : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherArms.cs b/Projects/UOContent/Items/Armor/Leather/LeatherArms.cs index d2b399f33..f092fb371 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherArms.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13cd, 0x13c5)] public partial class LeatherArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherBustierArms.cs b/Projects/UOContent/Items/Armor/Leather/LeatherBustierArms.cs index e480f1753..5e7bd8e9a 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherBustierArms.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherBustierArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1c0a, 0x1c0b)] public partial class LeatherBustierArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherChest.cs b/Projects/UOContent/Items/Armor/Leather/LeatherChest.cs index 7bf28c097..e66f20ef1 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherChest.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13cc, 0x13d3)] public partial class LeatherChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherDo.cs b/Projects/UOContent/Items/Armor/Leather/LeatherDo.cs index 0b389285c..a0450165e 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherDo.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherDo.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherDo : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherGloves.cs b/Projects/UOContent/Items/Armor/Leather/LeatherGloves.cs index 7a79e95fe..7b0a8a2c0 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherGloves.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherGloves.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable] - [Serializable(2, false)] + [SerializationGenerator(2, false)] public partial class LeatherGloves : BaseArmor, IArcaneEquip { private int _maxArcaneCharges; diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherGorget.cs b/Projects/UOContent/Items/Armor/Leather/LeatherGorget.cs index 07b8baf08..42eb16daf 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherGorget.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherGorget.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherGorget : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherHaidate.cs b/Projects/UOContent/Items/Armor/Leather/LeatherHaidate.cs index 5a267ff4d..a4509020d 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherHaidate.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherHaidate.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherHaidate : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherHiroSode.cs b/Projects/UOContent/Items/Armor/Leather/LeatherHiroSode.cs index 107940e01..6b54d1695 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherHiroSode.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherHiroSode.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherHiroSode : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherJingasa.cs b/Projects/UOContent/Items/Armor/Leather/LeatherJingasa.cs index d26cd8793..a37ed89c0 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherJingasa.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherJingasa.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherJingasa : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherLegs.cs b/Projects/UOContent/Items/Armor/Leather/LeatherLegs.cs index 9c3d88b98..2d83b9148 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherLegs.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13cb, 0x13d2)] public partial class LeatherLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherMempo.cs b/Projects/UOContent/Items/Armor/Leather/LeatherMempo.cs index 4fda47995..5887692ab 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherMempo.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherMempo.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherMempo : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaHood.cs b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaHood.cs index b0c09710b..19d7cd049 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaHood.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaHood.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherNinjaHood : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaJacket.cs b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaJacket.cs index 05c5ab220..c27194003 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaJacket.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaJacket.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherNinjaJacket : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaMitts.cs b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaMitts.cs index 3e3586bfc..0112fafa3 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaMitts.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaMitts.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherNinjaMitts : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaPants.cs b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaPants.cs index c7fbd22e6..b21807d32 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherNinjaPants.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherNinjaPants.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherNinjaPants : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherShorts.cs b/Projects/UOContent/Items/Armor/Leather/LeatherShorts.cs index 08cadaf62..b18307d99 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherShorts.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherShorts.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1c00, 0x1c01)] public partial class LeatherShorts : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherSkirt.cs b/Projects/UOContent/Items/Armor/Leather/LeatherSkirt.cs index 6c351757c..acaaa09fb 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherSkirt.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherSkirt.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1c08, 0x1c09)] public partial class LeatherSkirt : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Leather/LeatherSuneate.cs b/Projects/UOContent/Items/Armor/Leather/LeatherSuneate.cs index 6262a83dc..31df6ddeb 100644 --- a/Projects/UOContent/Items/Armor/Leather/LeatherSuneate.cs +++ b/Projects/UOContent/Items/Armor/Leather/LeatherSuneate.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeatherSuneate : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/DecorativePlateKabuto.cs b/Projects/UOContent/Items/Armor/Plate/DecorativePlateKabuto.cs index f24620620..e8d99a675 100644 --- a/Projects/UOContent/Items/Armor/Plate/DecorativePlateKabuto.cs +++ b/Projects/UOContent/Items/Armor/Plate/DecorativePlateKabuto.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativePlateKabuto : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/FemalePlateChest.cs b/Projects/UOContent/Items/Armor/Plate/FemalePlateChest.cs index 5298e68f9..76bd975b4 100644 --- a/Projects/UOContent/Items/Armor/Plate/FemalePlateChest.cs +++ b/Projects/UOContent/Items/Armor/Plate/FemalePlateChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1c04, 0x1c05)] public partial class FemalePlateChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/FemaleWoodlandChest.cs b/Projects/UOContent/Items/Armor/Plate/FemaleWoodlandChest.cs index 2dcfce8a1..5ac5a42ab 100644 --- a/Projects/UOContent/Items/Armor/Plate/FemaleWoodlandChest.cs +++ b/Projects/UOContent/Items/Armor/Plate/FemaleWoodlandChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B6D, 0x3164)] public partial class FemaleElvenPlateChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/HeavyPlateJingasa.cs b/Projects/UOContent/Items/Armor/Plate/HeavyPlateJingasa.cs index f98e3c58b..b35003750 100644 --- a/Projects/UOContent/Items/Armor/Plate/HeavyPlateJingasa.cs +++ b/Projects/UOContent/Items/Armor/Plate/HeavyPlateJingasa.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HeavyPlateJingasa : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/LightPlateJingasa.cs b/Projects/UOContent/Items/Armor/Plate/LightPlateJingasa.cs index a8024d88f..1f35c50ae 100644 --- a/Projects/UOContent/Items/Armor/Plate/LightPlateJingasa.cs +++ b/Projects/UOContent/Items/Armor/Plate/LightPlateJingasa.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightPlateJingasa : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateArms.cs b/Projects/UOContent/Items/Armor/Plate/PlateArms.cs index 2269150fa..1e4505195 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateArms.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1410, 0x1417)] public partial class PlateArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/PlateBattleKabuto.cs b/Projects/UOContent/Items/Armor/Plate/PlateBattleKabuto.cs index 8a6aa5289..cc882ec5b 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateBattleKabuto.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateBattleKabuto.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateBattleKabuto : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateChest.cs b/Projects/UOContent/Items/Armor/Plate/PlateChest.cs index 4a00f339d..60375189a 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateChest.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1415, 0x1416)] public partial class PlateChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/PlateDo.cs b/Projects/UOContent/Items/Armor/Plate/PlateDo.cs index 44fdf73f2..de8ecd5f1 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateDo.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateDo.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateDo : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateGloves.cs b/Projects/UOContent/Items/Armor/Plate/PlateGloves.cs index bf10b5751..2303f2a83 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateGloves.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1414, 0x1418)] public partial class PlateGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/PlateGorget.cs b/Projects/UOContent/Items/Armor/Plate/PlateGorget.cs index 10880dad2..27ea17e0f 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateGorget.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateGorget.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateGorget : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateHaidate.cs b/Projects/UOContent/Items/Armor/Plate/PlateHaidate.cs index 04e192ce2..ae238cf3b 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateHaidate.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateHaidate.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateHaidate : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateHatsuburi.cs b/Projects/UOContent/Items/Armor/Plate/PlateHatsuburi.cs index 7d0e43054..cb629b4ce 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateHatsuburi.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateHatsuburi.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateHatsuburi : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateHiroSode.cs b/Projects/UOContent/Items/Armor/Plate/PlateHiroSode.cs index e565693f6..2f272a4a7 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateHiroSode.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateHiroSode.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateHiroSode : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateLegs.cs b/Projects/UOContent/Items/Armor/Plate/PlateLegs.cs index c633ca873..cc69bfce6 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateLegs.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1411, 0x141a)] public partial class PlateLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/PlateMempo.cs b/Projects/UOContent/Items/Armor/Plate/PlateMempo.cs index c42e3c84b..257dcce97 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateMempo.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateMempo.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateMempo : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/PlateSuneate.cs b/Projects/UOContent/Items/Armor/Plate/PlateSuneate.cs index ae8298b63..dce3c24fa 100644 --- a/Projects/UOContent/Items/Armor/Plate/PlateSuneate.cs +++ b/Projects/UOContent/Items/Armor/Plate/PlateSuneate.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlateSuneate : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/SmallPlateJingasa.cs b/Projects/UOContent/Items/Armor/Plate/SmallPlateJingasa.cs index 592cc447c..3d3112286 100644 --- a/Projects/UOContent/Items/Armor/Plate/SmallPlateJingasa.cs +++ b/Projects/UOContent/Items/Armor/Plate/SmallPlateJingasa.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SmallPlateJingasa : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/StandardPlateKabuto.cs b/Projects/UOContent/Items/Armor/Plate/StandardPlateKabuto.cs index cf23240c3..be98d3a65 100644 --- a/Projects/UOContent/Items/Armor/Plate/StandardPlateKabuto.cs +++ b/Projects/UOContent/Items/Armor/Plate/StandardPlateKabuto.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StandardPlateKabuto : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Plate/WoodlandArms.cs b/Projects/UOContent/Items/Armor/Plate/WoodlandArms.cs index 8517da829..582bfed08 100644 --- a/Projects/UOContent/Items/Armor/Plate/WoodlandArms.cs +++ b/Projects/UOContent/Items/Armor/Plate/WoodlandArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B6C, 0x3163)] public partial class WoodlandArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/WoodlandChest.cs b/Projects/UOContent/Items/Armor/Plate/WoodlandChest.cs index c90b21fce..9fb9e6567 100644 --- a/Projects/UOContent/Items/Armor/Plate/WoodlandChest.cs +++ b/Projects/UOContent/Items/Armor/Plate/WoodlandChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B67, 0x315E)] public partial class WoodlandChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/WoodlandGloves.cs b/Projects/UOContent/Items/Armor/Plate/WoodlandGloves.cs index 7ea514016..40455c089 100644 --- a/Projects/UOContent/Items/Armor/Plate/WoodlandGloves.cs +++ b/Projects/UOContent/Items/Armor/Plate/WoodlandGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B6A, 0x3161)] public partial class WoodlandGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/WoodlandGorget.cs b/Projects/UOContent/Items/Armor/Plate/WoodlandGorget.cs index 492d1216e..1554576fe 100644 --- a/Projects/UOContent/Items/Armor/Plate/WoodlandGorget.cs +++ b/Projects/UOContent/Items/Armor/Plate/WoodlandGorget.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B69, 0x3160)] public partial class WoodlandGorget : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Plate/WoodlandLegs.cs b/Projects/UOContent/Items/Armor/Plate/WoodlandLegs.cs index ee10d8f65..ec16588aa 100644 --- a/Projects/UOContent/Items/Armor/Plate/WoodlandLegs.cs +++ b/Projects/UOContent/Items/Armor/Plate/WoodlandLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B6B, 0x3162)] public partial class WoodlandLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ranger/RangerArms.cs b/Projects/UOContent/Items/Armor/Ranger/RangerArms.cs index 5745de85a..6eb5864db 100644 --- a/Projects/UOContent/Items/Armor/Ranger/RangerArms.cs +++ b/Projects/UOContent/Items/Armor/Ranger/RangerArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13dc, 0x13d4)] public partial class RangerArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ranger/RangerChest.cs b/Projects/UOContent/Items/Armor/Ranger/RangerChest.cs index 2b573a11a..e2a6054f5 100644 --- a/Projects/UOContent/Items/Armor/Ranger/RangerChest.cs +++ b/Projects/UOContent/Items/Armor/Ranger/RangerChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13db, 0x13e2)] public partial class RangerChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ranger/RangerGloves.cs b/Projects/UOContent/Items/Armor/Ranger/RangerGloves.cs index 2a42a14d3..b51b766e6 100644 --- a/Projects/UOContent/Items/Armor/Ranger/RangerGloves.cs +++ b/Projects/UOContent/Items/Armor/Ranger/RangerGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13d5, 0x13dd)] public partial class RangerGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ranger/RangerGorget.cs b/Projects/UOContent/Items/Armor/Ranger/RangerGorget.cs index 13c751303..e9a4a6949 100644 --- a/Projects/UOContent/Items/Armor/Ranger/RangerGorget.cs +++ b/Projects/UOContent/Items/Armor/Ranger/RangerGorget.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RangerGorget : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Ranger/RangerLegs.cs b/Projects/UOContent/Items/Armor/Ranger/RangerLegs.cs index 39549df6e..7fae0424a 100644 --- a/Projects/UOContent/Items/Armor/Ranger/RangerLegs.cs +++ b/Projects/UOContent/Items/Armor/Ranger/RangerLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13da, 0x13e1)] public partial class RangerLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ring/RingmailArms.cs b/Projects/UOContent/Items/Armor/Ring/RingmailArms.cs index b22ac9ca0..c9d1061e0 100644 --- a/Projects/UOContent/Items/Armor/Ring/RingmailArms.cs +++ b/Projects/UOContent/Items/Armor/Ring/RingmailArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13ee, 0x13ef)] public partial class RingmailArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ring/RingmailChest.cs b/Projects/UOContent/Items/Armor/Ring/RingmailChest.cs index 3c43daf7d..e01dd908e 100644 --- a/Projects/UOContent/Items/Armor/Ring/RingmailChest.cs +++ b/Projects/UOContent/Items/Armor/Ring/RingmailChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13ec, 0x13ed)] public partial class RingmailChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ring/RingmailGloves.cs b/Projects/UOContent/Items/Armor/Ring/RingmailGloves.cs index 15f3ab0d2..b57887f80 100644 --- a/Projects/UOContent/Items/Armor/Ring/RingmailGloves.cs +++ b/Projects/UOContent/Items/Armor/Ring/RingmailGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13eb, 0x13f2)] public partial class RingmailGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Ring/RingmailLegs.cs b/Projects/UOContent/Items/Armor/Ring/RingmailLegs.cs index 1704cbf71..189a8597d 100644 --- a/Projects/UOContent/Items/Armor/Ring/RingmailLegs.cs +++ b/Projects/UOContent/Items/Armor/Ring/RingmailLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13f0, 0x13f1)] public partial class RingmailLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType1.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType1.cs index e9223b58f..8e28498d0 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType1.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStoneArms")] public partial class GargishStoneArmsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType2.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType2.cs index ec9a5cefc..9198bf879 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType2.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneArmsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStoneArms")] public partial class GargishStoneArmsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType1.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType1.cs index 8aafab468..25b39d0eb 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType1.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStoneChest")] public partial class GargishStoneChestType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType2.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType2.cs index 78fa08650..81bb3b928 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType2.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneChestType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStoneChest")] public partial class GargishStoneChestType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType1.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType1.cs index cf826661f..501a9cbf2 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType1.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStoneKilt")] public partial class GargishStoneKiltType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType2.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType2.cs index 7ca6f2363..43103cd72 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType2.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneKiltType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStoneKilt")] public partial class GargishStoneKiltType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType1.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType1.cs index 3974d969a..c8a683f91 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType1.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStoneLegs")] public partial class GargishStoneLegsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType2.cs b/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType2.cs index 90707fc02..f5ab12bbf 100644 --- a/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType2.cs +++ b/Projects/UOContent/Items/Armor/Stone/GargishStoneLegsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStoneLegs")] public partial class GargishStoneLegsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/FemaleStuddedChest.cs b/Projects/UOContent/Items/Armor/Studded/FemaleStuddedChest.cs index 5a378aeed..9034f797a 100644 --- a/Projects/UOContent/Items/Armor/Studded/FemaleStuddedChest.cs +++ b/Projects/UOContent/Items/Armor/Studded/FemaleStuddedChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1c02, 0x1c03)] public partial class FemaleStuddedChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType1.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType1.cs index 6cd2fcb02..9d3279ae2 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType1.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStuddedArms")] public partial class GargishStuddedArmsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType2.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType2.cs index 35d76fbe2..c30396f45 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType2.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedArmsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStuddedArms")] public partial class GargishStuddedArmsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType1.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType1.cs index 4245fbd33..6d3305544 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType1.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStuddedChest")] public partial class GargishStuddedChestType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType2.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType2.cs index 1c5a78f59..ef80c6847 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType2.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedChestType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStuddedChest")] public partial class GargishStuddedChestType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType1.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType1.cs index fda72ba8d..2b61adb4d 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType1.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStuddedKilt")] public partial class GargishStuddedKiltType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType2.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType2.cs index 9ea5e74c9..a5d60040f 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType2.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedKiltType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStuddedKilt")] public partial class GargishStuddedKiltType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType1.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType1.cs index 81cb4bb1d..8b98f861b 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType1.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType1.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.GargishStuddedLegs")] public partial class GargishStuddedLegsType1 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType2.cs b/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType2.cs index aa2496357..3984ad6eb 100644 --- a/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType2.cs +++ b/Projects/UOContent/Items/Armor/Studded/GargishStuddedLegsType2.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [TypeAlias("Server.Items.FemaleGargishStuddedLegs")] public partial class GargishStuddedLegsType2 : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/HideChest.cs b/Projects/UOContent/Items/Armor/Studded/HideChest.cs index d7c2ab30d..b853279ba 100644 --- a/Projects/UOContent/Items/Armor/Studded/HideChest.cs +++ b/Projects/UOContent/Items/Armor/Studded/HideChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B74, 0x316B)] public partial class HideChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/HideFemaleChest.cs b/Projects/UOContent/Items/Armor/Studded/HideFemaleChest.cs index cd7529b4b..acafa6b7f 100644 --- a/Projects/UOContent/Items/Armor/Studded/HideFemaleChest.cs +++ b/Projects/UOContent/Items/Armor/Studded/HideFemaleChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B79, 0x3170)] public partial class HideFemaleChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/HideGloves.cs b/Projects/UOContent/Items/Armor/Studded/HideGloves.cs index c3a6a915c..cc9bde92a 100644 --- a/Projects/UOContent/Items/Armor/Studded/HideGloves.cs +++ b/Projects/UOContent/Items/Armor/Studded/HideGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B75, 0x316C)] public partial class HideGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/HideGorget.cs b/Projects/UOContent/Items/Armor/Studded/HideGorget.cs index 9473afc3d..831c816da 100644 --- a/Projects/UOContent/Items/Armor/Studded/HideGorget.cs +++ b/Projects/UOContent/Items/Armor/Studded/HideGorget.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x2B76, 0x316D)] public partial class HideGorget : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/HidePants.cs b/Projects/UOContent/Items/Armor/Studded/HidePants.cs index 200861c35..3b952d3bc 100644 --- a/Projects/UOContent/Items/Armor/Studded/HidePants.cs +++ b/Projects/UOContent/Items/Armor/Studded/HidePants.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B78, 0x316F)] public partial class HidePants : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/HidePauldrons.cs b/Projects/UOContent/Items/Armor/Studded/HidePauldrons.cs index a91c1cb1a..0eb6b8b3d 100644 --- a/Projects/UOContent/Items/Armor/Studded/HidePauldrons.cs +++ b/Projects/UOContent/Items/Armor/Studded/HidePauldrons.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2B77, 0x316E)] public partial class HidePauldrons : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedArms.cs b/Projects/UOContent/Items/Armor/Studded/StuddedArms.cs index 3d16400d2..4fa9de780 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedArms.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13dc, 0x13d4)] public partial class StuddedArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedBustierArms.cs b/Projects/UOContent/Items/Armor/Studded/StuddedBustierArms.cs index 5f55712ff..3dd466c49 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedBustierArms.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedBustierArms.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1c0c, 0x1c0d)] public partial class StuddedBustierArms : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedChest.cs b/Projects/UOContent/Items/Armor/Studded/StuddedChest.cs index 99d1ac8b8..2698f5b09 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedChest.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedChest.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13db, 0x13e2)] public partial class StuddedChest : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedDo.cs b/Projects/UOContent/Items/Armor/Studded/StuddedDo.cs index adf62707a..692076af7 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedDo.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedDo.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StuddedDo : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedGloves.cs b/Projects/UOContent/Items/Armor/Studded/StuddedGloves.cs index c6977efb1..aa2d585ea 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedGloves.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedGloves.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13d5, 0x13dd)] public partial class StuddedGloves : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedGorget.cs b/Projects/UOContent/Items/Armor/Studded/StuddedGorget.cs index d72ba4199..079d99e3a 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedGorget.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedGorget.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StuddedGorget : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedHaidate.cs b/Projects/UOContent/Items/Armor/Studded/StuddedHaidate.cs index b719c1fe9..26b41dd45 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedHaidate.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedHaidate.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StuddedHaidate : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedHiroSode.cs b/Projects/UOContent/Items/Armor/Studded/StuddedHiroSode.cs index 145e1c7cb..0b0afd5bd 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedHiroSode.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedHiroSode.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StuddedHiroSode : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedLegs.cs b/Projects/UOContent/Items/Armor/Studded/StuddedLegs.cs index 24a77c890..85863125b 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedLegs.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13da, 0x13e1)] public partial class StuddedLegs : BaseArmor { diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedMempo.cs b/Projects/UOContent/Items/Armor/Studded/StuddedMempo.cs index 252c836e7..31b0b9a82 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedMempo.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedMempo.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StuddedMempo : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Armor/Studded/StuddedSuneate.cs b/Projects/UOContent/Items/Armor/Studded/StuddedSuneate.cs index 55b77c2a5..f57939ea1 100644 --- a/Projects/UOContent/Items/Armor/Studded/StuddedSuneate.cs +++ b/Projects/UOContent/Items/Armor/Studded/StuddedSuneate.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StuddedSuneate : BaseArmor { [Constructible] diff --git a/Projects/UOContent/Items/Body Parts/BonePile.cs b/Projects/UOContent/Items/Body Parts/BonePile.cs index 64e3e90d0..04fcadcda 100644 --- a/Projects/UOContent/Items/Body Parts/BonePile.cs +++ b/Projects/UOContent/Items/Body Parts/BonePile.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1B09, 0x1B10)] public partial class BonePile : Item, IScissorable { diff --git a/Projects/UOContent/Items/Body Parts/Head.cs b/Projects/UOContent/Items/Body Parts/Head.cs index 39f4078f7..c5c67ed6a 100644 --- a/Projects/UOContent/Items/Body Parts/Head.cs +++ b/Projects/UOContent/Items/Body Parts/Head.cs @@ -1,3 +1,5 @@ +using ModernUO.Serialization; + namespace Server.Items { public enum HeadType @@ -7,7 +9,7 @@ namespace Server.Items Tournament } - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class Head : Item { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Body Parts/LeftArm.cs b/Projects/UOContent/Items/Body Parts/LeftArm.cs index 6e514fc52..1ff09dea0 100644 --- a/Projects/UOContent/Items/Body Parts/LeftArm.cs +++ b/Projects/UOContent/Items/Body Parts/LeftArm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeftArm : Item { [Constructible] diff --git a/Projects/UOContent/Items/Body Parts/LeftLeg.cs b/Projects/UOContent/Items/Body Parts/LeftLeg.cs index 620e169f9..2495b97d6 100644 --- a/Projects/UOContent/Items/Body Parts/LeftLeg.cs +++ b/Projects/UOContent/Items/Body Parts/LeftLeg.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LeftLeg : Item { [Constructible] diff --git a/Projects/UOContent/Items/Body Parts/RibCage.cs b/Projects/UOContent/Items/Body Parts/RibCage.cs index 0267b8165..0b02dfce0 100644 --- a/Projects/UOContent/Items/Body Parts/RibCage.cs +++ b/Projects/UOContent/Items/Body Parts/RibCage.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1B17, 0x1B18)] public partial class RibCage : Item, IScissorable { diff --git a/Projects/UOContent/Items/Body Parts/RightArm.cs b/Projects/UOContent/Items/Body Parts/RightArm.cs index 4adc9ca5a..2360cc447 100644 --- a/Projects/UOContent/Items/Body Parts/RightArm.cs +++ b/Projects/UOContent/Items/Body Parts/RightArm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RightArm : Item { [Constructible] diff --git a/Projects/UOContent/Items/Body Parts/RightLeg.cs b/Projects/UOContent/Items/Body Parts/RightLeg.cs index b9fcd60fb..c7eff68e7 100644 --- a/Projects/UOContent/Items/Body Parts/RightLeg.cs +++ b/Projects/UOContent/Items/Body Parts/RightLeg.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RightLeg : Item { [Constructible] diff --git a/Projects/UOContent/Items/Body Parts/Torso.cs b/Projects/UOContent/Items/Body Parts/Torso.cs index 68a1add55..8a26dbecf 100644 --- a/Projects/UOContent/Items/Body Parts/Torso.cs +++ b/Projects/UOContent/Items/Body Parts/Torso.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Torso : Item { [Constructible] diff --git a/Projects/UOContent/Items/Books/BaseBook.cs b/Projects/UOContent/Items/Books/BaseBook.cs index 52a703f82..85f62eee1 100644 --- a/Projects/UOContent/Items/Books/BaseBook.cs +++ b/Projects/UOContent/Items/Books/BaseBook.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Buffers; using Server.ContextMenus; using Server.Gumps; @@ -7,7 +8,7 @@ using Server.Multis; namespace Server.Items { - [Serializable(5, false)] + [SerializationGenerator(5, false)] public partial class BaseBook : Item, ISecurable { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Books/BlueBook.cs b/Projects/UOContent/Items/Books/BlueBook.cs index f8e1ef965..2a47dd817 100644 --- a/Projects/UOContent/Items/Books/BlueBook.cs +++ b/Projects/UOContent/Items/Books/BlueBook.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BlueBook : BaseBook { [Constructible] diff --git a/Projects/UOContent/Items/Books/BrownBook.cs b/Projects/UOContent/Items/Books/BrownBook.cs index e0083a744..f845a8875 100644 --- a/Projects/UOContent/Items/Books/BrownBook.cs +++ b/Projects/UOContent/Items/Books/BrownBook.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrownBook : BaseBook { [Constructible] diff --git a/Projects/UOContent/Items/Books/Defined/BlackthornWelcomeBook.cs b/Projects/UOContent/Items/Books/Defined/BlackthornWelcomeBook.cs index 78e0ffffd..2f103ccec 100644 --- a/Projects/UOContent/Items/Books/Defined/BlackthornWelcomeBook.cs +++ b/Projects/UOContent/Items/Books/Defined/BlackthornWelcomeBook.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class BlackthornWelcomeBook : RedBook { public static readonly BookContent Content = new( diff --git a/Projects/UOContent/Items/Books/Defined/DrakovsJournal.cs b/Projects/UOContent/Items/Books/Defined/DrakovsJournal.cs index 09b8c4bf6..eab1cc2e5 100644 --- a/Projects/UOContent/Items/Books/Defined/DrakovsJournal.cs +++ b/Projects/UOContent/Items/Books/Defined/DrakovsJournal.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class DrakovsJournal : BlueBook { public static readonly BookContent Content = new( diff --git a/Projects/UOContent/Items/Books/Defined/FropozJournal.cs b/Projects/UOContent/Items/Books/Defined/FropozJournal.cs index a2d361ea6..9051e678a 100644 --- a/Projects/UOContent/Items/Books/Defined/FropozJournal.cs +++ b/Projects/UOContent/Items/Books/Defined/FropozJournal.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class FropozJournal : RedBook { public static readonly BookContent Content = new( diff --git a/Projects/UOContent/Items/Books/Defined/KaburJournal.cs b/Projects/UOContent/Items/Books/Defined/KaburJournal.cs index 69da71ca6..fbbad7317 100644 --- a/Projects/UOContent/Items/Books/Defined/KaburJournal.cs +++ b/Projects/UOContent/Items/Books/Defined/KaburJournal.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class KaburJournal : RedBook { public static readonly BookContent Content = new( diff --git a/Projects/UOContent/Items/Books/Defined/LibraryBooks.cs b/Projects/UOContent/Items/Books/Defined/LibraryBooks.cs index 6bdf73831..615bb756b 100644 --- a/Projects/UOContent/Items/Books/Defined/LibraryBooks.cs +++ b/Projects/UOContent/Items/Books/Defined/LibraryBooks.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class GrammarOfOrcish : BaseBook { public static readonly BookContent Content = new( @@ -246,7 +248,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class CallToAnarchy : BaseBook { public static readonly BookContent Content = new( @@ -407,7 +409,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArmsAndWeaponsPrimer : BaseBook { public static readonly BookContent Content = new( @@ -578,7 +580,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class SongOfSamlethe : BaseBook { public static readonly BookContent Content = new( @@ -647,7 +649,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TaleOfThreeTribes : BaseBook { public static readonly BookContent Content = new( @@ -759,7 +761,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class GuideToGuilds : BaseBook { public static readonly BookContent Content = new( @@ -947,7 +949,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class BirdsOfBritannia : BaseBook { public static readonly BookContent Content = new( @@ -1237,7 +1239,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class BritannianFlora : BaseBook { public static readonly BookContent Content = new( @@ -1432,7 +1434,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ChildrenTalesVol2 : BaseBook { public static readonly BookContent Content = new( @@ -1539,7 +1541,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TalesOfVesperVol1 : BaseBook { public static readonly BookContent Content = new( @@ -1760,7 +1762,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DeceitDungeonOfHorror : BaseBook { public static readonly BookContent Content = new( @@ -1892,7 +1894,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DimensionalTravel : BaseBook { public static readonly BookContent Content = new( @@ -2088,7 +2090,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class EthicalHedonism : BaseBook { public static readonly BookContent Content = new( @@ -2349,7 +2351,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class MyStory : BaseBook { public static readonly BookContent Content = new( @@ -2851,7 +2853,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DiversityOfOurLand : BaseBook { public static readonly BookContent Content = new( @@ -3014,7 +3016,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class QuestOfVirtues : BaseBook { public static readonly BookContent Content = new( @@ -3407,7 +3409,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class RegardingLlamas : BaseBook { public static readonly BookContent Content = new( @@ -3461,7 +3463,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TalkingToWisps : BaseBook { public static readonly BookContent Content = new( @@ -3561,7 +3563,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TamingDragons : BaseBook { public static readonly BookContent Content = new( @@ -3651,7 +3653,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class BoldStranger : BaseBook { public static readonly BookContent Content = new( @@ -3804,7 +3806,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class BurningOfTrinsic : BaseBook { public static readonly BookContent Content = new( @@ -4048,7 +4050,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TheFight : BaseBook { public static readonly BookContent Content = new( @@ -4190,7 +4192,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class LifeOfATravellingMinstrel : BaseBook { public static readonly BookContent Content = new( @@ -4379,7 +4381,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class MajorTradeAssociation : BaseBook { public static readonly BookContent Content = new( @@ -4569,7 +4571,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class RankingsOfTrades : BaseBook { public static readonly BookContent Content = new( @@ -4670,7 +4672,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class WildGirlOfTheForest : BaseBook { public static readonly BookContent Content = new( @@ -4844,7 +4846,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class TreatiseOnAlchemy : BaseBook { public static readonly BookContent Content = new( @@ -4973,7 +4975,7 @@ namespace Server.Items public override BookContent DefaultContent => Content; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class VirtueBook : BaseBook { public static readonly BookContent Content = new( diff --git a/Projects/UOContent/Items/Books/Defined/NewAquariumBook.cs b/Projects/UOContent/Items/Books/Defined/NewAquariumBook.cs index 5604809c5..da04506f7 100644 --- a/Projects/UOContent/Items/Books/Defined/NewAquariumBook.cs +++ b/Projects/UOContent/Items/Books/Defined/NewAquariumBook.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class NewAquariumBook : BlueBook { public static readonly BookContent Content = new( diff --git a/Projects/UOContent/Items/Books/Defined/TranslatedGargoyleJournal.cs b/Projects/UOContent/Items/Books/Defined/TranslatedGargoyleJournal.cs index dd676212d..735ecc9e0 100644 --- a/Projects/UOContent/Items/Books/Defined/TranslatedGargoyleJournal.cs +++ b/Projects/UOContent/Items/Books/Defined/TranslatedGargoyleJournal.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TranslatedGargoyleJournal : BlueBook { public static readonly BookContent Content = new( diff --git a/Projects/UOContent/Items/Books/RedBook.cs b/Projects/UOContent/Items/Books/RedBook.cs index 2ea2a86c5..4832ca690 100644 --- a/Projects/UOContent/Items/Books/RedBook.cs +++ b/Projects/UOContent/Items/Books/RedBook.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RedBook : BaseBook { [Constructible] diff --git a/Projects/UOContent/Items/Books/TanBook.cs b/Projects/UOContent/Items/Books/TanBook.cs index 0bb86277f..07fdd67cd 100644 --- a/Projects/UOContent/Items/Books/TanBook.cs +++ b/Projects/UOContent/Items/Books/TanBook.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TanBook : BaseBook { [Constructible] diff --git a/Projects/UOContent/Items/Bulletin Boards/BulletinBoard.cs b/Projects/UOContent/Items/Bulletin Boards/BulletinBoard.cs index 21c57f33e..17d3670af 100644 --- a/Projects/UOContent/Items/Bulletin Boards/BulletinBoard.cs +++ b/Projects/UOContent/Items/Bulletin Boards/BulletinBoard.cs @@ -1,5 +1,6 @@ using System; using System.Runtime.CompilerServices; +using ModernUO.Serialization; using Server.Collections; using Server.Network; @@ -33,7 +34,7 @@ namespace Server.Items public static bool CheckReplyTime(DateTime time) => time + ThreadReplyTime < Core.Now; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1E5E, 0x1E5F)] public partial class BulletinBoard : BaseBulletinBoard { @@ -43,7 +44,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseBulletinBoard : Item { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Bulletin Boards/BulletinMessage.cs b/Projects/UOContent/Items/Bulletin Boards/BulletinMessage.cs index 3a2ff59f7..cfc3b2024 100644 --- a/Projects/UOContent/Items/Bulletin Boards/BulletinMessage.cs +++ b/Projects/UOContent/Items/Bulletin Boards/BulletinMessage.cs @@ -1,10 +1,11 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { - [Serializable(2, false)] + [SerializationGenerator(2, false)] public partial class BulletinMessage : Item { public BulletinMessage(Mobile poster, BulletinMessage thread, string subject, string[] lines) : base(0xEB0) diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactLargeVase.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactLargeVase.cs index 8c54e75c3..b71bd9f6b 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactLargeVase.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactLargeVase.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ArtifactLargeVase : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactVase.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactVase.cs index 183fb8dd8..a78cc2208 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactVase.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/ArtifactVase.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ArtifactVase : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/DemonSkull.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/DemonSkull.cs index 2b80cff4a..177553ed7 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/DemonSkull.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/DemonSkull.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DemonSkull : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/DirtPatch.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/DirtPatch.cs index 20ba1d3d0..0940a950d 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/DirtPatch.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/DirtPatch.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DirtPatch : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/EvilIdolSkull.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/EvilIdolSkull.cs index 1f04c447a..fa9310a36 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/EvilIdolSkull.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/EvilIdolSkull.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class EvilIdolSkull : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/Futon.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/Futon.cs index 6b60903b0..78e53af72 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/Futon.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/Futon.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Futon : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/LavaTile.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/LavaTile.cs index 1c5fa4861..b74a353d5 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/LavaTile.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/LavaTile.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LavaTile : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/Pier.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/Pier.cs index ab0fc2255..45f842475 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/Pier.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/Pier.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Pier : Item { /* diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/SkullPole.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/SkullPole.cs index 4263727e9..5834239ec 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/SkullPole.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/SkullPole.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SkullPole : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/SwampTile.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/SwampTile.cs index 40121b44b..6982e4887 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/SwampTile.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/SwampTile.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SwampTile : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/TatteredAncientMummyWrapping.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/TatteredAncientMummyWrapping.cs index fbb942680..2c06008e6 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/TatteredAncientMummyWrapping.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/TatteredAncientMummyWrapping.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TatteredAncientMummyWrapping : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/WallBlood.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/WallBlood.cs index 8c0aecbc0..cc4e20d33 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/WallBlood.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/WallBlood.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WallBlood : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/WaterTile.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/WaterTile.cs index 313491582..172e427a4 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/WaterTile.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/WaterTile.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WaterTile : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/Web.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/Web.cs index 75758ccfd..b93c086f3 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/Web.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/Web.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Web : Item { private static readonly int[] ItemIds = { 0x10d7, 0x10d8, 0x10dd }; diff --git a/Projects/UOContent/Items/Champion Artifacts/Decorative/WindSpirit.cs b/Projects/UOContent/Items/Champion Artifacts/Decorative/WindSpirit.cs index 4fd415434..7e1d98e34 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Decorative/WindSpirit.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Decorative/WindSpirit.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WindSpirit : Item { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/ANecromancerShroud.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/ANecromancerShroud.cs index d668d63df..7c9cade7d 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/ANecromancerShroud.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/ANecromancerShroud.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ANecromancerShroud : Robe { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/BraveKnightOfTheBritannia.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/BraveKnightOfTheBritannia.cs index bbcf01a26..f85db031c 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/BraveKnightOfTheBritannia.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/BraveKnightOfTheBritannia.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BraveKnightOfTheBritannia : Katana { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/CaptainJohnsHat.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/CaptainJohnsHat.cs index 08b0a775d..23451b324 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/CaptainJohnsHat.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/CaptainJohnsHat.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CaptainJohnsHat : TricorneHat { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/DetectiveBoots.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/DetectiveBoots.cs index 5654d2f2d..ad10d215a 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/DetectiveBoots.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/DetectiveBoots.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DetectiveBoots : Boots { private int m_Level; diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/DjinnisRing.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/DjinnisRing.cs index b43cf24eb..a14acdba1 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/DjinnisRing.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/DjinnisRing.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DjinnisRing : SilverRing { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/EmbroideredOakLeafCloak.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/EmbroideredOakLeafCloak.cs index 0b7e24153..3ae676a8a 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/EmbroideredOakLeafCloak.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/EmbroideredOakLeafCloak.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class EmbroideredOakLeafCloak : BaseOuterTorso { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/GauntletsOfAnger.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/GauntletsOfAnger.cs index 2c5bc40ec..8369e6d08 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/GauntletsOfAnger.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/GauntletsOfAnger.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GuantletsOfAnger : PlateGloves { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/LieutenantOfTheBritannianRoyalGuard.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/LieutenantOfTheBritannianRoyalGuard.cs index 5dad1988a..f0d5f9446 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/LieutenantOfTheBritannianRoyalGuard.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/LieutenantOfTheBritannianRoyalGuard.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LieutenantOfTheBritannianRoyalGuard : BodySash { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/OblivionsNeedle.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/OblivionsNeedle.cs index 38413d3a5..628aaedbd 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/OblivionsNeedle.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/OblivionsNeedle.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class OblivionsNeedle : Dagger { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/RoyalGuardSurvivalKnife.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/RoyalGuardSurvivalKnife.cs index 386d03981..63418410d 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/RoyalGuardSurvivalKnife.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/RoyalGuardSurvivalKnife.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RoyalGuardSurvivalKnife : SkinningKnife { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/SamaritanRobe.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/SamaritanRobe.cs index 05d33aff1..bb06bd893 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/SamaritanRobe.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/SamaritanRobe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SamaritanRobe : Robe { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/TheMostKnowledgePerson.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/TheMostKnowledgePerson.cs index 26e825c14..604f860f0 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/TheMostKnowledgePerson.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/TheMostKnowledgePerson.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TheMostKnowledgePerson : BaseOuterTorso { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Shared/TheRobeOfBritanniaAri.cs b/Projects/UOContent/Items/Champion Artifacts/Shared/TheRobeOfBritanniaAri.cs index c9ebf2fa5..77d947fc8 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Shared/TheRobeOfBritanniaAri.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Shared/TheRobeOfBritanniaAri.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TheRobeOfBritanniaAri : BaseOuterTorso { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/AcidProofRobe.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/AcidProofRobe.cs index 5da7d1c85..7f81126d5 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/AcidProofRobe.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/AcidProofRobe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AcidProofRobe : Robe { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/Calm.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/Calm.cs index 7c22325c7..8aca9981e 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/Calm.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/Calm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Calm : Halberd { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/CrownOfTalKeesh.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/CrownOfTalKeesh.cs index 483529384..58eefd2db 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/CrownOfTalKeesh.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/CrownOfTalKeesh.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CrownOfTalKeesh : Bandana { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/FangOfRactus.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/FangOfRactus.cs index 6586b7216..91c023041 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/FangOfRactus.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/FangOfRactus.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FangOfRactus : Kryss { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/GladiatorsCollar.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/GladiatorsCollar.cs index 197b7f9af..efe64c461 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/GladiatorsCollar.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/GladiatorsCollar.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GladiatorsCollar : PlateGorget { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/OrcChieftainHelm.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/OrcChieftainHelm.cs index ebd3a5c79..ce30b89af 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/OrcChieftainHelm.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/OrcChieftainHelm.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class OrcChieftainHelm : OrcHelm { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/Pacify.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/Pacify.cs index c78ac17f7..996fcf0cc 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/Pacify.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/Pacify.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Pacify : Pike { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/Quell.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/Quell.cs index 821c2b5f6..56cd24045 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/Quell.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/Quell.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Quell : Bardiche { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/ShroudOfDeceit.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/ShroudOfDeceit.cs index 83c94194c..77a304f35 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/ShroudOfDeceit.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/ShroudOfDeceit.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShroudOfDeciet : BoneChest { [Constructible] diff --git a/Projects/UOContent/Items/Champion Artifacts/Unique/Subdue.cs b/Projects/UOContent/Items/Champion Artifacts/Unique/Subdue.cs index 61b3efc9e..2fcc7e9ee 100644 --- a/Projects/UOContent/Items/Champion Artifacts/Unique/Subdue.cs +++ b/Projects/UOContent/Items/Champion Artifacts/Unique/Subdue.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Subdue : Scythe { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Artifacts/CrimsonCincture.cs b/Projects/UOContent/Items/Clothing/Artifacts/CrimsonCincture.cs index ea81189ec..9088a8a64 100644 --- a/Projects/UOContent/Items/Clothing/Artifacts/CrimsonCincture.cs +++ b/Projects/UOContent/Items/Clothing/Artifacts/CrimsonCincture.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CrimsonCincture : HalfApron { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Artifacts/DivineCountenance.cs b/Projects/UOContent/Items/Clothing/Artifacts/DivineCountenance.cs index 302c2acec..b67adf5b2 100644 --- a/Projects/UOContent/Items/Clothing/Artifacts/DivineCountenance.cs +++ b/Projects/UOContent/Items/Clothing/Artifacts/DivineCountenance.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DivineCountenance : HornedTribalMask { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Artifacts/HatOfTheMagi.cs b/Projects/UOContent/Items/Clothing/Artifacts/HatOfTheMagi.cs index 717d14ac1..a4ca80c28 100644 --- a/Projects/UOContent/Items/Clothing/Artifacts/HatOfTheMagi.cs +++ b/Projects/UOContent/Items/Clothing/Artifacts/HatOfTheMagi.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HatOfTheMagi : WizardsHat { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Artifacts/HuntersHeaddress.cs b/Projects/UOContent/Items/Clothing/Artifacts/HuntersHeaddress.cs index eef2c19e4..eac1867bd 100644 --- a/Projects/UOContent/Items/Clothing/Artifacts/HuntersHeaddress.cs +++ b/Projects/UOContent/Items/Clothing/Artifacts/HuntersHeaddress.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HuntersHeaddress : DeerMask { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Artifacts/SpiritOfTheTotem.cs b/Projects/UOContent/Items/Clothing/Artifacts/SpiritOfTheTotem.cs index ff90f494f..bb995fa71 100644 --- a/Projects/UOContent/Items/Clothing/Artifacts/SpiritOfTheTotem.cs +++ b/Projects/UOContent/Items/Clothing/Artifacts/SpiritOfTheTotem.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SpiritOfTheTotem : BearMask { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/BaseClothing.cs b/Projects/UOContent/Items/Clothing/BaseClothing.cs index 90070675e..02af85c53 100644 --- a/Projects/UOContent/Items/Clothing/BaseClothing.cs +++ b/Projects/UOContent/Items/Clothing/BaseClothing.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Engines.Craft; using Server.Ethics; using Server.Factions; @@ -22,7 +23,7 @@ namespace Server.Items int MaxArcaneCharges { get; set; } } - [Serializable(7, false)] + [SerializationGenerator(7, false)] public abstract partial class BaseClothing : Item, IDyable, IScissorable, IFactionItem, ICraftable, IWearableDurability { [SerializableField(0, "private", "private")] diff --git a/Projects/UOContent/Items/Clothing/Cloaks.cs b/Projects/UOContent/Items/Clothing/Cloaks.cs index f5b3a0a5f..8b6ff62e5 100644 --- a/Projects/UOContent/Items/Clothing/Cloaks.cs +++ b/Projects/UOContent/Items/Clothing/Cloaks.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseCloak : BaseClothing { public BaseCloak(int itemID, int hue = 0) : base(itemID, Layer.Cloak, hue) @@ -11,7 +12,7 @@ namespace Server.Items } [Flippable] - [Serializable(2, false)] + [SerializationGenerator(2, false)] public partial class Cloak : BaseCloak, IArcaneEquip { private int _maxArcaneCharges; @@ -111,7 +112,7 @@ namespace Server.Items } [Flippable] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RewardCloak : BaseCloak, IRewardItem { [InvalidateProperties] @@ -188,7 +189,7 @@ namespace Server.Items } [Flippable(0x230A, 0x2309)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FurCape : BaseCloak { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Hats.cs b/Projects/UOContent/Items/Clothing/Hats.cs index 98c31d746..80b4d7580 100644 --- a/Projects/UOContent/Items/Clothing/Hats.cs +++ b/Projects/UOContent/Items/Clothing/Hats.cs @@ -1,12 +1,13 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Engines.Craft; using Server.Misc; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseHat : BaseClothing, IShipwreckedItem { [SerializableField(0)] @@ -57,7 +58,7 @@ namespace Server.Items } [Flippable(0x2798, 0x27E3)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Kasa : BaseHat { [Constructible] @@ -74,7 +75,7 @@ namespace Server.Items } [Flippable(0x278F, 0x27DA)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ClothNinjaHood : BaseHat { [Constructible] @@ -91,7 +92,7 @@ namespace Server.Items } [Flippable(0x2306, 0x2305)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FlowerGarland : BaseHat { [Constructible] @@ -107,7 +108,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FloppyHat : BaseHat { [Constructible] @@ -123,7 +124,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WideBrimHat : BaseHat { [Constructible] @@ -139,7 +140,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Cap : BaseHat { [Constructible] @@ -155,7 +156,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SkullCap : BaseHat { [Constructible] @@ -171,7 +172,7 @@ namespace Server.Items public override int InitMaxHits => Core.ML ? 28 : 12; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bandana : BaseHat { [Constructible] @@ -187,7 +188,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BearMask : BaseHat { [Constructible] @@ -209,7 +210,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DeerMask : BaseHat { [Constructible] @@ -231,7 +232,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HornedTribalMask : BaseHat { [Constructible] @@ -253,7 +254,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TribalMask : BaseHat { [Constructible] @@ -275,7 +276,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TallStrawHat : BaseHat { [Constructible] @@ -291,7 +292,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StrawHat : BaseHat { [Constructible] @@ -307,7 +308,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class OrcishKinMask : BaseHat { [Constructible] @@ -357,7 +358,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SavageMask : BaseHat { [Constructible] @@ -396,7 +397,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WizardsHat : BaseHat { [Constructible] @@ -412,7 +413,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MagicWizardsHat : BaseHat { [Constructible] @@ -434,7 +435,7 @@ namespace Server.Items public override int BaseIntBonus => +5; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bonnet : BaseHat { [Constructible] @@ -450,7 +451,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FeatheredHat : BaseHat { [Constructible] @@ -466,7 +467,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TricorneHat : BaseHat { [Constructible] @@ -482,7 +483,7 @@ namespace Server.Items public override int InitMaxHits => 30; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class JesterHat : BaseHat { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/MiddleTorso.cs b/Projects/UOContent/Items/Clothing/MiddleTorso.cs index ae7957bcd..27e3bc4b6 100644 --- a/Projects/UOContent/Items/Clothing/MiddleTorso.cs +++ b/Projects/UOContent/Items/Clothing/MiddleTorso.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseMiddleTorso : BaseClothing { public BaseMiddleTorso(int itemID, int hue = 0) : base(itemID, Layer.MiddleTorso, hue) @@ -8,7 +10,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1541, 0x1542)] public partial class BodySash : BaseMiddleTorso { @@ -16,7 +18,7 @@ namespace Server.Items public BodySash(int hue = 0) : base(0x1541, hue) => Weight = 1.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x153d, 0x153e)] public partial class FullApron : BaseMiddleTorso { @@ -24,7 +26,7 @@ namespace Server.Items public FullApron(int hue = 0) : base(0x153d, hue) => Weight = 4.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1f7b, 0x1f7c)] public partial class Doublet : BaseMiddleTorso { @@ -32,7 +34,7 @@ namespace Server.Items public Doublet(int hue = 0) : base(0x1F7B, hue) => Weight = 2.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1ffd, 0x1ffe)] public partial class Surcoat : BaseMiddleTorso { @@ -40,7 +42,7 @@ namespace Server.Items public Surcoat(int hue = 0) : base(0x1FFD, hue) => Weight = 6.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1fa1, 0x1fa2)] public partial class Tunic : BaseMiddleTorso { @@ -48,7 +50,7 @@ namespace Server.Items public Tunic(int hue = 0) : base(0x1FA1, hue) => Weight = 5.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x2310, 0x230F)] public partial class FormalShirt : BaseMiddleTorso { @@ -56,7 +58,7 @@ namespace Server.Items public FormalShirt(int hue = 0) : base(0x2310, hue) => Weight = 1.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1f9f, 0x1fa0)] public partial class JesterSuit : BaseMiddleTorso { @@ -64,7 +66,7 @@ namespace Server.Items public JesterSuit(int hue = 0) : base(0x1F9F, hue) => Weight = 4.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x27A1, 0x27EC)] public partial class JinBaori : BaseMiddleTorso { diff --git a/Projects/UOContent/Items/Clothing/OuterLegs.cs b/Projects/UOContent/Items/Clothing/OuterLegs.cs index d5bef9eea..d060c306f 100644 --- a/Projects/UOContent/Items/Clothing/OuterLegs.cs +++ b/Projects/UOContent/Items/Clothing/OuterLegs.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseOuterLegs : BaseClothing { public BaseOuterLegs(int itemID, int hue = 0) : base(itemID, Layer.OuterLegs, hue) @@ -8,7 +10,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x230C, 0x230B)] public partial class FurSarong : BaseOuterLegs { @@ -16,7 +18,7 @@ namespace Server.Items public FurSarong(int hue = 0) : base(0x230C, hue) => Weight = 3.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1516, 0x1531)] public partial class Skirt : BaseOuterLegs { @@ -24,7 +26,7 @@ namespace Server.Items public Skirt(int hue = 0) : base(0x1516, hue) => Weight = 4.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1537, 0x1538)] public partial class Kilt : BaseOuterLegs { @@ -32,7 +34,7 @@ namespace Server.Items public Kilt(int hue = 0) : base(0x1537, hue) => Weight = 2.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x279A, 0x27E5)] public partial class Hakama : BaseOuterLegs { diff --git a/Projects/UOContent/Items/Clothing/OuterTorso.cs b/Projects/UOContent/Items/Clothing/OuterTorso.cs index 07cdf59ab..e05a7ff43 100644 --- a/Projects/UOContent/Items/Clothing/OuterTorso.cs +++ b/Projects/UOContent/Items/Clothing/OuterTorso.cs @@ -1,10 +1,11 @@ using System; using System.Runtime.CompilerServices; +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseOuterTorso : BaseClothing { public BaseOuterTorso(int itemID, int hue = 0) : base(itemID, Layer.OuterTorso, hue) @@ -12,7 +13,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x230E, 0x230D)] public partial class GildedDress : BaseOuterTorso { @@ -20,7 +21,7 @@ namespace Server.Items public GildedDress(int hue = 0) : base(0x230E, hue) => Weight = 3.0; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1F00, 0x1EFF)] public partial class FancyDress : BaseOuterTorso { @@ -28,7 +29,7 @@ namespace Server.Items public FancyDress(int hue = 0) : base(0x1F00, hue) => Weight = 3.0; } - [Serializable(3, false)] + [SerializationGenerator(3, false)] public partial class DeathRobe : Robe { private static readonly TimeSpan m_DefaultDecayTime = TimeSpan.FromMinutes(1.0); @@ -141,7 +142,7 @@ namespace Server.Items } [Flippable] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RewardRobe : BaseOuterTorso, IRewardItem { [InvalidateProperties] @@ -223,7 +224,7 @@ namespace Server.Items } [Flippable] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RewardDress : BaseOuterTorso, IRewardItem { [InvalidateProperties] @@ -305,7 +306,7 @@ namespace Server.Items } [Flippable] - [Serializable(2, false)] + [SerializationGenerator(2, false)] public partial class Robe : BaseOuterTorso, IArcaneEquip { private int _curArcaneCharges; @@ -404,7 +405,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MonkRobe : BaseOuterTorso { [Constructible] @@ -425,7 +426,7 @@ namespace Server.Items } [Flippable(0x1f01, 0x1f02)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlainDress : BaseOuterTorso { [Constructible] @@ -433,7 +434,7 @@ namespace Server.Items } [Flippable(0x2799, 0x27E4)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Kamishimo : BaseOuterTorso { [Constructible] @@ -441,7 +442,7 @@ namespace Server.Items } [Flippable(0x279C, 0x27E7)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HakamaShita : BaseOuterTorso { [Constructible] @@ -449,7 +450,7 @@ namespace Server.Items } [Flippable(0x2782, 0x27CD)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MaleKimono : BaseOuterTorso { [Constructible] @@ -457,7 +458,7 @@ namespace Server.Items } [Flippable(0x2783, 0x27CE)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FemaleKimono : BaseOuterTorso { [Constructible] @@ -465,7 +466,7 @@ namespace Server.Items } [Flippable(0x2FB9, 0x3173)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class MaleElvenRobe : BaseOuterTorso { [Constructible] @@ -473,7 +474,7 @@ namespace Server.Items } [Flippable(0x2FBA, 0x3174)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class FemaleElvenRobe : BaseOuterTorso { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Pants.cs b/Projects/UOContent/Items/Clothing/Pants.cs index 00fc3df06..efee4e379 100644 --- a/Projects/UOContent/Items/Clothing/Pants.cs +++ b/Projects/UOContent/Items/Clothing/Pants.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BasePants : BaseClothing { public BasePants(int itemID, int hue = 0) : base(itemID, Layer.Pants, hue) @@ -9,7 +11,7 @@ namespace Server.Items } [Flippable(0x152e, 0x152f)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShortPants : BasePants { [Constructible] @@ -17,7 +19,7 @@ namespace Server.Items } [Flippable(0x1539, 0x153a)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LongPants : BasePants { [Constructible] @@ -25,7 +27,7 @@ namespace Server.Items } [Flippable(0x279B, 0x27E6)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TattsukeHakama : BasePants { [Constructible] @@ -33,7 +35,7 @@ namespace Server.Items } [Flippable(0x2FC3, 0x3179)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenPants : BasePants { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Shirts.cs b/Projects/UOContent/Items/Clothing/Shirts.cs index cf8f8b316..6ba43a870 100644 --- a/Projects/UOContent/Items/Clothing/Shirts.cs +++ b/Projects/UOContent/Items/Clothing/Shirts.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseShirt : BaseClothing { public BaseShirt(int itemID, int hue = 0) : base(itemID, Layer.Shirt, hue) @@ -9,7 +11,7 @@ namespace Server.Items } [Flippable(0x1efd, 0x1efe)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FancyShirt : BaseShirt { [Constructible] @@ -17,7 +19,7 @@ namespace Server.Items } [Flippable(0x1517, 0x1518)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Shirt : BaseShirt { [Constructible] @@ -25,7 +27,7 @@ namespace Server.Items } [Flippable(0x2794, 0x27DF)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ClothNinjaJacket : BaseShirt { [Constructible] @@ -36,7 +38,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenShirt : BaseShirt { [Constructible] @@ -45,7 +47,7 @@ namespace Server.Items public override int RequiredRaces => Race.AllowElvesOnly; } - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenDarkShirt : BaseShirt { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Shoes.cs b/Projects/UOContent/Items/Clothing/Shoes.cs index 0887acd81..03fcd4436 100644 --- a/Projects/UOContent/Items/Clothing/Shoes.cs +++ b/Projects/UOContent/Items/Clothing/Shoes.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseShoes : BaseClothing { public BaseShoes(int itemID, int hue = 0) : base(itemID, Layer.Shoes, hue) @@ -20,7 +22,7 @@ namespace Server.Items } [Flippable(0x2307, 0x2308)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FurBoots : BaseShoes { [Constructible] @@ -28,7 +30,7 @@ namespace Server.Items } [Flippable(0x170b, 0x170c)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Boots : BaseShoes { [Constructible] @@ -38,7 +40,7 @@ namespace Server.Items } [Flippable] - [Serializable(2, false)] + [SerializationGenerator(2, false)] public partial class ThighBoots : BaseShoes, IArcaneEquip { private int _maxArcaneCharges; @@ -140,7 +142,7 @@ namespace Server.Items } [Flippable(0x170f, 0x1710)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Shoes : BaseShoes { [Constructible] @@ -150,7 +152,7 @@ namespace Server.Items } [Flippable(0x170d, 0x170e)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Sandals : BaseShoes { [Constructible] @@ -162,7 +164,7 @@ namespace Server.Items } [Flippable(0x2797, 0x27E2)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NinjaTabi : BaseShoes { [Constructible] @@ -170,7 +172,7 @@ namespace Server.Items } [Flippable(0x2796, 0x27E1)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SamuraiTabi : BaseShoes { [Constructible] @@ -178,7 +180,7 @@ namespace Server.Items } [Flippable(0x2796, 0x27E1)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Waraji : BaseShoes { [Constructible] @@ -186,7 +188,7 @@ namespace Server.Items } [Flippable(0x2FC4, 0x317A)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenBoots : BaseShoes { [Constructible] diff --git a/Projects/UOContent/Items/Clothing/Waist.cs b/Projects/UOContent/Items/Clothing/Waist.cs index eaccfd32b..45f34d768 100644 --- a/Projects/UOContent/Items/Clothing/Waist.cs +++ b/Projects/UOContent/Items/Clothing/Waist.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseWaist : BaseClothing { public BaseWaist(int itemID, int hue = 0) : base(itemID, Layer.Waist, hue) @@ -9,7 +11,7 @@ namespace Server.Items } [Flippable(0x153b, 0x153c)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HalfApron : BaseWaist { [Constructible] @@ -17,7 +19,7 @@ namespace Server.Items } [Flippable(0x27A0, 0x27EB)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Obi : BaseWaist { [Constructible] @@ -25,7 +27,7 @@ namespace Server.Items } [Flippable(0x2B68, 0x315F)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class WoodlandBelt : BaseWaist { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Ankhs.cs b/Projects/UOContent/Items/Construction/Ankhs.cs index d75e968f5..41e69dec3 100644 --- a/Projects/UOContent/Items/Construction/Ankhs.cs +++ b/Projects/UOContent/Items/Construction/Ankhs.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Gumps; using Server.Mobiles; @@ -111,7 +112,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnkhWest : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -183,7 +184,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0)] @@ -257,7 +258,7 @@ namespace Server.Items } [TypeAlias("Server.Items.AnkhEast")] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AnkhNorth : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -331,7 +332,7 @@ namespace Server.Items } [TypeAlias("Server.Items.AnkhEast+InternalItem")] - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Construction/Chairs/Benchs.cs b/Projects/UOContent/Items/Construction/Chairs/Benchs.cs index a29606366..f37deba0b 100644 --- a/Projects/UOContent/Items/Construction/Chairs/Benchs.cs +++ b/Projects/UOContent/Items/Construction/Chairs/Benchs.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0xB2D, 0xB2C)] public partial class WoodenBench : Item { diff --git a/Projects/UOContent/Items/Construction/Chairs/Chairs.cs b/Projects/UOContent/Items/Construction/Chairs/Chairs.cs index 67dfd1878..12b2b9ad8 100644 --- a/Projects/UOContent/Items/Construction/Chairs/Chairs.cs +++ b/Projects/UOContent/Items/Construction/Chairs/Chairs.cs @@ -1,8 +1,10 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] [Flippable(0xB4F, 0xB4E, 0xB50, 0xB51)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FancyWoodenChairCushion : Item { [Constructible] @@ -11,7 +13,7 @@ namespace Server.Items [Furniture] [Flippable(0xB53, 0xB52, 0xB54, 0xB55)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WoodenChairCushion : Item { [Constructible] @@ -20,7 +22,7 @@ namespace Server.Items [Furniture] [Flippable(0xB57, 0xB56, 0xB59, 0xB58)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WoodenChair : Item { [Constructible] @@ -29,7 +31,7 @@ namespace Server.Items [Furniture] [Flippable(0xB5B, 0xB5A, 0xB5C, 0xB5D)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BambooChair : Item { [Constructible] @@ -38,7 +40,7 @@ namespace Server.Items [DynamicFlipping] [Flippable(0x1218, 0x1219, 0x121A, 0x121B)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StoneChair : Item { [Constructible] @@ -47,7 +49,7 @@ namespace Server.Items [DynamicFlipping] [Flippable(0x2DE3, 0x2DE4, 0x2DE5, 0x2DE6)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateElvenChair : Item { [Constructible] @@ -56,7 +58,7 @@ namespace Server.Items [DynamicFlipping] [Flippable(0x2DEB, 0x2DEC, 0x2DED, 0x2DEE)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class BigElvenChair : Item { [Constructible] @@ -67,7 +69,7 @@ namespace Server.Items [DynamicFlipping] [Flippable(0x2DF5, 0x2DF6)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenReadingChair : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Chairs/Stools.cs b/Projects/UOContent/Items/Construction/Chairs/Stools.cs index a9e76afc6..837b36972 100644 --- a/Projects/UOContent/Items/Construction/Chairs/Stools.cs +++ b/Projects/UOContent/Items/Construction/Chairs/Stools.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Stool : Item { [Constructible] @@ -9,7 +11,7 @@ namespace Server.Items } [Furniture] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FootStool : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Chairs/Thrones.cs b/Projects/UOContent/Items/Construction/Chairs/Thrones.cs index 2478489ab..de189504f 100644 --- a/Projects/UOContent/Items/Construction/Chairs/Thrones.cs +++ b/Projects/UOContent/Items/Construction/Chairs/Thrones.cs @@ -1,8 +1,10 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] [Flippable(0xB32, 0xB33)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Throne : Item { [Constructible] @@ -11,7 +13,7 @@ namespace Server.Items [Furniture] [Flippable(0xB2E, 0xB2F, 0xB31, 0xB30)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WoodenThrone : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Decorative/DecorativeShield.cs b/Projects/UOContent/Items/Construction/Decorative/DecorativeShield.cs index 286bd0a98..157f240c3 100644 --- a/Projects/UOContent/Items/Construction/Decorative/DecorativeShield.cs +++ b/Projects/UOContent/Items/Construction/Decorative/DecorativeShield.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x156C, 0x156D)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield1 : Item { [Constructible] @@ -9,7 +11,7 @@ namespace Server.Items } [Flippable(0x156E, 0x156F)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield2 : Item { [Constructible] @@ -17,7 +19,7 @@ namespace Server.Items } [Flippable(0x1570, 0x1571)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield3 : Item { [Constructible] @@ -25,7 +27,7 @@ namespace Server.Items } [Flippable(0x1572, 0x1573)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield4 : Item { [Constructible] @@ -33,7 +35,7 @@ namespace Server.Items } [Flippable(0x1574, 0x1575)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield5 : Item { [Constructible] @@ -41,7 +43,7 @@ namespace Server.Items } [Flippable(0x1576, 0x1577)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield6 : Item { [Constructible] @@ -49,7 +51,7 @@ namespace Server.Items } [Flippable(0x1578, 0x1579)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield7 : Item { [Constructible] @@ -57,7 +59,7 @@ namespace Server.Items } [Flippable(0x157A, 0x157B)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield8 : Item { [Constructible] @@ -65,7 +67,7 @@ namespace Server.Items } [Flippable(0x157C, 0x157D)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield9 : Item { [Constructible] @@ -73,7 +75,7 @@ namespace Server.Items } [Flippable(0x157E, 0x157F)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield10 : Item { [Constructible] @@ -81,7 +83,7 @@ namespace Server.Items } [Flippable(0x1580, 0x1581)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShield11 : Item { [Constructible] @@ -89,7 +91,7 @@ namespace Server.Items } [Flippable(0x1582, 0x1583, 0x1634, 0x1635)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShieldSword1North : Item { [Constructible] @@ -97,7 +99,7 @@ namespace Server.Items } [Flippable(0x1634, 0x1635, 0x1582, 0x1583)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShieldSword1West : Item { [Constructible] @@ -105,7 +107,7 @@ namespace Server.Items } [Flippable(0x1584, 0x1585, 0x1636, 0x1637)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShieldSword2North : Item { [Constructible] @@ -113,7 +115,7 @@ namespace Server.Items } [Flippable(0x1636, 0x1637, 0x1584, 0x1585)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeShieldSword2West : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Decorative/DecorativeWeapon.cs b/Projects/UOContent/Items/Construction/Decorative/DecorativeWeapon.cs index 4b3d9f087..72157087f 100644 --- a/Projects/UOContent/Items/Construction/Decorative/DecorativeWeapon.cs +++ b/Projects/UOContent/Items/Construction/Decorative/DecorativeWeapon.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x155E, 0x155F, 0x155C, 0x155D)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeBowWest : Item { [Constructible] @@ -9,7 +11,7 @@ namespace Server.Items } [Flippable(0x155C, 0x155D, 0x155E, 0x155F)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeBowNorth : Item { [Constructible] @@ -17,7 +19,7 @@ namespace Server.Items } [Flippable(0x1560, 0x1561, 0x1562, 0x1563)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeAxeNorth : Item { [Constructible] @@ -25,14 +27,14 @@ namespace Server.Items } [Flippable(0x1562, 0x1563, 0x1560, 0x1561)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeAxeWest : Item { [Constructible] public DecorativeAxeWest() : base(Utility.Random(0x1562, 2)) => Movable = false; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DecorativeSwordNorth : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -68,7 +70,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -106,7 +108,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DecorativeSwordWest : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -142,7 +144,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0)] + [SerializationGenerator(0)] private partial class InternalItem : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -179,7 +181,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DecorativeDAxeNorth : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -215,7 +217,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0)] + [SerializationGenerator(0)] private partial class InternalItem : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -253,7 +255,7 @@ namespace Server.Items } } - [Serializable(0)] + [SerializationGenerator(0)] public partial class DecorativeDAxeWest : Item { [SerializableField(0, getter: "private", setter: "private")] @@ -290,7 +292,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0)] + [SerializationGenerator(0)] private partial class InternalItem : Item { [SerializableField(0, getter: "private", setter: "private")] diff --git a/Projects/UOContent/Items/Construction/Decorative/GiantReplicaAcorn.cs b/Projects/UOContent/Items/Construction/Decorative/GiantReplicaAcorn.cs index e522d12ed..d0a5c7a3e 100644 --- a/Projects/UOContent/Items/Construction/Decorative/GiantReplicaAcorn.cs +++ b/Projects/UOContent/Items/Construction/Decorative/GiantReplicaAcorn.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] - [Serializable(0)] + [SerializationGenerator(0)] public partial class GiantReplicaAcorn : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Decorative/MountedDreadHorn.cs b/Projects/UOContent/Items/Construction/Decorative/MountedDreadHorn.cs index d73518208..c3126fff4 100644 --- a/Projects/UOContent/Items/Construction/Decorative/MountedDreadHorn.cs +++ b/Projects/UOContent/Items/Construction/Decorative/MountedDreadHorn.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x3158, 0x3159)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class MountedDreadHorn : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Decorative/PaintingPortraits.cs b/Projects/UOContent/Items/Construction/Decorative/PaintingPortraits.cs index 6695b94f5..9ba0d9b4f 100644 --- a/Projects/UOContent/Items/Construction/Decorative/PaintingPortraits.cs +++ b/Projects/UOContent/Items/Construction/Decorative/PaintingPortraits.cs @@ -1,13 +1,15 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargePainting : Item { [Constructible] public LargePainting() : base(0x0EA0) => Movable = false; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x0E9F, 0x0EC8)] public partial class WomanPortrait1 : Item { @@ -15,7 +17,7 @@ namespace Server.Items public WomanPortrait1() : base(0x0E9F) => Movable = false; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x0EE7, 0x0EC9)] public partial class WomanPortrait2 : Item { @@ -23,7 +25,7 @@ namespace Server.Items public WomanPortrait2() : base(0x0EE7) => Movable = false; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x0EA2, 0x0EA1)] public partial class ManPortrait1 : Item { @@ -31,7 +33,7 @@ namespace Server.Items public ManPortrait1() : base(0x0EA2) => Movable = false; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x0EA3, 0x0EA4)] public partial class ManPortrait2 : Item { @@ -39,7 +41,7 @@ namespace Server.Items public ManPortrait2() : base(0x0EA3) => Movable = false; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x0EA6, 0x0EA5)] public partial class LadyPortrait1 : Item { @@ -47,7 +49,7 @@ namespace Server.Items public LadyPortrait1() : base(0x0EA6) => Movable = false; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x0EA7, 0x0EA8)] public partial class LadyPortrait2 : Item { diff --git a/Projects/UOContent/Items/Construction/Decorative/Tapestry.cs b/Projects/UOContent/Items/Construction/Decorative/Tapestry.cs index 1a5868096..a057d93b2 100644 --- a/Projects/UOContent/Items/Construction/Decorative/Tapestry.cs +++ b/Projects/UOContent/Items/Construction/Decorative/Tapestry.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry1N : Item { [SerializableField(0, "private", "private")] @@ -35,7 +37,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0)] + [SerializationGenerator(0)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -71,7 +73,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry2N : Item { [SerializableField(0, "private", "private")] @@ -106,7 +108,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -142,7 +144,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry2W : Item { [SerializableField(0, "private", "private")] @@ -177,7 +179,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -213,7 +215,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry3N : Item { [SerializableField(0, "private", "private")] @@ -248,7 +250,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -284,7 +286,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry3W : Item { [SerializableField(0, "private", "private")] @@ -319,7 +321,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -355,7 +357,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry4N : Item { [SerializableField(0, "private", "private")] @@ -390,7 +392,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -426,7 +428,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry4W : Item { [SerializableField(0, "private", "private")] @@ -461,7 +463,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -497,7 +499,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry5N : Item { [SerializableField(0, "private", "private")] @@ -532,7 +534,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -568,7 +570,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry5W : Item { [SerializableField(0, "private", "private")] @@ -603,7 +605,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -639,7 +641,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry6N : Item { [SerializableField(0, "private", "private")] @@ -674,7 +676,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] @@ -710,7 +712,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tapestry6W : Item { [SerializableField(0, "private", "private")] @@ -745,7 +747,7 @@ namespace Server.Items _item?.Delete(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] private partial class InternalItem : Item { [SerializableField(0, "private", "private")] diff --git a/Projects/UOContent/Items/Construction/Tables/ElvenPodium.cs b/Projects/UOContent/Items/Construction/Tables/ElvenPodium.cs index df9620907..c17fbe287 100644 --- a/Projects/UOContent/Items/Construction/Tables/ElvenPodium.cs +++ b/Projects/UOContent/Items/Construction/Tables/ElvenPodium.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] - [Serializable(0)] + [SerializationGenerator(0)] [Flippable(0x2DDD, 0x2DDE)] public partial class ElvenPodium : Item { diff --git a/Projects/UOContent/Items/Construction/Tables/Tables.cs b/Projects/UOContent/Items/Construction/Tables/Tables.cs index 65f1bdbf1..b7602efaa 100644 --- a/Projects/UOContent/Items/Construction/Tables/Tables.cs +++ b/Projects/UOContent/Items/Construction/Tables/Tables.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ElegantLowTable : Item { [Constructible] @@ -9,7 +11,7 @@ namespace Server.Items } [Furniture] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PlainLowTable : Item { [Constructible] @@ -18,7 +20,7 @@ namespace Server.Items [Furniture] [Flippable(0xB90, 0xB7D)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LargeTable : Item { [Constructible] @@ -27,7 +29,7 @@ namespace Server.Items [Furniture] [Flippable(0xB35, 0xB34)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Nightstand : Item { [Constructible] @@ -36,7 +38,7 @@ namespace Server.Items [Furniture] [Flippable(0xB8F, 0xB7C)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class YewWoodTable : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Tables/WritingTable.cs b/Projects/UOContent/Items/Construction/Tables/WritingTable.cs index 35ec06c37..077978a8d 100644 --- a/Projects/UOContent/Items/Construction/Tables/WritingTable.cs +++ b/Projects/UOContent/Items/Construction/Tables/WritingTable.cs @@ -1,8 +1,10 @@ +using ModernUO.Serialization; + namespace Server.Items { [Furniture] [Flippable(0xB4A, 0xB49, 0xB4B, 0xB4C)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WritingTable : Item { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Walls/BaseWall.cs b/Projects/UOContent/Items/Construction/Walls/BaseWall.cs index 6b5914a07..7c5684fbe 100644 --- a/Projects/UOContent/Items/Construction/Walls/BaseWall.cs +++ b/Projects/UOContent/Items/Construction/Walls/BaseWall.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseWall : Item { public BaseWall(int itemID) : base(itemID) => Movable = false; diff --git a/Projects/UOContent/Items/Construction/Walls/DarkWoodWall.cs b/Projects/UOContent/Items/Construction/Walls/DarkWoodWall.cs index a1e6e4077..39036ea51 100644 --- a/Projects/UOContent/Items/Construction/Walls/DarkWoodWall.cs +++ b/Projects/UOContent/Items/Construction/Walls/DarkWoodWall.cs @@ -1,3 +1,5 @@ +using ModernUO.Serialization; + namespace Server.Items { public enum DarkWoodWallTypes @@ -24,7 +26,7 @@ namespace Server.Items EastWallVShort } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DarkWoodWall : BaseWall { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Walls/ThickGrayStoneWall.cs b/Projects/UOContent/Items/Construction/Walls/ThickGrayStoneWall.cs index 17514de42..609ce720b 100644 --- a/Projects/UOContent/Items/Construction/Walls/ThickGrayStoneWall.cs +++ b/Projects/UOContent/Items/Construction/Walls/ThickGrayStoneWall.cs @@ -6,6 +6,8 @@ * CREATED : 10-07.2002 * * **************************************/ +using ModernUO.Serialization; + namespace Server.Items { public enum ThickGrayStoneWallTypes @@ -34,7 +36,7 @@ namespace Server.Items EastWindow2 } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ThickGrayStoneWall : BaseWall { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Walls/ThinBrickWall.cs b/Projects/UOContent/Items/Construction/Walls/ThinBrickWall.cs index f69a3cda3..4616b6ad0 100644 --- a/Projects/UOContent/Items/Construction/Walls/ThinBrickWall.cs +++ b/Projects/UOContent/Items/Construction/Walls/ThinBrickWall.cs @@ -1,3 +1,5 @@ +using ModernUO.Serialization; + namespace Server.Items { public enum ThinBrickWallTypes @@ -40,7 +42,7 @@ namespace Server.Items EastWallVShort } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ThinBrickWall : BaseWall { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Walls/ThinStoneWall.cs b/Projects/UOContent/Items/Construction/Walls/ThinStoneWall.cs index 7754c7b10..0b0f14991 100644 --- a/Projects/UOContent/Items/Construction/Walls/ThinStoneWall.cs +++ b/Projects/UOContent/Items/Construction/Walls/ThinStoneWall.cs @@ -1,3 +1,5 @@ +using ModernUO.Serialization; + namespace Server.Items { public enum ThinStoneWallTypes @@ -29,7 +31,7 @@ namespace Server.Items EastWallShort2 } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ThinStoneWall : BaseWall { [Constructible] diff --git a/Projects/UOContent/Items/Construction/Walls/WhiteStoneWall.cs b/Projects/UOContent/Items/Construction/Walls/WhiteStoneWall.cs index 07a6f0d16..3679905a5 100644 --- a/Projects/UOContent/Items/Construction/Walls/WhiteStoneWall.cs +++ b/Projects/UOContent/Items/Construction/Walls/WhiteStoneWall.cs @@ -6,6 +6,8 @@ * CREATED : 10-07.2002 * * **************************************/ +using ModernUO.Serialization; + namespace Server.Items { public enum WhiteStoneWallTypes @@ -47,7 +49,7 @@ namespace Server.Items EastWallVVShort } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WhiteStoneWall : BaseWall { [Constructible] diff --git a/Projects/UOContent/Items/Containers/BaseTreasureChest.cs b/Projects/UOContent/Items/Containers/BaseTreasureChest.cs index 95be9334e..0dcbd55ec 100644 --- a/Projects/UOContent/Items/Containers/BaseTreasureChest.cs +++ b/Projects/UOContent/Items/Containers/BaseTreasureChest.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items; -[Serializable(1, false)] +[SerializationGenerator(1, false)] public partial class BaseTreasureChest : LockableContainer { public enum TreasureLevel diff --git a/Projects/UOContent/Items/Containers/Container.cs b/Projects/UOContent/Items/Containers/Container.cs index eea535f1e..c634237fc 100644 --- a/Projects/UOContent/Items/Containers/Container.cs +++ b/Projects/UOContent/Items/Containers/Container.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Mobiles; using Server.Multis; @@ -159,7 +160,7 @@ public abstract class BaseContainer : Container } } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class CreatureBackpack : Backpack // Used on BaseCreature { [Constructible] @@ -209,7 +210,7 @@ public partial class CreatureBackpack : Backpack // Used on BaseCreature public override bool TryDropItem(Mobile from, Item dropped, bool sendFullMessage) => false; } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class StrongBackpack : Backpack // Used on Pack animals { [Constructible] @@ -229,7 +230,7 @@ public partial class StrongBackpack : Backpack // Used on Pack animals base.CheckContentDisplay(from); } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Backpack : BaseContainer, IDyable { [Constructible] @@ -265,14 +266,14 @@ public partial class Backpack : BaseContainer, IDyable } } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Pouch : TrappableContainer { [Constructible] public Pouch() : base(0xE79) => Weight = 1.0; } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public abstract partial class BaseBagBall : BaseContainer, IDyable { public BaseBagBall(int itemID) : base(itemID) => Weight = 1.0; @@ -290,7 +291,7 @@ public abstract partial class BaseBagBall : BaseContainer, IDyable } } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class SmallBagBall : BaseBagBall { [Constructible] @@ -299,7 +300,7 @@ public partial class SmallBagBall : BaseBagBall } } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class LargeBagBall : BaseBagBall { [Constructible] @@ -308,7 +309,7 @@ public partial class LargeBagBall : BaseBagBall } } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Bag : BaseContainer, IDyable { [Constructible] @@ -327,28 +328,28 @@ public partial class Bag : BaseContainer, IDyable } } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Barrel : BaseContainer { [Constructible] public Barrel() : base(0xE77) => Weight = 25.0; } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Keg : BaseContainer { [Constructible] public Keg() : base(0xE7F) => Weight = 15.0; } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class PicnicBasket : BaseContainer { [Constructible] public PicnicBasket() : base(0xE7A) => Weight = 2.0; } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Basket : BaseContainer { [Constructible] @@ -357,7 +358,7 @@ public partial class Basket : BaseContainer [Furniture] [Flippable(0x9AA, 0xE7D)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class WoodenBox : LockableContainer { [Constructible] @@ -366,7 +367,7 @@ public partial class WoodenBox : LockableContainer [Furniture] [Flippable(0x9A9, 0xE7E)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class SmallCrate : LockableContainer { [Constructible] @@ -375,7 +376,7 @@ public partial class SmallCrate : LockableContainer [Furniture] [Flippable(0xE3F, 0xE3E)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MediumCrate : LockableContainer { [Constructible] @@ -384,7 +385,7 @@ public partial class MediumCrate : LockableContainer [Furniture] [Flippable(0xE3D, 0xE3C)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class LargeCrate : LockableContainer { [Constructible] @@ -393,7 +394,7 @@ public partial class LargeCrate : LockableContainer [DynamicFlipping] [Flippable(0x9A8, 0xE80)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MetalBox : LockableContainer { [Constructible] @@ -404,7 +405,7 @@ public partial class MetalBox : LockableContainer [DynamicFlipping] [Flippable(0x9AB, 0xE7C)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MetalChest : LockableContainer { [Constructible] @@ -414,7 +415,7 @@ public partial class MetalChest : LockableContainer } [DynamicFlipping, Flippable(0xE41, 0xE40)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MetalGoldenChest : LockableContainer { [Constructible] @@ -425,7 +426,7 @@ public partial class MetalGoldenChest : LockableContainer [Furniture] [Flippable(0xe43, 0xe42)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class WoodenChest : LockableContainer { [Constructible] @@ -434,7 +435,7 @@ public partial class WoodenChest : LockableContainer [Furniture] [Flippable(0x280B, 0x280C)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class PlainWoodenChest : LockableContainer { [Constructible] @@ -445,7 +446,7 @@ public partial class PlainWoodenChest : LockableContainer [Furniture] [Flippable(0x280D, 0x280E)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class OrnateWoodenChest : LockableContainer { [Constructible] @@ -456,7 +457,7 @@ public partial class OrnateWoodenChest : LockableContainer [Furniture] [Flippable(0x280F, 0x2810)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class GildedWoodenChest : LockableContainer { [Constructible] @@ -467,7 +468,7 @@ public partial class GildedWoodenChest : LockableContainer [Furniture] [Flippable(0x2811, 0x2812)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class WoodenFootLocker : LockableContainer { [Constructible] @@ -476,7 +477,7 @@ public partial class WoodenFootLocker : LockableContainer [Furniture] [Flippable(0x2813, 0x2814)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class FinishedWoodenChest : LockableContainer { [Constructible] @@ -486,7 +487,7 @@ public partial class FinishedWoodenChest : LockableContainer } [Furniture] -[Serializable(0)] +[SerializationGenerator(0)] [Flippable(0x2DF1, 0x2DF2)] public partial class RarewoodChest : LockableContainer { @@ -497,7 +498,7 @@ public partial class RarewoodChest : LockableContainer } [Furniture] -[Serializable(0)] +[SerializationGenerator(0)] [Flippable(0x2DF3, 0x2DF4)] public partial class DecorativeBox : LockableContainer { diff --git a/Projects/UOContent/Items/Containers/FurnitureContainer.cs b/Projects/UOContent/Items/Containers/FurnitureContainer.cs index e718faa1e..e638ab2d7 100644 --- a/Projects/UOContent/Items/Containers/FurnitureContainer.cs +++ b/Projects/UOContent/Items/Containers/FurnitureContainer.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; namespace Server.Items; [Furniture] [Flippable(0x2815, 0x2816)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class TallCabinet : BaseContainer { [Constructible] @@ -14,7 +15,7 @@ public partial class TallCabinet : BaseContainer [Furniture] [Flippable(0x2817, 0x2818)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class ShortCabinet : BaseContainer { [Constructible] @@ -23,7 +24,7 @@ public partial class ShortCabinet : BaseContainer [Furniture] [Flippable(0x2857, 0x2858)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class RedArmoire : BaseContainer { [Constructible] @@ -32,7 +33,7 @@ public partial class RedArmoire : BaseContainer [Furniture] [Flippable(0x285D, 0x285E)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class CherryArmoire : BaseContainer { [Constructible] @@ -41,7 +42,7 @@ public partial class CherryArmoire : BaseContainer [Furniture] [Flippable(0x285B, 0x285C)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MapleArmoire : BaseContainer { [Constructible] @@ -50,7 +51,7 @@ public partial class MapleArmoire : BaseContainer [Furniture] [Flippable(0x2859, 0x285A)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class ElegantArmoire : BaseContainer { [Constructible] @@ -58,7 +59,7 @@ public partial class ElegantArmoire : BaseContainer } [Furniture] -[Serializable(0)] +[SerializationGenerator(0)] [Flippable(0x2D07, 0x2D08)] public partial class FancyElvenArmoire : BaseContainer { @@ -69,7 +70,7 @@ public partial class FancyElvenArmoire : BaseContainer } [Furniture] -[Serializable(0)] +[SerializationGenerator(0)] [Flippable(0x2D05, 0x2D06)] public partial class SimpleElvenArmoire : BaseContainer { @@ -81,7 +82,7 @@ public partial class SimpleElvenArmoire : BaseContainer [Furniture] [Flippable(0xa97, 0xa99, 0xa98, 0xa9a, 0xa9b, 0xa9c)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class FullBookcase : BaseContainer { [Constructible] @@ -90,7 +91,7 @@ public partial class FullBookcase : BaseContainer [Furniture] [Flippable(0xa9d, 0xa9e)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class EmptyBookcase : BaseContainer { [Constructible] @@ -101,7 +102,7 @@ public partial class EmptyBookcase : BaseContainer [Furniture] [Flippable(0xa2c, 0xa34)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Drawer : BaseContainer { [Constructible] @@ -110,7 +111,7 @@ public partial class Drawer : BaseContainer [Furniture] [Flippable(0xa30, 0xa38)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class FancyDrawer : BaseContainer { [Constructible] @@ -119,7 +120,7 @@ public partial class FancyDrawer : BaseContainer [Furniture] [Flippable(0xa4f, 0xa53)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class Armoire : BaseContainer { [Constructible] @@ -142,7 +143,7 @@ public partial class Armoire : BaseContainer [Furniture] [Flippable(0xa4d, 0xa51)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class FancyArmoire : BaseContainer { [Constructible] diff --git a/Projects/UOContent/Items/Containers/LockableContainer.cs b/Projects/UOContent/Items/Containers/LockableContainer.cs index 2d465001f..1bbad4d64 100644 --- a/Projects/UOContent/Items/Containers/LockableContainer.cs +++ b/Projects/UOContent/Items/Containers/LockableContainer.cs @@ -1,10 +1,11 @@ using System; +using ModernUO.Serialization; using Server.Engines.Craft; using Server.Network; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public abstract partial class LockableContainer : TrappableContainer, ILockable, ILockpickable, ICraftable, IShipwreckedItem { public LockableContainer(int itemID) : base(itemID) => MaxLockLevel = 100; diff --git a/Projects/UOContent/Items/Containers/MarkContainer.cs b/Projects/UOContent/Items/Containers/MarkContainer.cs index 5099c7e3e..59846b477 100644 --- a/Projects/UOContent/Items/Containers/MarkContainer.cs +++ b/Projects/UOContent/Items/Containers/MarkContainer.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MarkContainer : LockableContainer { [SerializableField(0, getter: "private", setter: "private")] diff --git a/Projects/UOContent/Items/Containers/ParagonChest.cs b/Projects/UOContent/Items/Containers/ParagonChest.cs index 9dab1ed92..8f95fbfa4 100644 --- a/Projects/UOContent/Items/Containers/ParagonChest.cs +++ b/Projects/UOContent/Items/Containers/ParagonChest.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items; [Flippable] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class ParagonChest : LockableContainer { private static readonly int[] _itemIDs = diff --git a/Projects/UOContent/Items/Containers/SalvageBag.cs b/Projects/UOContent/Items/Containers/SalvageBag.cs index 365a9e39d..1a75f8449 100644 --- a/Projects/UOContent/Items/Containers/SalvageBag.cs +++ b/Projects/UOContent/Items/Containers/SalvageBag.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Engines.Craft; using Server.Network; @@ -8,7 +9,7 @@ using Server.Utilities; namespace Server.Items; -[Serializable(0)] +[SerializationGenerator(0)] public partial class SalvageBag : Bag { private bool m_Failure; diff --git a/Projects/UOContent/Items/Containers/Strongbox.cs b/Projects/UOContent/Items/Containers/Strongbox.cs index 880192a72..245bbd9c9 100644 --- a/Projects/UOContent/Items/Containers/Strongbox.cs +++ b/Projects/UOContent/Items/Containers/Strongbox.cs @@ -1,11 +1,12 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Multis; namespace Server.Items; [Flippable(0xE80, 0x9A8)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class StrongBox : BaseContainer, IChoppable { [InvalidateProperties] diff --git a/Projects/UOContent/Items/Containers/TrappableContainer.cs b/Projects/UOContent/Items/Containers/TrappableContainer.cs index f4b4f51f7..ebe9cfc8b 100644 --- a/Projects/UOContent/Items/Containers/TrappableContainer.cs +++ b/Projects/UOContent/Items/Containers/TrappableContainer.cs @@ -1,3 +1,4 @@ +using ModernUO.Serialization; using Server.Network; namespace Server.Items; @@ -11,7 +12,7 @@ public enum TrapType PoisonTrap } -[Serializable(3, false)] +[SerializationGenerator(3, false)] public abstract partial class TrappableContainer : BaseContainer, ITelekinesisable { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Containers/TreasureChest.cs b/Projects/UOContent/Items/Containers/TreasureChest.cs index d0f9f3acb..b1e01bb14 100644 --- a/Projects/UOContent/Items/Containers/TreasureChest.cs +++ b/Projects/UOContent/Items/Containers/TreasureChest.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items; [Flippable(0xe43, 0xe42)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class WoodenTreasureChest : BaseTreasureChest { [Constructible] @@ -11,7 +13,7 @@ public partial class WoodenTreasureChest : BaseTreasureChest } [Flippable(0xe41, 0xe40)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MetalGoldenTreasureChest : BaseTreasureChest { [Constructible] @@ -21,7 +23,7 @@ public partial class MetalGoldenTreasureChest : BaseTreasureChest } [Flippable(0x9ab, 0xe7c)] -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class MetalTreasureChest : BaseTreasureChest { [Constructible] diff --git a/Projects/UOContent/Items/Containers/TreasureMapChest.cs b/Projects/UOContent/Items/Containers/TreasureMapChest.cs index bbe01747f..03e7922ee 100644 --- a/Projects/UOContent/Items/Containers/TreasureMapChest.cs +++ b/Projects/UOContent/Items/Containers/TreasureMapChest.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Engines.PartySystem; using Server.Gumps; @@ -8,7 +9,7 @@ using Server.Utilities; namespace Server.Items; -[Serializable(2, false)] +[SerializationGenerator(2, false)] public partial class TreasureMapChest : LockableContainer { [SerializableField(0, setter: "private")] diff --git a/Projects/UOContent/Items/Decoration Artifacts/AcademicBooksArtifacts.cs b/Projects/UOContent/Items/Decoration Artifacts/AcademicBooksArtifacts.cs index 186e919e9..11698d565 100644 --- a/Projects/UOContent/Items/Decoration Artifacts/AcademicBooksArtifacts.cs +++ b/Projects/UOContent/Items/Decoration Artifacts/AcademicBooksArtifacts.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class AcademicBooksArtifact : BaseDecorationArtifact { public override int ArtifactRarity => 8; diff --git a/Projects/UOContent/Items/Decoration Artifacts/BaseDecorationArtifact.cs b/Projects/UOContent/Items/Decoration Artifacts/BaseDecorationArtifact.cs index 5f6843333..079bb9d30 100644 --- a/Projects/UOContent/Items/Decoration Artifacts/BaseDecorationArtifact.cs +++ b/Projects/UOContent/Items/Decoration Artifacts/BaseDecorationArtifact.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items; -[Serializable(0)] +[SerializationGenerator(0)] public abstract partial class BaseDecorationArtifact : Item { public BaseDecorationArtifact(int itemID) : base(itemID) => Weight = 10.0; @@ -17,7 +19,7 @@ public abstract partial class BaseDecorationArtifact : Item } } -[Serializable(0)] +[SerializationGenerator(0)] public abstract partial class BaseDecorationContainerArtifact : BaseContainer { public BaseDecorationContainerArtifact(int itemID) : base(itemID) => Weight = 10.0; diff --git a/Projects/UOContent/Items/Decoration Artifacts/DoomDecorationArtifacts.cs b/Projects/UOContent/Items/Decoration Artifacts/DoomDecorationArtifacts.cs index 70af11141..c758b8000 100644 --- a/Projects/UOContent/Items/Decoration Artifacts/DoomDecorationArtifacts.cs +++ b/Projects/UOContent/Items/Decoration Artifacts/DoomDecorationArtifacts.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items; -[Serializable(0)] +[SerializationGenerator(0)] public partial class BackpackArtifact : BaseDecorationContainerArtifact { [Constructible] @@ -11,7 +13,7 @@ public partial class BackpackArtifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BloodyWaterArtifact : BaseDecorationArtifact { [Constructible] @@ -22,7 +24,7 @@ public partial class BloodyWaterArtifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BooksWestArtifact : BaseDecorationArtifact { [Constructible] @@ -33,7 +35,7 @@ public partial class BooksWestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BooksNorthArtifact : BaseDecorationArtifact { [Constructible] @@ -44,7 +46,7 @@ public partial class BooksNorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BooksFaceDownArtifact : BaseDecorationArtifact { [Constructible] @@ -55,7 +57,7 @@ public partial class BooksFaceDownArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BottleArtifact : BaseDecorationArtifact { [Constructible] @@ -66,7 +68,7 @@ public partial class BottleArtifact : BaseDecorationArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BrazierArtifact : BaseDecorationArtifact { [Constructible] @@ -75,7 +77,7 @@ public partial class BrazierArtifact : BaseDecorationArtifact public override int ArtifactRarity => 2; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class CocoonArtifact : BaseDecorationArtifact { [Constructible] @@ -86,7 +88,7 @@ public partial class CocoonArtifact : BaseDecorationArtifact public override int ArtifactRarity => 7; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class DamagedBooksArtifact : BaseDecorationArtifact { [Constructible] @@ -97,7 +99,7 @@ public partial class DamagedBooksArtifact : BaseDecorationArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class EggCaseArtifact : BaseDecorationArtifact { [Constructible] @@ -108,7 +110,7 @@ public partial class EggCaseArtifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class GruesomeStandardArtifact : BaseDecorationArtifact { [Constructible] @@ -119,7 +121,7 @@ public partial class GruesomeStandardArtifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class LampPostArtifact : BaseDecorationArtifact { [Constructible] @@ -128,7 +130,7 @@ public partial class LampPostArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class LeatherTunicArtifact : BaseDecorationArtifact { [Constructible] @@ -139,7 +141,7 @@ public partial class LeatherTunicArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class RockArtifact : BaseDecorationArtifact { [Constructible] @@ -150,7 +152,7 @@ public partial class RockArtifact : BaseDecorationArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class RuinedPaintingArtifact : BaseDecorationArtifact { [Constructible] @@ -161,7 +163,7 @@ public partial class RuinedPaintingArtifact : BaseDecorationArtifact public override int ArtifactRarity => 12; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SaddleArtifact : BaseDecorationArtifact { [Constructible] @@ -172,7 +174,7 @@ public partial class SaddleArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SkinnedDeerArtifact : BaseDecorationArtifact { [Constructible] @@ -183,7 +185,7 @@ public partial class SkinnedDeerArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SkinnedGoatArtifact : BaseDecorationArtifact { [Constructible] @@ -194,7 +196,7 @@ public partial class SkinnedGoatArtifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SkullCandleArtifact : BaseDecorationArtifact { [Constructible] @@ -203,7 +205,7 @@ public partial class SkullCandleArtifact : BaseDecorationArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class StretchedHideArtifact : BaseDecorationArtifact { [Constructible] @@ -214,7 +216,7 @@ public partial class StretchedHideArtifact : BaseDecorationArtifact public override int ArtifactRarity => 2; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class StuddedLeggingsArtifact : BaseDecorationArtifact { [Constructible] @@ -225,7 +227,7 @@ public partial class StuddedLeggingsArtifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class StuddedTunicArtifact : BaseDecorationArtifact { [Constructible] @@ -236,7 +238,7 @@ public partial class StuddedTunicArtifact : BaseDecorationArtifact public override int ArtifactRarity => 7; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class TarotCardsArtifact : BaseDecorationArtifact { [Constructible] diff --git a/Projects/UOContent/Items/Decoration Artifacts/SEDecorationArtifacts.cs b/Projects/UOContent/Items/Decoration Artifacts/SEDecorationArtifacts.cs index 2f1ce0be6..a637e282f 100644 --- a/Projects/UOContent/Items/Decoration Artifacts/SEDecorationArtifacts.cs +++ b/Projects/UOContent/Items/Decoration Artifacts/SEDecorationArtifacts.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Network; namespace Server.Items; -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket1Artifact : BaseDecorationContainerArtifact { [Constructible] @@ -13,7 +14,7 @@ public partial class Basket1Artifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket2Artifact : BaseDecorationContainerArtifact { [Constructible] @@ -24,7 +25,7 @@ public partial class Basket2Artifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket3WestArtifact : BaseDecorationContainerArtifact { [Constructible] @@ -35,7 +36,7 @@ public partial class Basket3WestArtifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket3NorthArtifact : BaseDecorationContainerArtifact { [Constructible] @@ -46,7 +47,7 @@ public partial class Basket3NorthArtifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 1; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket4Artifact : BaseDecorationContainerArtifact { [Constructible] @@ -57,7 +58,7 @@ public partial class Basket4Artifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 2; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket5WestArtifact : BaseDecorationContainerArtifact { [Constructible] @@ -68,7 +69,7 @@ public partial class Basket5WestArtifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 2; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket5NorthArtifact : BaseDecorationContainerArtifact { [Constructible] @@ -79,7 +80,7 @@ public partial class Basket5NorthArtifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 2; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Basket6Artifact : BaseDecorationContainerArtifact { [Constructible] @@ -90,7 +91,7 @@ public partial class Basket6Artifact : BaseDecorationContainerArtifact public override int ArtifactRarity => 2; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BowlArtifact : BaseDecorationArtifact { [Constructible] @@ -101,7 +102,7 @@ public partial class BowlArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BowlsVerticalArtifact : BaseDecorationArtifact { [Constructible] @@ -112,7 +113,7 @@ public partial class BowlsVerticalArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class BowlsHorizontalArtifact : BaseDecorationArtifact { [Constructible] @@ -123,7 +124,7 @@ public partial class BowlsHorizontalArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class CupsArtifact : BaseDecorationArtifact { [Constructible] @@ -134,7 +135,7 @@ public partial class CupsArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class FanWestArtifact : BaseDecorationArtifact { [Constructible] @@ -145,7 +146,7 @@ public partial class FanWestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class FanNorthArtifact : BaseDecorationArtifact { [Constructible] @@ -156,7 +157,7 @@ public partial class FanNorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class TripleFanWestArtifact : BaseDecorationArtifact { [Constructible] @@ -167,7 +168,7 @@ public partial class TripleFanWestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class TripleFanNorthArtifact : BaseDecorationArtifact { [Constructible] @@ -178,7 +179,7 @@ public partial class TripleFanNorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class FlowersArtifact : BaseDecorationArtifact { [Constructible] @@ -189,7 +190,7 @@ public partial class FlowersArtifact : BaseDecorationArtifact public override int ArtifactRarity => 7; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting1WestArtifact : BaseDecorationArtifact { [Constructible] @@ -200,7 +201,7 @@ public partial class Painting1WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting1NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -211,7 +212,7 @@ public partial class Painting1NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting2WestArtifact : BaseDecorationArtifact { [Constructible] @@ -222,7 +223,7 @@ public partial class Painting2WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting2NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -233,7 +234,7 @@ public partial class Painting2NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting3Artifact : BaseDecorationArtifact { [Constructible] @@ -244,7 +245,7 @@ public partial class Painting3Artifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting4WestArtifact : BaseDecorationArtifact { [Constructible] @@ -255,7 +256,7 @@ public partial class Painting4WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 6; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting4NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -266,7 +267,7 @@ public partial class Painting4NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 6; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting5WestArtifact : BaseDecorationArtifact { [Constructible] @@ -277,7 +278,7 @@ public partial class Painting5WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting5NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -288,7 +289,7 @@ public partial class Painting5NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting6WestArtifact : BaseDecorationArtifact { [Constructible] @@ -299,7 +300,7 @@ public partial class Painting6WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Painting6NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -310,7 +311,7 @@ public partial class Painting6NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SakeArtifact : BaseDecorationArtifact { [Constructible] @@ -321,7 +322,7 @@ public partial class SakeArtifact : BaseDecorationArtifact public override int ArtifactRarity => 4; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Sculpture1Artifact : BaseDecorationArtifact { [Constructible] @@ -332,7 +333,7 @@ public partial class Sculpture1Artifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Sculpture2Artifact : BaseDecorationArtifact { [Constructible] @@ -343,7 +344,7 @@ public partial class Sculpture2Artifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class DolphinLeftArtifact : BaseDecorationArtifact { [Constructible] @@ -354,7 +355,7 @@ public partial class DolphinLeftArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class DolphinRightArtifact : BaseDecorationArtifact { [Constructible] @@ -365,7 +366,7 @@ public partial class DolphinRightArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class ManStatuetteSouthArtifact : BaseDecorationArtifact { [Constructible] @@ -376,7 +377,7 @@ public partial class ManStatuetteSouthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class ManStatuetteEastArtifact : BaseDecorationArtifact { [Constructible] @@ -387,7 +388,7 @@ public partial class ManStatuetteEastArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay1WestArtifact : BaseDecorationArtifact { [Constructible] @@ -398,7 +399,7 @@ public partial class SwordDisplay1WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay1NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -409,7 +410,7 @@ public partial class SwordDisplay1NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 5; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay2WestArtifact : BaseDecorationArtifact { [Constructible] @@ -420,7 +421,7 @@ public partial class SwordDisplay2WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 6; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay2NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -431,7 +432,7 @@ public partial class SwordDisplay2NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 6; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay3SouthArtifact : BaseDecorationArtifact { [Constructible] @@ -442,7 +443,7 @@ public partial class SwordDisplay3SouthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay3EastArtifact : BaseDecorationArtifact { [Constructible] @@ -453,7 +454,7 @@ public partial class SwordDisplay3EastArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay4WestArtifact : BaseDecorationArtifact { [Constructible] @@ -464,7 +465,7 @@ public partial class SwordDisplay4WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 8; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay4NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -475,7 +476,7 @@ public partial class SwordDisplay4NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay5WestArtifact : BaseDecorationArtifact { [Constructible] @@ -486,7 +487,7 @@ public partial class SwordDisplay5WestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class SwordDisplay5NorthArtifact : BaseDecorationArtifact { [Constructible] @@ -497,7 +498,7 @@ public partial class SwordDisplay5NorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 9; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class TeapotWestArtifact : BaseDecorationArtifact { [Constructible] @@ -508,7 +509,7 @@ public partial class TeapotWestArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class TeapotNorthArtifact : BaseDecorationArtifact { [Constructible] @@ -519,7 +520,7 @@ public partial class TeapotNorthArtifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class TowerLanternArtifact : BaseDecorationArtifact { [Constructible] @@ -556,7 +557,7 @@ public partial class TowerLanternArtifact : BaseDecorationArtifact } } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Urn1Artifact : BaseDecorationArtifact { [Constructible] @@ -567,7 +568,7 @@ public partial class Urn1Artifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class Urn2Artifact : BaseDecorationArtifact { [Constructible] @@ -578,7 +579,7 @@ public partial class Urn2Artifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class ZenRock1Artifact : BaseDecorationArtifact { [Constructible] @@ -589,7 +590,7 @@ public partial class ZenRock1Artifact : BaseDecorationArtifact public override int ArtifactRarity => 2; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class ZenRock2Artifact : BaseDecorationArtifact { [Constructible] @@ -600,7 +601,7 @@ public partial class ZenRock2Artifact : BaseDecorationArtifact public override int ArtifactRarity => 3; } -[Serializable(0)] +[SerializationGenerator(0)] public partial class ZenRock3Artifact : BaseDecorationArtifact { [Constructible] diff --git a/Projects/UOContent/Items/Deeds/BarkeepContract.cs b/Projects/UOContent/Items/Deeds/BarkeepContract.cs index c1fa4b22c..c3f94ee22 100644 --- a/Projects/UOContent/Items/Deeds/BarkeepContract.cs +++ b/Projects/UOContent/Items/Deeds/BarkeepContract.cs @@ -1,10 +1,11 @@ +using ModernUO.Serialization; using Server.Mobiles; using Server.Multis; using Server.Network; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class BarkeepContract : Item { [Constructible] diff --git a/Projects/UOContent/Items/Deeds/ClothingBlessDeed.cs b/Projects/UOContent/Items/Deeds/ClothingBlessDeed.cs index cb6186600..816a0cc0c 100644 --- a/Projects/UOContent/Items/Deeds/ClothingBlessDeed.cs +++ b/Projects/UOContent/Items/Deeds/ClothingBlessDeed.cs @@ -1,3 +1,4 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items; @@ -51,7 +52,7 @@ public class ClothingBlessTarget : Target // Create our targeting class (which w } } -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class ClothingBlessDeed : Item // Create the item class which is derived from the base item class { [Constructible] diff --git a/Projects/UOContent/Items/Deeds/CommodityDeed.cs b/Projects/UOContent/Items/Deeds/CommodityDeed.cs index 3aa141533..25ddf29e3 100644 --- a/Projects/UOContent/Items/Deeds/CommodityDeed.cs +++ b/Projects/UOContent/Items/Deeds/CommodityDeed.cs @@ -1,3 +1,4 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items; @@ -8,7 +9,7 @@ public interface ICommodity /* added IsDeedable prop so expansion-based deedable bool IsDeedable { get; } } -[Serializable(1, false)] +[SerializationGenerator(1, false)] public partial class CommodityDeed : Item { [SerializableField(0, setter: "private")] diff --git a/Projects/UOContent/Items/Deeds/DragonBardingDeed.cs b/Projects/UOContent/Items/Deeds/DragonBardingDeed.cs index 75840190b..0cb85790a 100644 --- a/Projects/UOContent/Items/Deeds/DragonBardingDeed.cs +++ b/Projects/UOContent/Items/Deeds/DragonBardingDeed.cs @@ -1,4 +1,5 @@ using System; +using ModernUO.Serialization; using Server.Engines.Craft; using Server.Mobiles; using Server.Targeting; @@ -6,7 +7,7 @@ using Server.Targeting; namespace Server.Items; [TypeAlias("Server.Items.DragonBarding")] -[Serializable(2, false)] +[SerializationGenerator(2, false)] public partial class DragonBardingDeed : Item, ICraftable { [InvalidateProperties] diff --git a/Projects/UOContent/Items/Deeds/HairRestylingDeed.cs b/Projects/UOContent/Items/Deeds/HairRestylingDeed.cs index e87eb7d1d..64dc56845 100644 --- a/Projects/UOContent/Items/Deeds/HairRestylingDeed.cs +++ b/Projects/UOContent/Items/Deeds/HairRestylingDeed.cs @@ -1,10 +1,11 @@ +using ModernUO.Serialization; using Server.Gumps; using Server.Mobiles; using Server.Network; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class HairRestylingDeed : Item { [Constructible] diff --git a/Projects/UOContent/Items/Deeds/HolidayTreeDeed.cs b/Projects/UOContent/Items/Deeds/HolidayTreeDeed.cs index da5ca4a71..47230c1b1 100644 --- a/Projects/UOContent/Items/Deeds/HolidayTreeDeed.cs +++ b/Projects/UOContent/Items/Deeds/HolidayTreeDeed.cs @@ -1,3 +1,4 @@ +using ModernUO.Serialization; using Server.Gumps; using Server.Multis; using Server.Network; @@ -5,7 +6,7 @@ using Server.Targeting; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class HolidayTreeDeed : Item { [Constructible] diff --git a/Projects/UOContent/Items/Deeds/NameChangeDeed.cs b/Projects/UOContent/Items/Deeds/NameChangeDeed.cs index 45fd6e080..70f9b7bcd 100644 --- a/Projects/UOContent/Items/Deeds/NameChangeDeed.cs +++ b/Projects/UOContent/Items/Deeds/NameChangeDeed.cs @@ -1,10 +1,11 @@ +using ModernUO.Serialization; using Server.Gumps; using Server.Misc; using Server.Network; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class NameChangeDeed : Item { [Constructible] diff --git a/Projects/UOContent/Items/Deeds/NewPlayerTicket.cs b/Projects/UOContent/Items/Deeds/NewPlayerTicket.cs index 1b75e9eaf..d19fdf762 100644 --- a/Projects/UOContent/Items/Deeds/NewPlayerTicket.cs +++ b/Projects/UOContent/Items/Deeds/NewPlayerTicket.cs @@ -1,10 +1,11 @@ +using ModernUO.Serialization; using Server.Gumps; using Server.Network; using Server.Targeting; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class NewPlayerTicket : Item { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Resources/Blacksmithing/Ingots.cs b/Projects/UOContent/Items/Resources/Blacksmithing/Ingots.cs index 9931c0708..1d034e0cc 100644 --- a/Projects/UOContent/Items/Resources/Blacksmithing/Ingots.cs +++ b/Projects/UOContent/Items/Resources/Blacksmithing/Ingots.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(2, false)] + [SerializationGenerator(2, false)] public abstract partial class BaseIngot : Item, ICommodity { [InvalidateProperties] @@ -98,7 +100,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class IronIngot : BaseIngot { @@ -108,7 +110,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class DullCopperIngot : BaseIngot { @@ -118,7 +120,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class ShadowIronIngot : BaseIngot { @@ -128,7 +130,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class CopperIngot : BaseIngot { @@ -138,7 +140,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class BronzeIngot : BaseIngot { @@ -148,7 +150,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class GoldIngot : BaseIngot { @@ -158,7 +160,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class AgapiteIngot : BaseIngot { @@ -168,7 +170,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class VeriteIngot : BaseIngot { @@ -178,7 +180,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1BF2, 0x1BEF)] public partial class ValoriteIngot : BaseIngot { diff --git a/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs b/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs index 70d8f484e..d5f26bb55 100644 --- a/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs +++ b/Projects/UOContent/Items/Resources/Blacksmithing/Ore.cs @@ -1,10 +1,11 @@ +using ModernUO.Serialization; using Server.Engines.Craft; using Server.Mobiles; using Server.Targeting; namespace Server.Items { - [Serializable(2, false)] + [SerializationGenerator(2, false)] public abstract partial class BaseOre : Item { public BaseOre(CraftResource resource, int amount = 1) : base(RandomSize()) @@ -363,7 +364,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class IronOre : BaseOre { [Constructible] @@ -382,7 +383,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new IronIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DullCopperOre : BaseOre { [Constructible] @@ -393,7 +394,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new DullCopperIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShadowIronOre : BaseOre { [Constructible] @@ -404,7 +405,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new ShadowIronIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CopperOre : BaseOre { [Constructible] @@ -415,7 +416,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new CopperIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BronzeOre : BaseOre { [Constructible] @@ -426,7 +427,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new BronzeIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GoldOre : BaseOre { [Constructible] @@ -437,7 +438,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new GoldIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AgapiteOre : BaseOre { [Constructible] @@ -448,7 +449,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new AgapiteIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class VeriteOre : BaseOre { [Constructible] @@ -459,7 +460,7 @@ namespace Server.Items public override BaseIngot GetIngot() => new VeriteIngot(); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ValoriteOre : BaseOre { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Fishing/BigFish.cs b/Projects/UOContent/Items/Resources/Fishing/BigFish.cs index 4d0e40ae3..7ccaef1ea 100644 --- a/Projects/UOContent/Items/Resources/Fishing/BigFish.cs +++ b/Projects/UOContent/Items/Resources/Fishing/BigFish.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class BigFish : Item, ICarvable { [InvalidateProperties] diff --git a/Projects/UOContent/Items/Resources/Fishing/Fish.cs b/Projects/UOContent/Items/Resources/Fishing/Fish.cs index a84a1f002..0007f92b7 100644 --- a/Projects/UOContent/Items/Resources/Fishing/Fish.cs +++ b/Projects/UOContent/Items/Resources/Fishing/Fish.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Fish : Item, ICarvable { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Fishing/MagicFish.cs b/Projects/UOContent/Items/Resources/Fishing/MagicFish.cs index e64f6ddc0..e89d7b6ac 100644 --- a/Projects/UOContent/Items/Resources/Fishing/MagicFish.cs +++ b/Projects/UOContent/Items/Resources/Fishing/MagicFish.cs @@ -1,10 +1,11 @@ using System; +using ModernUO.Serialization; using Server.Network; using Server.Spells; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseMagicFish : Item { public BaseMagicFish(int hue) : base(0xDD6) => Hue = hue; @@ -42,7 +43,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PrizedFish : BaseMagicFish { [Constructible] @@ -56,7 +57,7 @@ namespace Server.Items public override int LabelNumber => 1041073; // prized fish } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WondrousFish : BaseMagicFish { [Constructible] @@ -70,7 +71,7 @@ namespace Server.Items public override int LabelNumber => 1041074; // wondrous fish } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TrulyRareFish : BaseMagicFish { [Constructible] @@ -84,7 +85,7 @@ namespace Server.Items public override int LabelNumber => 1041075; // truly rare fish } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PeculiarFish : BaseMagicFish { [Constructible] diff --git a/Projects/UOContent/Items/Resources/MiscMLResources.cs b/Projects/UOContent/Items/Resources/MiscMLResources.cs index a0c6d30b4..f72b20447 100644 --- a/Projects/UOContent/Items/Resources/MiscMLResources.cs +++ b/Projects/UOContent/Items/Resources/MiscMLResources.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Blight : Item { [Constructible] @@ -11,7 +13,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LuminescentFungi : Item { [Constructible] @@ -22,7 +24,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CapturedEssence : Item { [Constructible] @@ -33,7 +35,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class EyeOfTheTravesty : Item { [Constructible] @@ -49,7 +51,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Corruption : Item { [Constructible] @@ -65,7 +67,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DreadHornMane : Item { [Constructible] @@ -81,7 +83,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ParasiticPlant : Item { [Constructible] @@ -97,7 +99,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Muculent : Item { [Constructible] @@ -113,7 +115,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DiseasedBark : Item { [Constructible] @@ -129,7 +131,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BarkFragment : Item { [Constructible] @@ -145,7 +147,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GrizzledBones : Item { [Constructible] @@ -161,7 +163,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LardOfParoxysmus : Item { [Constructible] @@ -177,7 +179,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PerfectEmerald : Item { [Constructible] @@ -193,7 +195,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DarkSapphire : Item { [Constructible] @@ -209,7 +211,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Turquoise : Item { [Constructible] @@ -225,7 +227,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class EcruCitrine : Item { [Constructible] @@ -241,7 +243,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WhitePearl : Item { [Constructible] @@ -257,7 +259,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FireRuby : Item { [Constructible] @@ -273,7 +275,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BlueDiamond : Item { [Constructible] @@ -289,7 +291,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BrilliantAmber : Item { [Constructible] @@ -305,7 +307,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Scourge : Item { [Constructible] @@ -322,7 +324,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Putrefication : Item { [Constructible] @@ -339,7 +341,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Taint : Item { [Constructible] @@ -356,7 +358,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x315A, 0x315B)] public partial class PristineDreadHorn : Item { @@ -366,7 +368,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SwitchItem : Item { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/BaseReagent.cs b/Projects/UOContent/Items/Resources/Reagents/BaseReagent.cs index 66c5fb678..32bfdb4cc 100644 --- a/Projects/UOContent/Items/Resources/Reagents/BaseReagent.cs +++ b/Projects/UOContent/Items/Resources/Reagents/BaseReagent.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseReagent : Item { public BaseReagent(int itemID, int amount = 1) : base(itemID) diff --git a/Projects/UOContent/Items/Resources/Reagents/BatWing.cs b/Projects/UOContent/Items/Resources/Reagents/BatWing.cs index 479c9bffb..474284936 100644 --- a/Projects/UOContent/Items/Resources/Reagents/BatWing.cs +++ b/Projects/UOContent/Items/Resources/Reagents/BatWing.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BatWing : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/BlackPearl.cs b/Projects/UOContent/Items/Resources/Reagents/BlackPearl.cs index 7720c2cee..d2d32f419 100644 --- a/Projects/UOContent/Items/Resources/Reagents/BlackPearl.cs +++ b/Projects/UOContent/Items/Resources/Reagents/BlackPearl.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BlackPearl : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/Bloodmoss.cs b/Projects/UOContent/Items/Resources/Reagents/Bloodmoss.cs index e3405f42b..70559a3b3 100644 --- a/Projects/UOContent/Items/Resources/Reagents/Bloodmoss.cs +++ b/Projects/UOContent/Items/Resources/Reagents/Bloodmoss.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bloodmoss : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/DaemonBlood.cs b/Projects/UOContent/Items/Resources/Reagents/DaemonBlood.cs index 6d49f0b42..10350ebed 100644 --- a/Projects/UOContent/Items/Resources/Reagents/DaemonBlood.cs +++ b/Projects/UOContent/Items/Resources/Reagents/DaemonBlood.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DaemonBlood : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/DaemonBone.cs b/Projects/UOContent/Items/Resources/Reagents/DaemonBone.cs index 8c9cc9ce6..6c8b9a818 100644 --- a/Projects/UOContent/Items/Resources/Reagents/DaemonBone.cs +++ b/Projects/UOContent/Items/Resources/Reagents/DaemonBone.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DaemonBone : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/DeadWood.cs b/Projects/UOContent/Items/Resources/Reagents/DeadWood.cs index 92036861d..39e9e6459 100644 --- a/Projects/UOContent/Items/Resources/Reagents/DeadWood.cs +++ b/Projects/UOContent/Items/Resources/Reagents/DeadWood.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DeadWood : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/DragonsBlood.cs b/Projects/UOContent/Items/Resources/Reagents/DragonsBlood.cs index 4d07593b0..0e695ab43 100644 --- a/Projects/UOContent/Items/Resources/Reagents/DragonsBlood.cs +++ b/Projects/UOContent/Items/Resources/Reagents/DragonsBlood.cs @@ -1,6 +1,8 @@ -namespace Server.Items +using ModernUO.Serialization; + +namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DragonsBlood : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/Garlic.cs b/Projects/UOContent/Items/Resources/Reagents/Garlic.cs index 35873ab76..fb616980b 100644 --- a/Projects/UOContent/Items/Resources/Reagents/Garlic.cs +++ b/Projects/UOContent/Items/Resources/Reagents/Garlic.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Garlic : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/Ginseng.cs b/Projects/UOContent/Items/Resources/Reagents/Ginseng.cs index 7fce79ee5..60df8c379 100644 --- a/Projects/UOContent/Items/Resources/Reagents/Ginseng.cs +++ b/Projects/UOContent/Items/Resources/Reagents/Ginseng.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Ginseng : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/GraveDust.cs b/Projects/UOContent/Items/Resources/Reagents/GraveDust.cs index 81a6c4872..f87cf5bf0 100644 --- a/Projects/UOContent/Items/Resources/Reagents/GraveDust.cs +++ b/Projects/UOContent/Items/Resources/Reagents/GraveDust.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GraveDust : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/MandrakeRoot.cs b/Projects/UOContent/Items/Resources/Reagents/MandrakeRoot.cs index 4ad411c42..8493e2991 100644 --- a/Projects/UOContent/Items/Resources/Reagents/MandrakeRoot.cs +++ b/Projects/UOContent/Items/Resources/Reagents/MandrakeRoot.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MandrakeRoot : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/Nightshade.cs b/Projects/UOContent/Items/Resources/Reagents/Nightshade.cs index e5e5c8a28..d39535bb8 100644 --- a/Projects/UOContent/Items/Resources/Reagents/Nightshade.cs +++ b/Projects/UOContent/Items/Resources/Reagents/Nightshade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Nightshade : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/NoxCrystal.cs b/Projects/UOContent/Items/Resources/Reagents/NoxCrystal.cs index 8cd02c9e9..6380167b0 100644 --- a/Projects/UOContent/Items/Resources/Reagents/NoxCrystal.cs +++ b/Projects/UOContent/Items/Resources/Reagents/NoxCrystal.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NoxCrystal : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/PigIron.cs b/Projects/UOContent/Items/Resources/Reagents/PigIron.cs index 46d818737..3b8f81711 100644 --- a/Projects/UOContent/Items/Resources/Reagents/PigIron.cs +++ b/Projects/UOContent/Items/Resources/Reagents/PigIron.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class PigIron : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/SpidersSilk.cs b/Projects/UOContent/Items/Resources/Reagents/SpidersSilk.cs index d4b7754d2..9f97f37ea 100644 --- a/Projects/UOContent/Items/Resources/Reagents/SpidersSilk.cs +++ b/Projects/UOContent/Items/Resources/Reagents/SpidersSilk.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SpidersSilk : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Reagents/SulfurousAsh.cs b/Projects/UOContent/Items/Resources/Reagents/SulfurousAsh.cs index 34b178ebd..40de7e27c 100644 --- a/Projects/UOContent/Items/Resources/Reagents/SulfurousAsh.cs +++ b/Projects/UOContent/Items/Resources/Reagents/SulfurousAsh.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SulfurousAsh : BaseReagent, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Tailor/BoltOfCloth.cs b/Projects/UOContent/Items/Resources/Tailor/BoltOfCloth.cs index 857a8c7a0..e87b0f521 100644 --- a/Projects/UOContent/Items/Resources/Tailor/BoltOfCloth.cs +++ b/Projects/UOContent/Items/Resources/Tailor/BoltOfCloth.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0xF95, 0xF96, 0xF97, 0xF98, 0xF99, 0xF9A, 0xF9B, 0xF9C)] public partial class BoltOfCloth : Item, IScissorable, IDyable, ICommodity { diff --git a/Projects/UOContent/Items/Resources/Tailor/Bone.cs b/Projects/UOContent/Items/Resources/Tailor/Bone.cs index 374aa0d66..5b27f8cbe 100644 --- a/Projects/UOContent/Items/Resources/Tailor/Bone.cs +++ b/Projects/UOContent/Items/Resources/Tailor/Bone.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bone : Item, ICommodity { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Tailor/Cloth.cs b/Projects/UOContent/Items/Resources/Tailor/Cloth.cs index d66970c29..b8f49714d 100644 --- a/Projects/UOContent/Items/Resources/Tailor/Cloth.cs +++ b/Projects/UOContent/Items/Resources/Tailor/Cloth.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1766, 0x1768)] public partial class Cloth : Item, IScissorable, IDyable, ICommodity { diff --git a/Projects/UOContent/Items/Resources/Tailor/Cotton.cs b/Projects/UOContent/Items/Resources/Tailor/Cotton.cs index 886f1f3e3..61d6c64fc 100644 --- a/Projects/UOContent/Items/Resources/Tailor/Cotton.cs +++ b/Projects/UOContent/Items/Resources/Tailor/Cotton.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Cotton : Item, IDyable { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Tailor/Flax.cs b/Projects/UOContent/Items/Resources/Tailor/Flax.cs index a0e265caf..ec40e4ee6 100644 --- a/Projects/UOContent/Items/Resources/Tailor/Flax.cs +++ b/Projects/UOContent/Items/Resources/Tailor/Flax.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Flax : Item { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Tailor/Hides.cs b/Projects/UOContent/Items/Resources/Tailor/Hides.cs index e2b32e2f7..39acdc6c7 100644 --- a/Projects/UOContent/Items/Resources/Tailor/Hides.cs +++ b/Projects/UOContent/Items/Resources/Tailor/Hides.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(2, false)] + [SerializationGenerator(2, false)] public abstract partial class BaseHides : Item, ICommodity { [InvalidateProperties] @@ -85,7 +87,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1079, 0x1078)] public partial class Hides : BaseHides, IScissorable { @@ -113,7 +115,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1079, 0x1078)] public partial class SpinedHides : BaseHides, IScissorable { @@ -141,7 +143,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1079, 0x1078)] public partial class HornedHides : BaseHides, IScissorable { @@ -169,7 +171,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1079, 0x1078)] public partial class BarbedHides : BaseHides, IScissorable { diff --git a/Projects/UOContent/Items/Resources/Tailor/Leathers.cs b/Projects/UOContent/Items/Resources/Tailor/Leathers.cs index 2b616b4bb..3ed3f4a7c 100644 --- a/Projects/UOContent/Items/Resources/Tailor/Leathers.cs +++ b/Projects/UOContent/Items/Resources/Tailor/Leathers.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(2, false)] + [SerializationGenerator(2, false)] public abstract partial class BaseLeather : Item, ICommodity { [InvalidateProperties] @@ -85,7 +87,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1081, 0x1082)] public partial class Leather : BaseLeather { @@ -95,7 +97,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1081, 0x1082)] public partial class SpinedLeather : BaseLeather { @@ -105,7 +107,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1081, 0x1082)] public partial class HornedLeather : BaseLeather { @@ -115,7 +117,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1081, 0x1082)] public partial class BarbedLeather : BaseLeather { diff --git a/Projects/UOContent/Items/Resources/Tailor/UncutCloth.cs b/Projects/UOContent/Items/Resources/Tailor/UncutCloth.cs index 3daf072b0..05ed011f7 100644 --- a/Projects/UOContent/Items/Resources/Tailor/UncutCloth.cs +++ b/Projects/UOContent/Items/Resources/Tailor/UncutCloth.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Network; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1765, 0x1767)] public partial class UncutCloth : Item, IScissorable, IDyable, ICommodity { diff --git a/Projects/UOContent/Items/Resources/Tailor/Wool.cs b/Projects/UOContent/Items/Resources/Tailor/Wool.cs index 53437fd37..578de9600 100644 --- a/Projects/UOContent/Items/Resources/Tailor/Wool.cs +++ b/Projects/UOContent/Items/Resources/Tailor/Wool.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Wool : Item, IDyable { [Constructible] @@ -91,7 +92,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TaintedWool : Wool { [Constructible] diff --git a/Projects/UOContent/Items/Resources/Tailor/YarnsAndThreads.cs b/Projects/UOContent/Items/Resources/Tailor/YarnsAndThreads.cs index a644f9f3b..f5fef0825 100644 --- a/Projects/UOContent/Items/Resources/Tailor/YarnsAndThreads.cs +++ b/Projects/UOContent/Items/Resources/Tailor/YarnsAndThreads.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseClothMaterial : Item, IDyable { public BaseClothMaterial(int itemID, int amount = 1) : base(itemID) @@ -91,7 +92,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DarkYarn : BaseClothMaterial { [Constructible] @@ -100,7 +101,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightYarn : BaseClothMaterial { [Constructible] @@ -109,7 +110,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightYarnUnraveled : BaseClothMaterial { [Constructible] @@ -118,7 +119,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SpoolOfThread : BaseClothMaterial { [Constructible] diff --git a/Projects/UOContent/Items/Shields/GargishWoodenShield.cs b/Projects/UOContent/Items/Shields/GargishWoodenShield.cs index a64473eb5..e332c7cb1 100644 --- a/Projects/UOContent/Items/Shields/GargishWoodenShield.cs +++ b/Projects/UOContent/Items/Shields/GargishWoodenShield.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x4200, 0x4207)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class GargishWoodenShield : BaseShield { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Lumberjack/Log.cs b/Projects/UOContent/Items/Skill Items/Lumberjack/Log.cs index f3b692cb9..19db4c169 100644 --- a/Projects/UOContent/Items/Skill Items/Lumberjack/Log.cs +++ b/Projects/UOContent/Items/Skill Items/Lumberjack/Log.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(2, false)] + [SerializationGenerator(2, false)] [Flippable(0x1bdd, 0x1be0)] public partial class Log : Item, ICommodity, IAxe { @@ -86,7 +88,7 @@ namespace Server.Items } } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HeartwoodLog : Log { [Constructible] @@ -97,7 +99,7 @@ namespace Server.Items public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new HeartwoodBoard()); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BloodwoodLog : Log { [Constructible] @@ -108,7 +110,7 @@ namespace Server.Items public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new BloodwoodBoard()); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FrostwoodLog : Log { [Constructible] @@ -119,7 +121,7 @@ namespace Server.Items public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 100, new FrostwoodBoard()); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class OakLog : Log { [Constructible] @@ -130,7 +132,7 @@ namespace Server.Items public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 65, new OakBoard()); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AshLog : Log { [Constructible] @@ -141,7 +143,7 @@ namespace Server.Items public override bool Axe(Mobile from, BaseAxe axe) => TryCreateBoards(from, 80, new AshBoard()); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class YewLog : Log { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlackDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlackDyeTub.cs index da621fd74..d4e1e769e 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlackDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlackDyeTub.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BlackDyeTub : DyeTub { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlazeDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlazeDyeTub.cs index e59f8115c..04a733169 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlazeDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/BlazeDyeTub.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BlazeDyeTub : DyeTub { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs index be13e0150..2cf95b183 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/DyeTub.cs @@ -1,4 +1,5 @@ using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Gumps; using Server.Multis; @@ -11,7 +12,7 @@ namespace Server.Items bool Dye(Mobile from, DyeTub sender); } - [Serializable(2, false)] + [SerializationGenerator(2, false)] public partial class DyeTub : Item, ISecurable { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs index 4bab7dab3..615661514 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/FurnitureDyeTub.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class FurnitureDyeTub : DyeTub, IRewardItem { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs index a33ceb428..85c65be00 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/LeatherDyeTub.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class LeatherDyeTub : DyeTub, IRewardItem { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicClothDyetub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicClothDyetub.cs index fb1b9d20a..c917fbeb8 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicClothDyetub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicClothDyetub.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MetallicClothDyetub : DyeTub { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicLeatherDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicLeatherDyeTub.cs index 7b11c8fbb..28c81f2ae 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicLeatherDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/MetallicLeatherDyeTub.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MetallicLeatherDyeTub : LeatherDyeTub { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs index d04d01ea9..a0f75f358 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RewardBlackDyeTub.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class RewardBlackDyeTub : DyeTub, IRewardItem { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs index 7f04fe35a..7adee4071 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/RunebookDyeTub.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class RunebookDyeTub : DyeTub, IRewardItem { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs index da2ca3921..ec30f803d 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/SpecialDyeTub.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class SpecialDyeTub : DyeTub, IRewardItem { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs index 4d5d53e05..a988c8d0a 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/StatuetteDyeTub.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.VeteranRewards; namespace Server.Items { - [Serializable(1, false)] + [SerializationGenerator(1, false)] public partial class StatuetteDyeTub : DyeTub, IRewardItem { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteClothDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteClothDyeTub.cs index 6ea785a37..33583c7c5 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteClothDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteClothDyeTub.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items /* High seas, loot from merchant ship's hold, also a "uncommon" loot item */ { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WhiteClothDyeTub : DyeTub { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteLeatherDyeTub.cs b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteLeatherDyeTub.cs index 504c680a1..d0f2974db 100644 --- a/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteLeatherDyeTub.cs +++ b/Projects/UOContent/Items/Skill Items/Tailor Items/Dyetubs/WhiteLeatherDyeTub.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WhiteLeatherDyeTub : LeatherDyeTub /* OSI UO 13th anniv gift, from redeemable gift tickets */ { [Constructible] diff --git a/Projects/UOContent/Items/Skill Items/Tools/TinkerTools.cs b/Projects/UOContent/Items/Skill Items/Tools/TinkerTools.cs index 872bc099a..cf5503a50 100644 --- a/Projects/UOContent/Items/Skill Items/Tools/TinkerTools.cs +++ b/Projects/UOContent/Items/Skill Items/Tools/TinkerTools.cs @@ -1,9 +1,10 @@ +using ModernUO.Serialization; using Server.Engines.Craft; namespace Server.Items { [Flippable(0x1EB8, 0x1EB9)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TinkerTools : BaseTool { [Constructible] @@ -15,7 +16,7 @@ namespace Server.Items public override CraftSystem CraftSystem => DefTinkering.CraftSystem; } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TinkersTools : BaseTool { [Constructible] diff --git a/Projects/UOContent/Items/Special/SoulStone.cs b/Projects/UOContent/Items/Special/SoulStone.cs index a951f169f..15ffc2862 100644 --- a/Projects/UOContent/Items/Special/SoulStone.cs +++ b/Projects/UOContent/Items/Special/SoulStone.cs @@ -1,5 +1,4 @@ using System; -using Server.Accounting; using Server.Engines.VeteranRewards; using Server.Factions; using Server.Gumps; diff --git a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel1.cs b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel1.cs index 28dacc9a7..61dfd853d 100644 --- a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel1.cs +++ b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel1.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class TreasureChestLevel1 : LockableContainer { [Constructible] diff --git a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel2.cs b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel2.cs index 74b78fe39..bc3fe877c 100644 --- a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel2.cs +++ b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel2.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class TreasureChestLevel2 : LockableContainer { [Constructible] diff --git a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel3.cs b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel3.cs index fe227b27a..9ec26c7bb 100644 --- a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel3.cs +++ b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel3.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class TreasureChestLevel3 : LockableContainer { [Constructible] diff --git a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel4.cs b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel4.cs index bc4afcc72..a4bbd17bc 100644 --- a/Projects/UOContent/Items/TreasureChests/TreasureChestLevel4.cs +++ b/Projects/UOContent/Items/TreasureChests/TreasureChestLevel4.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items; -[Serializable(0, false)] +[SerializationGenerator(0, false)] public partial class TreasureChestLevel4 : LockableContainer { [Constructible] diff --git a/Projects/UOContent/Items/Wands/BaseWand.cs b/Projects/UOContent/Items/Wands/BaseWand.cs index 310ffe526..7d404413f 100644 --- a/Projects/UOContent/Items/Wands/BaseWand.cs +++ b/Projects/UOContent/Items/Wands/BaseWand.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Network; using Server.Spells; using Server.Targeting; @@ -21,7 +22,7 @@ namespace Server.Items ManaDraining } - [Serializable(1, false)] + [SerializationGenerator(1, false)] public abstract partial class BaseWand : BaseBashing { [InvalidateProperties] diff --git a/Projects/UOContent/Items/Wands/ClumsyWand.cs b/Projects/UOContent/Items/Wands/ClumsyWand.cs index 2cb94a7af..cbe1653de 100644 --- a/Projects/UOContent/Items/Wands/ClumsyWand.cs +++ b/Projects/UOContent/Items/Wands/ClumsyWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.First; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ClumsyWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/FeebleWand.cs b/Projects/UOContent/Items/Wands/FeebleWand.cs index 1fa71810f..93965c518 100644 --- a/Projects/UOContent/Items/Wands/FeebleWand.cs +++ b/Projects/UOContent/Items/Wands/FeebleWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.First; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FeebleWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/FireballWand.cs b/Projects/UOContent/Items/Wands/FireballWand.cs index 2c80cc160..1024112b8 100644 --- a/Projects/UOContent/Items/Wands/FireballWand.cs +++ b/Projects/UOContent/Items/Wands/FireballWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.Third; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FireballWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/GreaterHealWand.cs b/Projects/UOContent/Items/Wands/GreaterHealWand.cs index 2e9ee8291..9624de117 100644 --- a/Projects/UOContent/Items/Wands/GreaterHealWand.cs +++ b/Projects/UOContent/Items/Wands/GreaterHealWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.Fourth; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GreaterHealWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/HarmWand.cs b/Projects/UOContent/Items/Wands/HarmWand.cs index 853957195..e727fcb31 100644 --- a/Projects/UOContent/Items/Wands/HarmWand.cs +++ b/Projects/UOContent/Items/Wands/HarmWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.Second; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HarmWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/HealWand.cs b/Projects/UOContent/Items/Wands/HealWand.cs index ad40234fa..7319b10fe 100644 --- a/Projects/UOContent/Items/Wands/HealWand.cs +++ b/Projects/UOContent/Items/Wands/HealWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.First; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HealWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/IDWand.cs b/Projects/UOContent/Items/Wands/IDWand.cs index 1c6328ff6..1e916f4a7 100644 --- a/Projects/UOContent/Items/Wands/IDWand.cs +++ b/Projects/UOContent/Items/Wands/IDWand.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class IDWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/LightningWand.cs b/Projects/UOContent/Items/Wands/LightningWand.cs index caf69aee5..9c02f2288 100644 --- a/Projects/UOContent/Items/Wands/LightningWand.cs +++ b/Projects/UOContent/Items/Wands/LightningWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.Fourth; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LightningWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/MagicArrowWand.cs b/Projects/UOContent/Items/Wands/MagicArrowWand.cs index 036602ae2..1e9eb79c0 100644 --- a/Projects/UOContent/Items/Wands/MagicArrowWand.cs +++ b/Projects/UOContent/Items/Wands/MagicArrowWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.First; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MagicArrowWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/ManaDrainWand.cs b/Projects/UOContent/Items/Wands/ManaDrainWand.cs index 61b49bcb9..7e3c78885 100644 --- a/Projects/UOContent/Items/Wands/ManaDrainWand.cs +++ b/Projects/UOContent/Items/Wands/ManaDrainWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.Fourth; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ManaDrainWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Wands/WeaknessWand.cs b/Projects/UOContent/Items/Wands/WeaknessWand.cs index 5361d0bcb..ff0fdeb5f 100644 --- a/Projects/UOContent/Items/Wands/WeaknessWand.cs +++ b/Projects/UOContent/Items/Wands/WeaknessWand.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Spells.First; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WeaknessWand : BaseWand { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/AxeOfTheHeavens.cs b/Projects/UOContent/Items/Weapons/Artifacts/AxeOfTheHeavens.cs index a4137f17d..09193ba45 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/AxeOfTheHeavens.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/AxeOfTheHeavens.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class AxeOfTheHeavens : DoubleAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/BladeOfInsanity.cs b/Projects/UOContent/Items/Weapons/Artifacts/BladeOfInsanity.cs index ed6b2b14e..4652aff5a 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/BladeOfInsanity.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/BladeOfInsanity.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BladeOfInsanity : Katana { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/BladeOfTheRighteous.cs b/Projects/UOContent/Items/Weapons/Artifacts/BladeOfTheRighteous.cs index 61f5ad7c7..f89bddd43 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/BladeOfTheRighteous.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/BladeOfTheRighteous.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BladeOfTheRighteous : Longsword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/BoneCrusher.cs b/Projects/UOContent/Items/Weapons/Artifacts/BoneCrusher.cs index b2d5a640d..e682d7428 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/BoneCrusher.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/BoneCrusher.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BoneCrusher : WarMace { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/BreathOfTheDead.cs b/Projects/UOContent/Items/Weapons/Artifacts/BreathOfTheDead.cs index ab9f8d808..b0242f8f7 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/BreathOfTheDead.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/BreathOfTheDead.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BreathOfTheDead : BoneHarvester { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/Frostbringer.cs b/Projects/UOContent/Items/Weapons/Artifacts/Frostbringer.cs index 7ef940a63..f974b7a72 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/Frostbringer.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/Frostbringer.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Frostbringer : Bow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/LegacyOfTheDreadLord.cs b/Projects/UOContent/Items/Weapons/Artifacts/LegacyOfTheDreadLord.cs index f8512843d..8c6bebbab 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/LegacyOfTheDreadLord.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/LegacyOfTheDreadLord.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class LegacyOfTheDreadLord : Bardiche { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/SerpentsFang.cs b/Projects/UOContent/Items/Weapons/Artifacts/SerpentsFang.cs index 516cc4bc0..8d7603efc 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/SerpentsFang.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/SerpentsFang.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SerpentsFang : Kryss { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/StaffOfTheMagi.cs b/Projects/UOContent/Items/Weapons/Artifacts/StaffOfTheMagi.cs index f4c993a95..35aa73085 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/StaffOfTheMagi.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/StaffOfTheMagi.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class StaffOfTheMagi : BlackStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/TheBeserkersMaul.cs b/Projects/UOContent/Items/Weapons/Artifacts/TheBeserkersMaul.cs index 76a166e97..10d86f619 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/TheBeserkersMaul.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/TheBeserkersMaul.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TheBeserkersMaul : Maul { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/TheDragonSlayer.cs b/Projects/UOContent/Items/Weapons/Artifacts/TheDragonSlayer.cs index cbdb46dc4..54c9c71a7 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/TheDragonSlayer.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/TheDragonSlayer.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TheDragonSlayer : Lance { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/TheDryadBow.cs b/Projects/UOContent/Items/Weapons/Artifacts/TheDryadBow.cs index f0cb1edf7..35f4a1282 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/TheDryadBow.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/TheDryadBow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TheDryadBow : Bow { private static readonly SkillName[] m_PossibleBonusSkills = diff --git a/Projects/UOContent/Items/Weapons/Artifacts/TheTaskmaster.cs b/Projects/UOContent/Items/Weapons/Artifacts/TheTaskmaster.cs index 7d4444026..36cb33b63 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/TheTaskmaster.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/TheTaskmaster.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TheTaskmaster : WarFork { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/TitansHammer.cs b/Projects/UOContent/Items/Weapons/Artifacts/TitansHammer.cs index 90c9ddda1..f2f717e79 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/TitansHammer.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/TitansHammer.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TitansHammer : WarHammer { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Artifacts/ZyronicClaw.cs b/Projects/UOContent/Items/Weapons/Artifacts/ZyronicClaw.cs index ffb46240b..eddc87e3d 100644 --- a/Projects/UOContent/Items/Weapons/Artifacts/ZyronicClaw.cs +++ b/Projects/UOContent/Items/Weapons/Artifacts/ZyronicClaw.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ZyronicClaw : ExecutionersAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Axes/Axe.cs b/Projects/UOContent/Items/Weapons/Axes/Axe.cs index f333739ee..71f47b3b5 100644 --- a/Projects/UOContent/Items/Weapons/Axes/Axe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/Axe.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF49, 0xF4a)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Axe : BaseAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Axes/BaseAxe.cs b/Projects/UOContent/Items/Weapons/Axes/BaseAxe.cs index 05087567e..1051e22c7 100644 --- a/Projects/UOContent/Items/Weapons/Axes/BaseAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/BaseAxe.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Engines.ConPVP; using Server.Engines.Harvest; @@ -12,7 +13,7 @@ namespace Server.Items bool Axe(Mobile from, BaseAxe axe); } - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseAxe : BaseMeleeWeapon { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Weapons/Axes/BattleAxe.cs b/Projects/UOContent/Items/Weapons/Axes/BattleAxe.cs index a27548485..00352dbd3 100644 --- a/Projects/UOContent/Items/Weapons/Axes/BattleAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/BattleAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0xF47, 0xF48)] public partial class BattleAxe : BaseAxe { diff --git a/Projects/UOContent/Items/Weapons/Axes/DoubleAxe.cs b/Projects/UOContent/Items/Weapons/Axes/DoubleAxe.cs index b16feeb88..fea645c8e 100644 --- a/Projects/UOContent/Items/Weapons/Axes/DoubleAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/DoubleAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0xf4b, 0xf4c)] public partial class DoubleAxe : BaseAxe { diff --git a/Projects/UOContent/Items/Weapons/Axes/DualShortAxes.cs b/Projects/UOContent/Items/Weapons/Axes/DualShortAxes.cs index d3dfb4d18..5bf018f2d 100644 --- a/Projects/UOContent/Items/Weapons/Axes/DualShortAxes.cs +++ b/Projects/UOContent/Items/Weapons/Axes/DualShortAxes.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x8FD, 0x4068)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class DualShortAxes : BaseAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Axes/ExecutionersAxe.cs b/Projects/UOContent/Items/Weapons/Axes/ExecutionersAxe.cs index ec5e4cd81..6302a26c0 100644 --- a/Projects/UOContent/Items/Weapons/Axes/ExecutionersAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/ExecutionersAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0xf45, 0xf46)] public partial class ExecutionersAxe : BaseAxe { diff --git a/Projects/UOContent/Items/Weapons/Axes/GuardianAxe.cs b/Projects/UOContent/Items/Weapons/Axes/GuardianAxe.cs index 8db584957..99fe86632 100644 --- a/Projects/UOContent/Items/Weapons/Axes/GuardianAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/GuardianAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class GuardianAxe : OrnateAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Axes/Hatchet.cs b/Projects/UOContent/Items/Weapons/Axes/Hatchet.cs index 45c538f5c..924a54891 100644 --- a/Projects/UOContent/Items/Weapons/Axes/Hatchet.cs +++ b/Projects/UOContent/Items/Weapons/Axes/Hatchet.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0xF43, 0xF44)] public partial class Hatchet : BaseAxe { diff --git a/Projects/UOContent/Items/Weapons/Axes/HeavyOrnateAxe.cs b/Projects/UOContent/Items/Weapons/Axes/HeavyOrnateAxe.cs index 77c75599c..5c9a43e78 100644 --- a/Projects/UOContent/Items/Weapons/Axes/HeavyOrnateAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/HeavyOrnateAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class HeavyOrnateAxe : OrnateAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Axes/LargeBattleAxe.cs b/Projects/UOContent/Items/Weapons/Axes/LargeBattleAxe.cs index c2b41c08d..37f6668f6 100644 --- a/Projects/UOContent/Items/Weapons/Axes/LargeBattleAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/LargeBattleAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13FB, 0x13FA)] public partial class LargeBattleAxe : BaseAxe { diff --git a/Projects/UOContent/Items/Weapons/Axes/Pickaxe.cs b/Projects/UOContent/Items/Weapons/Axes/Pickaxe.cs index 0ad19652c..07cac1b08 100644 --- a/Projects/UOContent/Items/Weapons/Axes/Pickaxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/Pickaxe.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.Harvest; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0xE86, 0xE85)] public partial class Pickaxe : BaseAxe, IUsesRemaining { diff --git a/Projects/UOContent/Items/Weapons/Axes/SingingAxe.cs b/Projects/UOContent/Items/Weapons/Axes/SingingAxe.cs index ac816d766..987cc0401 100644 --- a/Projects/UOContent/Items/Weapons/Axes/SingingAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/SingingAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SingingAxe : OrnateAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Axes/ThunderingAxe.cs b/Projects/UOContent/Items/Weapons/Axes/ThunderingAxe.cs index c75735cc5..fee1b8006 100644 --- a/Projects/UOContent/Items/Weapons/Axes/ThunderingAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/ThunderingAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ThunderingAxe : OrnateAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Axes/TwoHandedAxe.cs b/Projects/UOContent/Items/Weapons/Axes/TwoHandedAxe.cs index 1a11b2f63..1a87091b2 100644 --- a/Projects/UOContent/Items/Weapons/Axes/TwoHandedAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/TwoHandedAxe.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x1443, 0x1442)] public partial class TwoHandedAxe : BaseAxe { diff --git a/Projects/UOContent/Items/Weapons/Axes/WarAxe.cs b/Projects/UOContent/Items/Weapons/Axes/WarAxe.cs index ed7895871..b11db81e0 100644 --- a/Projects/UOContent/Items/Weapons/Axes/WarAxe.cs +++ b/Projects/UOContent/Items/Weapons/Axes/WarAxe.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.Harvest; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] [Flippable(0x13B0, 0x13AF)] public partial class WarAxe : BaseAxe { diff --git a/Projects/UOContent/Items/Weapons/Fists.cs b/Projects/UOContent/Items/Weapons/Fists.cs index e20c66c77..4a4696987 100644 --- a/Projects/UOContent/Items/Weapons/Fists.cs +++ b/Projects/UOContent/Items/Weapons/Fists.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; using Server.Engines.ConPVP; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Fists : BaseMeleeWeapon { public Fists() : base(0) diff --git a/Projects/UOContent/Items/Weapons/Knives/BaseKnife.cs b/Projects/UOContent/Items/Weapons/Knives/BaseKnife.cs index d9dd99bb2..febf56b00 100644 --- a/Projects/UOContent/Items/Weapons/Knives/BaseKnife.cs +++ b/Projects/UOContent/Items/Weapons/Knives/BaseKnife.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Targets; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseKnife : BaseMeleeWeapon { public BaseKnife(int itemID) : base(itemID) diff --git a/Projects/UOContent/Items/Weapons/Knives/ButcherKnife.cs b/Projects/UOContent/Items/Weapons/Knives/ButcherKnife.cs index 0812fd30e..19743996b 100644 --- a/Projects/UOContent/Items/Weapons/Knives/ButcherKnife.cs +++ b/Projects/UOContent/Items/Weapons/Knives/ButcherKnife.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x13F6, 0x13F7)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ButcherKnife : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Knives/Cleaver.cs b/Projects/UOContent/Items/Weapons/Knives/Cleaver.cs index 830cf58d0..1738cf81c 100644 --- a/Projects/UOContent/Items/Weapons/Knives/Cleaver.cs +++ b/Projects/UOContent/Items/Weapons/Knives/Cleaver.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xEC3, 0xEC2)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Cleaver : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Knives/Dagger.cs b/Projects/UOContent/Items/Weapons/Knives/Dagger.cs index db175fb13..fadcb7daf 100644 --- a/Projects/UOContent/Items/Weapons/Knives/Dagger.cs +++ b/Projects/UOContent/Items/Weapons/Knives/Dagger.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF52, 0xF51)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Dagger : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Knives/SkinningKnife.cs b/Projects/UOContent/Items/Weapons/Knives/SkinningKnife.cs index 70041398d..dedd24265 100644 --- a/Projects/UOContent/Items/Weapons/Knives/SkinningKnife.cs +++ b/Projects/UOContent/Items/Weapons/Knives/SkinningKnife.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xEC4, 0xEC5)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class SkinningKnife : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Knives/ThrowingDagger.cs b/Projects/UOContent/Items/Weapons/Knives/ThrowingDagger.cs index 8a2baf755..92ba5842c 100644 --- a/Projects/UOContent/Items/Weapons/Knives/ThrowingDagger.cs +++ b/Projects/UOContent/Items/Weapons/Knives/ThrowingDagger.cs @@ -1,10 +1,11 @@ using System; +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { [Flippable(0xF52, 0xF51)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ThrowingDagger : Item { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/BlightGrippedLongbow.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/BlightGrippedLongbow.cs index 70fda78d0..de7d6de37 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/BlightGrippedLongbow.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/BlightGrippedLongbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class BlightGrippedLongbow : ElvenCompositeLongbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ColdForgedBlade.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ColdForgedBlade.cs index 2eb3ed9b0..9cf54f71e 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ColdForgedBlade.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ColdForgedBlade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ColdForgedBlade : ElvenSpellblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/FaerieFire.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/FaerieFire.cs index 77d76c981..597942a57 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/FaerieFire.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/FaerieFire.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class FaerieFire : ElvenCompositeLongbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/LuminousRuneBlade.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/LuminousRuneBlade.cs index 230879940..df00c30ec 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/LuminousRuneBlade.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/LuminousRuneBlade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class LuminousRuneBlade : RuneBlade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/MischiefMaker.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/MischiefMaker.cs index cc1c5354e..f7770d0e0 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/MischiefMaker.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/MischiefMaker.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class MischiefMaker : MagicalShortbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/OverseerSunderedBlade.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/OverseerSunderedBlade.cs index 81587f840..1d7dac8e2 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/OverseerSunderedBlade.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/OverseerSunderedBlade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class OverseerSunderedBlade : RadiantScimitar { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/PhantomStaff.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/PhantomStaff.cs index f7617bfe3..c7ef49486 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/PhantomStaff.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/PhantomStaff.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class PhantomStaff : WildStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/RuneCarvingKnife.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/RuneCarvingKnife.cs index e1d850722..4ed88bdff 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/RuneCarvingKnife.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/RuneCarvingKnife.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class RuneCarvingKnife : AssassinSpike { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ShardTrasher.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ShardTrasher.cs index 6c1c6c73a..e883ff7cd 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ShardTrasher.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/ShardTrasher.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ShardThrasher : DiamondMace { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/SilvanisFeywoodBow.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/SilvanisFeywoodBow.cs index 22082ff89..d02d8c09d 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/SilvanisFeywoodBow.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/SilvanisFeywoodBow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SilvanisFeywoodBow : ElvenCompositeLongbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/TheNightReaper.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/TheNightReaper.cs index 2a2258fa7..1945e64d8 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/TheNightReaper.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Artifacts/TheNightReaper.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TheNightReaper : RepeatingCrossbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/AssassinSpike.cs b/Projects/UOContent/Items/Weapons/ML Weapons/AssassinSpike.cs index 7d39764d4..f0560945e 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/AssassinSpike.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/AssassinSpike.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D21, 0x2D2D)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class AssassinSpike : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/ButchersWarCleaver.cs b/Projects/UOContent/Items/Weapons/ML Weapons/ButchersWarCleaver.cs index 4afeed5c1..30ccfb29b 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/ButchersWarCleaver.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/ButchersWarCleaver.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ButchersWarCleaver : WarCleaver { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/DiamondMace.cs b/Projects/UOContent/Items/Weapons/ML Weapons/DiamondMace.cs index 9fbf8d9fa..453e67e19 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/DiamondMace.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/DiamondMace.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D24, 0x2D30)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class DiamondMace : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/ElvenCompositeLongbow.cs b/Projects/UOContent/Items/Weapons/ML Weapons/ElvenCompositeLongbow.cs index d0b4aa941..199c76d82 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/ElvenCompositeLongbow.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/ElvenCompositeLongbow.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0x2D1E, 0x2D2A)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenCompositeLongbow : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/ElvenMachete.cs b/Projects/UOContent/Items/Weapons/ML Weapons/ElvenMachete.cs index 6c47e6382..459c76a66 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/ElvenMachete.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/ElvenMachete.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D35, 0x2D29)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenMachete : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/ElvenSpellblade.cs b/Projects/UOContent/Items/Weapons/ML Weapons/ElvenSpellblade.cs index cb06ecc6c..ebe89b1a5 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/ElvenSpellblade.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/ElvenSpellblade.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D20, 0x2D2C)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class ElvenSpellblade : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/Leafblade.cs b/Projects/UOContent/Items/Weapons/ML Weapons/Leafblade.cs index 9153375fc..79fe3730f 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/Leafblade.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/Leafblade.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D22, 0x2D2E)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class Leafblade : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/MagicalShortbow.cs b/Projects/UOContent/Items/Weapons/ML Weapons/MagicalShortbow.cs index e51e3ca59..63f3e0ae0 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/MagicalShortbow.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/MagicalShortbow.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0x2D2B, 0x2D1F)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class MagicalShortbow : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/OrnateAxe.cs b/Projects/UOContent/Items/Weapons/ML Weapons/OrnateAxe.cs index f19f09ca7..1c4f89602 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/OrnateAxe.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/OrnateAxe.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D28, 0x2D34)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrnateAxe : BaseAxe { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/RadiantScimitar.cs b/Projects/UOContent/Items/Weapons/ML Weapons/RadiantScimitar.cs index 4f1c037be..6783f36d3 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/RadiantScimitar.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/RadiantScimitar.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D33, 0x2D27)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class RadiantScimitar : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/RuneBlade.cs b/Projects/UOContent/Items/Weapons/ML Weapons/RuneBlade.cs index d5a6bfa79..1adda77d6 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/RuneBlade.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/RuneBlade.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D32, 0x2D26)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class RuneBlade : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/WarCleaver.cs b/Projects/UOContent/Items/Weapons/ML Weapons/WarCleaver.cs index 679ab6773..153bf26b7 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/WarCleaver.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/WarCleaver.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D2F, 0x2D23)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class WarCleaver : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/ML Weapons/WildStaff.cs b/Projects/UOContent/Items/Weapons/ML Weapons/WildStaff.cs index a7cc68c0f..4f307bcaa 100644 --- a/Projects/UOContent/Items/Weapons/ML Weapons/WildStaff.cs +++ b/Projects/UOContent/Items/Weapons/ML Weapons/WildStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x2D25, 0x2D31)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class WildStaff : BaseStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/BaseBashing.cs b/Projects/UOContent/Items/Weapons/Maces/BaseBashing.cs index 4c2e7dc77..b9870332b 100644 --- a/Projects/UOContent/Items/Weapons/Maces/BaseBashing.cs +++ b/Projects/UOContent/Items/Weapons/Maces/BaseBashing.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.ConPVP; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseBashing : BaseMeleeWeapon { public BaseBashing(int itemID) : base(itemID) diff --git a/Projects/UOContent/Items/Weapons/Maces/Club.cs b/Projects/UOContent/Items/Weapons/Maces/Club.cs index bf192959c..a4b3333e3 100644 --- a/Projects/UOContent/Items/Weapons/Maces/Club.cs +++ b/Projects/UOContent/Items/Weapons/Maces/Club.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x13b4, 0x13b3)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Club : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/DiscMace.cs b/Projects/UOContent/Items/Weapons/Maces/DiscMace.cs index 7152cc377..de634920d 100644 --- a/Projects/UOContent/Items/Weapons/Maces/DiscMace.cs +++ b/Projects/UOContent/Items/Weapons/Maces/DiscMace.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x903, 0x406E)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class DiscMace : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/EmeraldMace.cs b/Projects/UOContent/Items/Weapons/Maces/EmeraldMace.cs index b76750f90..a166ad5ac 100644 --- a/Projects/UOContent/Items/Weapons/Maces/EmeraldMace.cs +++ b/Projects/UOContent/Items/Weapons/Maces/EmeraldMace.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class EmeraldMace : DiamondMace { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/FireworksWand.cs b/Projects/UOContent/Items/Weapons/Maces/FireworksWand.cs index 8210c2c7a..916a5a6be 100644 --- a/Projects/UOContent/Items/Weapons/Maces/FireworksWand.cs +++ b/Projects/UOContent/Items/Weapons/Maces/FireworksWand.cs @@ -1,8 +1,9 @@ using System; +using ModernUO.Serialization; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class FireworksWand : MagicWand { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Weapons/Maces/HammerPick.cs b/Projects/UOContent/Items/Weapons/Maces/HammerPick.cs index 99d0ed0d1..88a74b2aa 100644 --- a/Projects/UOContent/Items/Weapons/Maces/HammerPick.cs +++ b/Projects/UOContent/Items/Weapons/Maces/HammerPick.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x143D, 0x143C)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HammerPick : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/Mace.cs b/Projects/UOContent/Items/Weapons/Maces/Mace.cs index 5d47a060d..b362f04fe 100644 --- a/Projects/UOContent/Items/Weapons/Maces/Mace.cs +++ b/Projects/UOContent/Items/Weapons/Maces/Mace.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF5C, 0xF5D)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Mace : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/MagicWand.cs b/Projects/UOContent/Items/Weapons/Maces/MagicWand.cs index a50669b31..31e92e79f 100644 --- a/Projects/UOContent/Items/Weapons/Maces/MagicWand.cs +++ b/Projects/UOContent/Items/Weapons/Maces/MagicWand.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class MagicWand : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/Maul.cs b/Projects/UOContent/Items/Weapons/Maces/Maul.cs index 6252761a9..ee3054c76 100644 --- a/Projects/UOContent/Items/Weapons/Maces/Maul.cs +++ b/Projects/UOContent/Items/Weapons/Maces/Maul.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x143B, 0x143A)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Maul : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/RubyMace.cs b/Projects/UOContent/Items/Weapons/Maces/RubyMace.cs index 27de75f36..f7d559314 100644 --- a/Projects/UOContent/Items/Weapons/Maces/RubyMace.cs +++ b/Projects/UOContent/Items/Weapons/Maces/RubyMace.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class RubyMace : DiamondMace { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/SapphireMace.cs b/Projects/UOContent/Items/Weapons/Maces/SapphireMace.cs index 7a4c8ef66..c85732798 100644 --- a/Projects/UOContent/Items/Weapons/Maces/SapphireMace.cs +++ b/Projects/UOContent/Items/Weapons/Maces/SapphireMace.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SapphireMace : DiamondMace { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/Scepter.cs b/Projects/UOContent/Items/Weapons/Maces/Scepter.cs index bf19702cb..d48793e15 100644 --- a/Projects/UOContent/Items/Weapons/Maces/Scepter.cs +++ b/Projects/UOContent/Items/Weapons/Maces/Scepter.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x26BC, 0x26C6)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Scepter : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/SilverEtchedMace.cs b/Projects/UOContent/Items/Weapons/Maces/SilverEtchedMace.cs index 804838cae..4e3e48228 100644 --- a/Projects/UOContent/Items/Weapons/Maces/SilverEtchedMace.cs +++ b/Projects/UOContent/Items/Weapons/Maces/SilverEtchedMace.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SilverEtchedMace : DiamondMace { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/WarHammer.cs b/Projects/UOContent/Items/Weapons/Maces/WarHammer.cs index 591a64ae3..dd5ab6944 100644 --- a/Projects/UOContent/Items/Weapons/Maces/WarHammer.cs +++ b/Projects/UOContent/Items/Weapons/Maces/WarHammer.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x1439, 0x1438)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WarHammer : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Maces/WarMace.cs b/Projects/UOContent/Items/Weapons/Maces/WarMace.cs index 45527f97e..0ed10402c 100644 --- a/Projects/UOContent/Items/Weapons/Maces/WarMace.cs +++ b/Projects/UOContent/Items/Weapons/Maces/WarMace.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x1407, 0x1406)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WarMace : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/PoleArms/Bardiche.cs b/Projects/UOContent/Items/Weapons/PoleArms/Bardiche.cs index 2f7601fb1..a19bc33c5 100644 --- a/Projects/UOContent/Items/Weapons/PoleArms/Bardiche.cs +++ b/Projects/UOContent/Items/Weapons/PoleArms/Bardiche.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF4D, 0xF4E)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bardiche : BasePoleArm { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/PoleArms/BasePoleArm.cs b/Projects/UOContent/Items/Weapons/PoleArms/BasePoleArm.cs index cb960208d..ea56669ff 100644 --- a/Projects/UOContent/Items/Weapons/PoleArms/BasePoleArm.cs +++ b/Projects/UOContent/Items/Weapons/PoleArms/BasePoleArm.cs @@ -1,12 +1,13 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.ContextMenus; using Server.Engines.ConPVP; using Server.Engines.Harvest; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BasePoleArm : BaseMeleeWeapon, IUsesRemaining { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Weapons/PoleArms/Halberd.cs b/Projects/UOContent/Items/Weapons/PoleArms/Halberd.cs index 0ed0cf584..9356842a5 100644 --- a/Projects/UOContent/Items/Weapons/PoleArms/Halberd.cs +++ b/Projects/UOContent/Items/Weapons/PoleArms/Halberd.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x143E, 0x143F)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Halberd : BasePoleArm { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/PoleArms/Scythe.cs b/Projects/UOContent/Items/Weapons/PoleArms/Scythe.cs index 18f802927..62038c4d4 100644 --- a/Projects/UOContent/Items/Weapons/PoleArms/Scythe.cs +++ b/Projects/UOContent/Items/Weapons/PoleArms/Scythe.cs @@ -1,9 +1,10 @@ +using ModernUO.Serialization; using Server.Engines.Harvest; namespace Server.Items { [Flippable(0x26BA, 0x26C4)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Scythe : BasePoleArm { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/AssassinsShortbow.cs b/Projects/UOContent/Items/Weapons/Ranged/AssassinsShortbow.cs index 802b34385..ea2c2411e 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/AssassinsShortbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/AssassinsShortbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class AssassinsShortbow : MagicalShortbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/BarbedLongbow.cs b/Projects/UOContent/Items/Weapons/Ranged/BarbedLongbow.cs index 7fdf8f1bd..c27d6071b 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/BarbedLongbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/BarbedLongbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class BarbedLongbow : ElvenCompositeLongbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/BaseRanged.cs b/Projects/UOContent/Items/Weapons/Ranged/BaseRanged.cs index 05f3bf3da..f4cdc12bc 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/BaseRanged.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/BaseRanged.cs @@ -1,11 +1,12 @@ using System; +using ModernUO.Serialization; using Server.Mobiles; using Server.Network; using Server.Spells; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseRanged : BaseMeleeWeapon { [SerializableField(0)] diff --git a/Projects/UOContent/Items/Weapons/Ranged/Bow.cs b/Projects/UOContent/Items/Weapons/Ranged/Bow.cs index b5940a5d4..400d2bf8a 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/Bow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/Bow.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0x13B2, 0x13B1)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bow : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/CompositeBow.cs b/Projects/UOContent/Items/Weapons/Ranged/CompositeBow.cs index 19b1ebf28..58515ae4c 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/CompositeBow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/CompositeBow.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0x26C2, 0x26CC)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CompositeBow : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/Crossbow.cs b/Projects/UOContent/Items/Weapons/Ranged/Crossbow.cs index 05675d117..cccfd0103 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/Crossbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/Crossbow.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0xF50, 0xF4F)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Crossbow : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/FrozenLongbow.cs b/Projects/UOContent/Items/Weapons/Ranged/FrozenLongbow.cs index e372369df..74829ed1d 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/FrozenLongbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/FrozenLongbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class FrozenLongbow : ElvenCompositeLongbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/HeavyCrossbow.cs b/Projects/UOContent/Items/Weapons/Ranged/HeavyCrossbow.cs index e41923e75..84679ce07 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/HeavyCrossbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/HeavyCrossbow.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0x13FD, 0x13FC)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class HeavyCrossbow : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/JukaBow.cs b/Projects/UOContent/Items/Weapons/Ranged/JukaBow.cs index 658c9d39c..763d2b373 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/JukaBow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/JukaBow.cs @@ -1,9 +1,10 @@ +using ModernUO.Serialization; using Server.Targeting; namespace Server.Items { [Flippable(0x13B2, 0x13B1)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class JukaBow : Bow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/LightweightShortbow.cs b/Projects/UOContent/Items/Weapons/Ranged/LightweightShortbow.cs index d450d14d6..102ef3677 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/LightweightShortbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/LightweightShortbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class LightweightShortbow : MagicalShortbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/LongbowOfMight.cs b/Projects/UOContent/Items/Weapons/Ranged/LongbowOfMight.cs index c45a14965..20dd19f29 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/LongbowOfMight.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/LongbowOfMight.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class LongbowOfMight : ElvenCompositeLongbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/MysticalShortbow.cs b/Projects/UOContent/Items/Weapons/Ranged/MysticalShortbow.cs index 83526b00c..4ffea36ae 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/MysticalShortbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/MysticalShortbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class MysticalShortbow : MagicalShortbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/RangersShortbow.cs b/Projects/UOContent/Items/Weapons/Ranged/RangersShortbow.cs index 125a18efb..63cd5f80e 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/RangersShortbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/RangersShortbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class RangersShortbow : MagicalShortbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/RepeatingCrossbow.cs b/Projects/UOContent/Items/Weapons/Ranged/RepeatingCrossbow.cs index 06978f985..71bac450f 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/RepeatingCrossbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/RepeatingCrossbow.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0x26C3, 0x26CD)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class RepeatingCrossbow : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Ranged/SlayerLongbow.cs b/Projects/UOContent/Items/Weapons/Ranged/SlayerLongbow.cs index f0ceb5161..f7e310ca8 100644 --- a/Projects/UOContent/Items/Weapons/Ranged/SlayerLongbow.cs +++ b/Projects/UOContent/Items/Weapons/Ranged/SlayerLongbow.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SlayerLongbow : ElvenCompositeLongbow { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Bokuto.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Bokuto.cs index 8abd83332..1f3f9db30 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Bokuto.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Bokuto.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27A8, 0x27F3)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Bokuto : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Daisho.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Daisho.cs index 0eef9f732..136897fdf 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Daisho.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Daisho.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27A9, 0x27F4)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Daisho : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Kama.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Kama.cs index aad267a06..23d054bb6 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Kama.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Kama.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27AD, 0x27F8)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Kama : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Lajatang.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Lajatang.cs index 7c75dd00a..963b1219f 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Lajatang.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Lajatang.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27A7, 0x27F2)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Lajatang : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/NoDachi.cs b/Projects/UOContent/Items/Weapons/SE Weapons/NoDachi.cs index 3e2f35343..7d61ea419 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/NoDachi.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/NoDachi.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27A2, 0x27ED)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class NoDachi : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Nunchaku.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Nunchaku.cs index 7018a110f..2e5bf689c 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Nunchaku.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Nunchaku.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27AE, 0x27F9)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Nunchaku : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Sai.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Sai.cs index 94d8357af..df60344a2 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Sai.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Sai.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27AF, 0x27FA)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Sai : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Tekagi.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Tekagi.cs index 2e8cda833..388186818 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Tekagi.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Tekagi.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27Ab, 0x27F6)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tekagi : BaseKnife { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Tessen.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Tessen.cs index 7ad363f5c..442ae9e55 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Tessen.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Tessen.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27A3, 0x27EE)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tessen : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Tetsubo.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Tetsubo.cs index 7d2cfa6d3..ab32c41a4 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Tetsubo.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Tetsubo.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27A6, 0x27F1)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Tetsubo : BaseBashing { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Wakizashi.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Wakizashi.cs index ab3b75c33..5bb6b0fd4 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Wakizashi.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Wakizashi.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x27A4, 0x27EF)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Wakizashi : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SE Weapons/Yumi.cs b/Projects/UOContent/Items/Weapons/SE Weapons/Yumi.cs index d1f69eaf2..56ee5b3a3 100644 --- a/Projects/UOContent/Items/Weapons/SE Weapons/Yumi.cs +++ b/Projects/UOContent/Items/Weapons/SE Weapons/Yumi.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; namespace Server.Items { [Flippable(0x27A5, 0x27F0)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Yumi : BaseRanged { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/BaseSpear.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/BaseSpear.cs index 0a1c911f4..574e2749d 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/BaseSpear.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/BaseSpear.cs @@ -1,9 +1,10 @@ using System; +using ModernUO.Serialization; using Server.Engines.ConPVP; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseSpear : BaseMeleeWeapon { public BaseSpear(int itemID) : base(itemID) diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/BladedStaff.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/BladedStaff.cs index f11dbe9cb..102ceb361 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/BladedStaff.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/BladedStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x26BD, 0x26C7)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BladedStaff : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/DoubleBladedStaff.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/DoubleBladedStaff.cs index cb9d3e603..7d7bfc05a 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/DoubleBladedStaff.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/DoubleBladedStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x26BF, 0x26C9)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class DoubleBladedStaff : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/DualPointedSpear.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/DualPointedSpear.cs index 2aee19229..275800cd4 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/DualPointedSpear.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/DualPointedSpear.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x904, 0x406D)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class DualPointedSpear : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/Pike.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/Pike.cs index 27754df5b..6c8b724c9 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/Pike.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/Pike.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x26BE, 0x26C8)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Pike : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/Pitchfork.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/Pitchfork.cs index b3fdd2d1b..fc3ac6a21 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/Pitchfork.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/Pitchfork.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xE87, 0xE88)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Pitchfork : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/ShortSpear.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/ShortSpear.cs index 86e914010..32b566a0b 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/ShortSpear.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/ShortSpear.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x1403, 0x1402)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShortSpear : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/Spear.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/Spear.cs index 98d2ee1c2..26d3e2636 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/Spear.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/Spear.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF62, 0xF63)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Spear : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/TribalSpear.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/TribalSpear.cs index d2164a0d8..3f3f17ecc 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/TribalSpear.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/TribalSpear.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF62, 0xF63)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class TribalSpear : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/SpearsAndForks/WarFork.cs b/Projects/UOContent/Items/Weapons/SpearsAndForks/WarFork.cs index 9857de710..94b672b63 100644 --- a/Projects/UOContent/Items/Weapons/SpearsAndForks/WarFork.cs +++ b/Projects/UOContent/Items/Weapons/SpearsAndForks/WarFork.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x1405, 0x1404)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class WarFork : BaseSpear { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Staves/BaseStaff.cs b/Projects/UOContent/Items/Weapons/Staves/BaseStaff.cs index 6686b9cc2..57ee0a7a1 100644 --- a/Projects/UOContent/Items/Weapons/Staves/BaseStaff.cs +++ b/Projects/UOContent/Items/Weapons/Staves/BaseStaff.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseStaff : BaseMeleeWeapon { public BaseStaff(int itemID) : base(itemID) diff --git a/Projects/UOContent/Items/Weapons/Staves/BlackStaff.cs b/Projects/UOContent/Items/Weapons/Staves/BlackStaff.cs index 6b26eb0f5..a4508680c 100644 --- a/Projects/UOContent/Items/Weapons/Staves/BlackStaff.cs +++ b/Projects/UOContent/Items/Weapons/Staves/BlackStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xDF1, 0xDF0)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BlackStaff : BaseStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Staves/GlacialStaff.cs b/Projects/UOContent/Items/Weapons/Staves/GlacialStaff.cs index 02fd7936b..3f66a7c16 100644 --- a/Projects/UOContent/Items/Weapons/Staves/GlacialStaff.cs +++ b/Projects/UOContent/Items/Weapons/Staves/GlacialStaff.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GlacialStaff : BlackStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Staves/GlassStaff.cs b/Projects/UOContent/Items/Weapons/Staves/GlassStaff.cs index 03d3b0bbc..db2250053 100644 --- a/Projects/UOContent/Items/Weapons/Staves/GlassStaff.cs +++ b/Projects/UOContent/Items/Weapons/Staves/GlassStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x905, 0x4070)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class GlassStaff : BaseStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Staves/GnarledStaff.cs b/Projects/UOContent/Items/Weapons/Staves/GnarledStaff.cs index 8ca5f06a6..3611907b5 100644 --- a/Projects/UOContent/Items/Weapons/Staves/GnarledStaff.cs +++ b/Projects/UOContent/Items/Weapons/Staves/GnarledStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x13F8, 0x13F9)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class GnarledStaff : BaseStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Staves/QuarterStaff.cs b/Projects/UOContent/Items/Weapons/Staves/QuarterStaff.cs index bb65230ad..e0d5c567d 100644 --- a/Projects/UOContent/Items/Weapons/Staves/QuarterStaff.cs +++ b/Projects/UOContent/Items/Weapons/Staves/QuarterStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xE89, 0xE8a)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class QuarterStaff : BaseStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Staves/SerpentstoneStaff.cs b/Projects/UOContent/Items/Weapons/Staves/SerpentstoneStaff.cs index a75b82ae4..2caebfb21 100644 --- a/Projects/UOContent/Items/Weapons/Staves/SerpentstoneStaff.cs +++ b/Projects/UOContent/Items/Weapons/Staves/SerpentstoneStaff.cs @@ -1,8 +1,10 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x906, 0x406F)] [TypeAlias("Server.Items.SerpentStoneStaff")] - [Serializable(0)] + [SerializationGenerator(0)] public partial class SerpentstoneStaff : BaseStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Staves/ShepherdsCrook.cs b/Projects/UOContent/Items/Weapons/Staves/ShepherdsCrook.cs index 054c53c07..13b1cd9f5 100644 --- a/Projects/UOContent/Items/Weapons/Staves/ShepherdsCrook.cs +++ b/Projects/UOContent/Items/Weapons/Staves/ShepherdsCrook.cs @@ -1,4 +1,5 @@ using System; +using ModernUO.Serialization; using Server.Engines.CannedEvil; using Server.Mobiles; using Server.Network; @@ -7,7 +8,7 @@ using Server.Targeting; namespace Server.Items { [Flippable(0xE81, 0xE82)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ShepherdsCrook : BaseStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/AdventurersMachete.cs b/Projects/UOContent/Items/Weapons/Swords/AdventurersMachete.cs index 8415307c7..b721a3cb1 100644 --- a/Projects/UOContent/Items/Weapons/Swords/AdventurersMachete.cs +++ b/Projects/UOContent/Items/Weapons/Swords/AdventurersMachete.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class AdventurersMachete : ElvenMachete { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/BaseSword.cs b/Projects/UOContent/Items/Weapons/Swords/BaseSword.cs index 6527c8de8..ffe129d16 100644 --- a/Projects/UOContent/Items/Weapons/Swords/BaseSword.cs +++ b/Projects/UOContent/Items/Weapons/Swords/BaseSword.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Targets; namespace Server.Items { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public abstract partial class BaseSword : BaseMeleeWeapon { public BaseSword(int itemID) : base(itemID) diff --git a/Projects/UOContent/Items/Weapons/Swords/BloodBlade.cs b/Projects/UOContent/Items/Weapons/Swords/BloodBlade.cs index 4bcf21831..21ba7e61f 100644 --- a/Projects/UOContent/Items/Weapons/Swords/BloodBlade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/BloodBlade.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x8FE, 0x4072)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class BloodBlade : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/BoneHarvester.cs b/Projects/UOContent/Items/Weapons/Swords/BoneHarvester.cs index 6eb52ee86..8c3d9fbd2 100644 --- a/Projects/UOContent/Items/Weapons/Swords/BoneHarvester.cs +++ b/Projects/UOContent/Items/Weapons/Swords/BoneHarvester.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x26BB, 0x26C5)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class BoneHarvester : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/BoneMachete.cs b/Projects/UOContent/Items/Weapons/Swords/BoneMachete.cs index 247dfbb8a..80981472e 100644 --- a/Projects/UOContent/Items/Weapons/Swords/BoneMachete.cs +++ b/Projects/UOContent/Items/Weapons/Swords/BoneMachete.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Engines.MLQuests.Items; namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class BoneMachete : ElvenMachete, ITicket { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Broadsword.cs b/Projects/UOContent/Items/Weapons/Swords/Broadsword.cs index 2ed8317af..e980b11ad 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Broadsword.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Broadsword.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF5E, 0xF5F)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Broadsword : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/ChargedAssassinSpike.cs b/Projects/UOContent/Items/Weapons/Swords/ChargedAssassinSpike.cs index e71c77e21..1e6aac8fe 100644 --- a/Projects/UOContent/Items/Weapons/Swords/ChargedAssassinSpike.cs +++ b/Projects/UOContent/Items/Weapons/Swords/ChargedAssassinSpike.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ChargedAssassinSpike : AssassinSpike { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/CorruptedRuneBlade.cs b/Projects/UOContent/Items/Weapons/Swords/CorruptedRuneBlade.cs index 934dd5304..60a0aec08 100644 --- a/Projects/UOContent/Items/Weapons/Swords/CorruptedRuneBlade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/CorruptedRuneBlade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class CorruptedRuneBlade : RuneBlade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/CrescentBlade.cs b/Projects/UOContent/Items/Weapons/Swords/CrescentBlade.cs index a20e948b1..7bb7f1470 100644 --- a/Projects/UOContent/Items/Weapons/Swords/CrescentBlade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/CrescentBlade.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x26C1, 0x26CB)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class CrescentBlade : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Cutlass.cs b/Projects/UOContent/Items/Weapons/Swords/Cutlass.cs index 49782febf..922c1fd04 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Cutlass.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Cutlass.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x1441, 0x1440)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Cutlass : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/DarkglowScimitar.cs b/Projects/UOContent/Items/Weapons/Swords/DarkglowScimitar.cs index e57b39401..9fc2684f3 100644 --- a/Projects/UOContent/Items/Weapons/Swords/DarkglowScimitar.cs +++ b/Projects/UOContent/Items/Weapons/Swords/DarkglowScimitar.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class DarkglowScimitar : RadiantScimitar { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/DiseasedMachete.cs b/Projects/UOContent/Items/Weapons/Swords/DiseasedMachete.cs index e4bacc043..3a21a070f 100644 --- a/Projects/UOContent/Items/Weapons/Swords/DiseasedMachete.cs +++ b/Projects/UOContent/Items/Weapons/Swords/DiseasedMachete.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class DiseasedMachete : ElvenMachete { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/DreadSword.cs b/Projects/UOContent/Items/Weapons/Swords/DreadSword.cs index 9f2df661f..4b628fe20 100644 --- a/Projects/UOContent/Items/Weapons/Swords/DreadSword.cs +++ b/Projects/UOContent/Items/Weapons/Swords/DreadSword.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x90B, 0x4074)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class DreadSword : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/FierySpellblade.cs b/Projects/UOContent/Items/Weapons/Swords/FierySpellblade.cs index ffa064f9e..43428bb9f 100644 --- a/Projects/UOContent/Items/Weapons/Swords/FierySpellblade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/FierySpellblade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class FierySpellblade : ElvenSpellblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/GargishTalwar.cs b/Projects/UOContent/Items/Weapons/Swords/GargishTalwar.cs index 713e684b6..c78c49db2 100644 --- a/Projects/UOContent/Items/Weapons/Swords/GargishTalwar.cs +++ b/Projects/UOContent/Items/Weapons/Swords/GargishTalwar.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x908, 0x4075)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class GargishTalwar : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/GlassSword.cs b/Projects/UOContent/Items/Weapons/Swords/GlassSword.cs index 1bb290332..e821588ab 100644 --- a/Projects/UOContent/Items/Weapons/Swords/GlassSword.cs +++ b/Projects/UOContent/Items/Weapons/Swords/GlassSword.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x90C, 0x4073)] - [Serializable(0)] + [SerializationGenerator(0)] public partial class GlassSword : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/IcyScimitar.cs b/Projects/UOContent/Items/Weapons/Swords/IcyScimitar.cs index 20fb37ac4..8e256e1ab 100644 --- a/Projects/UOContent/Items/Weapons/Swords/IcyScimitar.cs +++ b/Projects/UOContent/Items/Weapons/Swords/IcyScimitar.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class IcyScimitar : RadiantScimitar { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/IcySpellblade.cs b/Projects/UOContent/Items/Weapons/Swords/IcySpellblade.cs index e29c8449d..8b51dcc13 100644 --- a/Projects/UOContent/Items/Weapons/Swords/IcySpellblade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/IcySpellblade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class IcySpellblade : ElvenSpellblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Katana.cs b/Projects/UOContent/Items/Weapons/Swords/Katana.cs index 80c4507c9..34e4110eb 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Katana.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Katana.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x13FF, 0x13FE)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Katana : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/KnightsWarCleaver.cs b/Projects/UOContent/Items/Weapons/Swords/KnightsWarCleaver.cs index 384fe615f..4533600b8 100644 --- a/Projects/UOContent/Items/Weapons/Swords/KnightsWarCleaver.cs +++ b/Projects/UOContent/Items/Weapons/Swords/KnightsWarCleaver.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class KnightsWarCleaver : WarCleaver { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Kryss.cs b/Projects/UOContent/Items/Weapons/Swords/Kryss.cs index ff508f726..e6ae7a663 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Kryss.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Kryss.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x1401, 0x1400)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Kryss : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Lance.cs b/Projects/UOContent/Items/Weapons/Swords/Lance.cs index 71ca9ba82..3520855ca 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Lance.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Lance.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x26C0, 0x26CA)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Lance : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/LeafbladeOfEase.cs b/Projects/UOContent/Items/Weapons/Swords/LeafbladeOfEase.cs index c1aaadace..64859eb2f 100644 --- a/Projects/UOContent/Items/Weapons/Swords/LeafbladeOfEase.cs +++ b/Projects/UOContent/Items/Weapons/Swords/LeafbladeOfEase.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class LeafbladeOfEase : Leafblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Longsword.cs b/Projects/UOContent/Items/Weapons/Swords/Longsword.cs index 039f6fbbb..df3310606 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Longsword.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Longsword.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0xF61, 0xF60)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Longsword : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Luckblade.cs b/Projects/UOContent/Items/Weapons/Swords/Luckblade.cs index 14d9a0f72..65d2ebd58 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Luckblade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Luckblade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class Luckblade : Leafblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/MacheteOfDefense.cs b/Projects/UOContent/Items/Weapons/Swords/MacheteOfDefense.cs index 8a06374c9..b4c985370 100644 --- a/Projects/UOContent/Items/Weapons/Swords/MacheteOfDefense.cs +++ b/Projects/UOContent/Items/Weapons/Swords/MacheteOfDefense.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class MacheteOfDefense : ElvenMachete { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/MagekillerAssassinSpike.cs b/Projects/UOContent/Items/Weapons/Swords/MagekillerAssassinSpike.cs index 081a62789..db87b7890 100644 --- a/Projects/UOContent/Items/Weapons/Swords/MagekillerAssassinSpike.cs +++ b/Projects/UOContent/Items/Weapons/Swords/MagekillerAssassinSpike.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class MagekillerAssassinSpike : AssassinSpike { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/MagekillerLeafblade.cs b/Projects/UOContent/Items/Weapons/Swords/MagekillerLeafblade.cs index b65e1c134..66c1fc1af 100644 --- a/Projects/UOContent/Items/Weapons/Swords/MagekillerLeafblade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/MagekillerLeafblade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class MagekillerLeafblade : Leafblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/MagesRuneBlade.cs b/Projects/UOContent/Items/Weapons/Swords/MagesRuneBlade.cs index 2d36fbab8..2b06addb3 100644 --- a/Projects/UOContent/Items/Weapons/Swords/MagesRuneBlade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/MagesRuneBlade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class MagesRuneBlade : RuneBlade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/OrcishMachete.cs b/Projects/UOContent/Items/Weapons/Swords/OrcishMachete.cs index 3db06037d..e1da83502 100644 --- a/Projects/UOContent/Items/Weapons/Swords/OrcishMachete.cs +++ b/Projects/UOContent/Items/Weapons/Swords/OrcishMachete.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class OrcishMachete : ElvenMachete { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/RuneBladeOfKnowledge.cs b/Projects/UOContent/Items/Weapons/Swords/RuneBladeOfKnowledge.cs index b98243b02..c9b948cfd 100644 --- a/Projects/UOContent/Items/Weapons/Swords/RuneBladeOfKnowledge.cs +++ b/Projects/UOContent/Items/Weapons/Swords/RuneBladeOfKnowledge.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class RuneBladeOfKnowledge : RuneBlade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Runesabre.cs b/Projects/UOContent/Items/Weapons/Swords/Runesabre.cs index ebf11c10e..584355ac3 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Runesabre.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Runesabre.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class Runesabre : RuneBlade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/Scimitar.cs b/Projects/UOContent/Items/Weapons/Swords/Scimitar.cs index d23458660..d49112d38 100644 --- a/Projects/UOContent/Items/Weapons/Swords/Scimitar.cs +++ b/Projects/UOContent/Items/Weapons/Swords/Scimitar.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x13B6, 0x13B5)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class Scimitar : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/SerratedWarCleaver.cs b/Projects/UOContent/Items/Weapons/Swords/SerratedWarCleaver.cs index 688741bf7..2c94eb4f3 100644 --- a/Projects/UOContent/Items/Weapons/Swords/SerratedWarCleaver.cs +++ b/Projects/UOContent/Items/Weapons/Swords/SerratedWarCleaver.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SerratedWarCleaver : WarCleaver { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/SpellbladeOfDefense.cs b/Projects/UOContent/Items/Weapons/Swords/SpellbladeOfDefense.cs index 3534d1740..bb68850d2 100644 --- a/Projects/UOContent/Items/Weapons/Swords/SpellbladeOfDefense.cs +++ b/Projects/UOContent/Items/Weapons/Swords/SpellbladeOfDefense.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class SpellbladeOfDefense : ElvenSpellblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/ThinLongsword.cs b/Projects/UOContent/Items/Weapons/Swords/ThinLongsword.cs index ee8298272..0e17985ca 100644 --- a/Projects/UOContent/Items/Weapons/Swords/ThinLongsword.cs +++ b/Projects/UOContent/Items/Weapons/Swords/ThinLongsword.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x13B8, 0x13B7)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class ThinLongsword : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/TrueAssassinSpike.cs b/Projects/UOContent/Items/Weapons/Swords/TrueAssassinSpike.cs index dae410257..c701b007b 100644 --- a/Projects/UOContent/Items/Weapons/Swords/TrueAssassinSpike.cs +++ b/Projects/UOContent/Items/Weapons/Swords/TrueAssassinSpike.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TrueAssassinSpike : AssassinSpike { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/TrueLeafblade.cs b/Projects/UOContent/Items/Weapons/Swords/TrueLeafblade.cs index afbbfbe0c..846966093 100644 --- a/Projects/UOContent/Items/Weapons/Swords/TrueLeafblade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/TrueLeafblade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TrueLeafblade : Leafblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/TrueRadiantScimitar.cs b/Projects/UOContent/Items/Weapons/Swords/TrueRadiantScimitar.cs index 8442d7b26..6582519bc 100644 --- a/Projects/UOContent/Items/Weapons/Swords/TrueRadiantScimitar.cs +++ b/Projects/UOContent/Items/Weapons/Swords/TrueRadiantScimitar.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TrueRadiantScimitar : RadiantScimitar { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/TrueSpellblade.cs b/Projects/UOContent/Items/Weapons/Swords/TrueSpellblade.cs index 5079243c3..06430b24a 100644 --- a/Projects/UOContent/Items/Weapons/Swords/TrueSpellblade.cs +++ b/Projects/UOContent/Items/Weapons/Swords/TrueSpellblade.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TrueSpellblade : ElvenSpellblade { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/TrueWarCleaver.cs b/Projects/UOContent/Items/Weapons/Swords/TrueWarCleaver.cs index 423d995bb..fd5c5c2a7 100644 --- a/Projects/UOContent/Items/Weapons/Swords/TrueWarCleaver.cs +++ b/Projects/UOContent/Items/Weapons/Swords/TrueWarCleaver.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TrueWarCleaver : WarCleaver { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/TwinklingScimitar.cs b/Projects/UOContent/Items/Weapons/Swords/TwinklingScimitar.cs index bdfee5f2b..eac934560 100644 --- a/Projects/UOContent/Items/Weapons/Swords/TwinklingScimitar.cs +++ b/Projects/UOContent/Items/Weapons/Swords/TwinklingScimitar.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class TwinklingScimitar : RadiantScimitar { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/VikingSword.cs b/Projects/UOContent/Items/Weapons/Swords/VikingSword.cs index 422be352a..83c6f4de9 100644 --- a/Projects/UOContent/Items/Weapons/Swords/VikingSword.cs +++ b/Projects/UOContent/Items/Weapons/Swords/VikingSword.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { [Flippable(0x13B9, 0x13Ba)] - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class VikingSword : BaseSword { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Swords/WoundingAssassinSpike.cs b/Projects/UOContent/Items/Weapons/Swords/WoundingAssassinSpike.cs index fa5615838..96ae8721d 100644 --- a/Projects/UOContent/Items/Weapons/Swords/WoundingAssassinSpike.cs +++ b/Projects/UOContent/Items/Weapons/Swords/WoundingAssassinSpike.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class WoundingAssassinSpike : AssassinSpike { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Wooden/AncientWildStaff.cs b/Projects/UOContent/Items/Weapons/Wooden/AncientWildStaff.cs index d4ef499b6..277599f81 100644 --- a/Projects/UOContent/Items/Weapons/Wooden/AncientWildStaff.cs +++ b/Projects/UOContent/Items/Weapons/Wooden/AncientWildStaff.cs @@ -1,7 +1,9 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class AncientWildStaff : WildStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Wooden/ArcanistsWildStaff.cs b/Projects/UOContent/Items/Weapons/Wooden/ArcanistsWildStaff.cs index d8e14ccd2..19864932e 100644 --- a/Projects/UOContent/Items/Weapons/Wooden/ArcanistsWildStaff.cs +++ b/Projects/UOContent/Items/Weapons/Wooden/ArcanistsWildStaff.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ArcanistsWildStaff : WildStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Wooden/HardenedWildStaff.cs b/Projects/UOContent/Items/Weapons/Wooden/HardenedWildStaff.cs index 522b719b4..72c251be1 100644 --- a/Projects/UOContent/Items/Weapons/Wooden/HardenedWildStaff.cs +++ b/Projects/UOContent/Items/Weapons/Wooden/HardenedWildStaff.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class HardenedWildStaff : WildStaff { [Constructible] diff --git a/Projects/UOContent/Items/Weapons/Wooden/ThornedWildStaff.cs b/Projects/UOContent/Items/Weapons/Wooden/ThornedWildStaff.cs index 6fc83d763..3f0bdce7f 100644 --- a/Projects/UOContent/Items/Weapons/Wooden/ThornedWildStaff.cs +++ b/Projects/UOContent/Items/Weapons/Wooden/ThornedWildStaff.cs @@ -1,6 +1,8 @@ +using ModernUO.Serialization; + namespace Server.Items { - [Serializable(0)] + [SerializationGenerator(0)] public partial class ThornedWildStaff : WildStaff { [Constructible] diff --git a/Projects/UOContent/Migrations/Server.Items.Aquarium.v4.json b/Projects/UOContent/Migrations/Server.Items.Aquarium.v4.json index 6cd8c06de..142c61178 100644 --- a/Projects/UOContent/Migrations/Server.Items.Aquarium.v4.json +++ b/Projects/UOContent/Migrations/Server.Items.Aquarium.v4.json @@ -31,7 +31,7 @@ "type": "Server.Items.AquariumState", "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -39,7 +39,7 @@ "type": "Server.Items.AquariumState", "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { diff --git a/Projects/UOContent/Migrations/Server.Items.BaseArmor.v8.json b/Projects/UOContent/Migrations/Server.Items.BaseArmor.v8.json index c81b88b8f..8ce625193 100644 --- a/Projects/UOContent/Migrations/Server.Items.BaseArmor.v8.json +++ b/Projects/UOContent/Migrations/Server.Items.BaseArmor.v8.json @@ -8,7 +8,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -17,7 +17,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -197,7 +197,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -210,4 +210,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/Projects/UOContent/Migrations/Server.Items.BaseArmor.v9.json b/Projects/UOContent/Migrations/Server.Items.BaseArmor.v9.json index 56579b4a3..2ea3ab105 100644 --- a/Projects/UOContent/Migrations/Server.Items.BaseArmor.v9.json +++ b/Projects/UOContent/Migrations/Server.Items.BaseArmor.v9.json @@ -8,7 +8,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -17,7 +17,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -200,7 +200,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { diff --git a/Projects/UOContent/Migrations/Server.Items.BaseClothing.v6.json b/Projects/UOContent/Migrations/Server.Items.BaseClothing.v6.json index c59f0615f..ed16ed9f3 100644 --- a/Projects/UOContent/Migrations/Server.Items.BaseClothing.v6.json +++ b/Projects/UOContent/Migrations/Server.Items.BaseClothing.v6.json @@ -14,7 +14,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -23,7 +23,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -32,7 +32,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -41,7 +41,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -93,4 +93,4 @@ ] } ] -} \ No newline at end of file +} diff --git a/Projects/UOContent/Migrations/Server.Items.BaseClothing.v7.json b/Projects/UOContent/Migrations/Server.Items.BaseClothing.v7.json index ade6ff6cb..0ea558c62 100644 --- a/Projects/UOContent/Migrations/Server.Items.BaseClothing.v7.json +++ b/Projects/UOContent/Migrations/Server.Items.BaseClothing.v7.json @@ -14,7 +14,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -23,7 +23,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -32,7 +32,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { @@ -41,7 +41,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] }, { diff --git a/Projects/UOContent/Migrations/Server.Items.ElvenGlasses.v0.json b/Projects/UOContent/Migrations/Server.Items.ElvenGlasses.v0.json index e6524c997..8a640dc28 100644 --- a/Projects/UOContent/Migrations/Server.Items.ElvenGlasses.v0.json +++ b/Projects/UOContent/Migrations/Server.Items.ElvenGlasses.v0.json @@ -8,7 +8,7 @@ "usesSaveFlag": true, "rule": "RawSerializableMigrationRule", "ruleArguments": [ - "" + "DeserializationRequiresParent" ] } ] diff --git a/Projects/UOContent/Misc/AOS.cs b/Projects/UOContent/Misc/AOS.cs index 025631871..79e49c57b 100644 --- a/Projects/UOContent/Misc/AOS.cs +++ b/Projects/UOContent/Misc/AOS.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using ModernUO.Serialization; using Server.Items; using Server.Mobiles; using Server.Spells; @@ -1295,7 +1296,7 @@ namespace Server } [PropertyObject] - [EmbeddedSerializable(0)] + [SerializationGenerator(0)] public abstract partial class BaseAttributes { [SerializableField(0, setter: "private")] @@ -1321,9 +1322,9 @@ namespace Server public bool IsEmpty => _names == 0; - [SerializableParent] - private readonly Item _owner; + private Item _owner; + [DirtyTrackingEntity] public Item Owner => _owner; public int GetValue(int bitmask) diff --git a/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMage.cs b/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMage.cs index e2929ae18..110365c12 100644 --- a/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMage.cs +++ b/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMage.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Items; namespace Server.Mobiles { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class EvilMage : BaseCreature { [Constructible] diff --git a/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMageLord.cs b/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMageLord.cs index 197f4acd0..14169921b 100644 --- a/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMageLord.cs +++ b/Projects/UOContent/Mobiles/Monsters/Humanoid/Magic/EvilMageLord.cs @@ -1,8 +1,9 @@ +using ModernUO.Serialization; using Server.Items; namespace Server.Mobiles { - [Serializable(0, false)] + [SerializationGenerator(0, false)] public partial class EvilMageLord : BaseCreature { [Constructible] diff --git a/Projects/UOContent/Spells/Bushido/MomentumStrike.cs b/Projects/UOContent/Spells/Bushido/MomentumStrike.cs index 3fbe7b592..c3b291d01 100644 --- a/Projects/UOContent/Spells/Bushido/MomentumStrike.cs +++ b/Projects/UOContent/Spells/Bushido/MomentumStrike.cs @@ -1,4 +1,3 @@ -using System.Linq; using Server.Collections; namespace Server.Spells.Bushido diff --git a/Projects/UOContent/UOContent.csproj b/Projects/UOContent/UOContent.csproj index 4981eed58..90da5adac 100755 --- a/Projects/UOContent/UOContent.csproj +++ b/Projects/UOContent/UOContent.csproj @@ -38,14 +38,15 @@ false - + - + +