fix: Code gens items. Fixes code genning of ore (#684)

### THIS IS A BREAKING CHANGE IF YOU ARE ALREADY USING CODEGEN. IF YOUR WORLD HAS ERRORS LOADING PLEASE CONTACT ME ON DISCORD. ORE MIGHT FAIL TO LOAD.
 
### Changes
* Fixes Components from addons not marking dirty
* Code gens BaseAddonContainer
* Code gens Ingots
* Fixes code gen deserialization for Ore
* Code gens dyetubs
* Code gens reagents
* Code gens tailor commodities
* Code gens fish
This commit is contained in:
Kamron Batman 2021-08-14 22:16:42 -07:00 • committed by GitHub
parent 2de4717390
commit 25fa9b397b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
163 changed files with 1128 additions and 2494 deletions

View file

@ -2,8 +2,9 @@ using Server.Network;
namespace Server.Items
{
[Serializable(0, false)]
[Flippable(0x1766, 0x1768)]
public class Cloth : Item, IScissorable, IDyable, ICommodity
public partial class Cloth : Item, IScissorable, IDyable, ICommodity
{
[Constructible]
public Cloth(int amount = 1) : base(0x1766)
@ -12,10 +13,6 @@ namespace Server.Items
Amount = amount;
}
public Cloth(Serial serial) : base(serial)
{
}
public override double DefaultWeight => 0.1;
int ICommodity.DescriptionNumber => LabelNumber;
bool ICommodity.IsDeedable => true;
@ -44,20 +41,6 @@ namespace Server.Items
return true;
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0); // version
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
public override void OnSingleClick(Mobile from)
{
var number = Amount == 1 ? 1049124 : 1049123;