fix: Codgens more addons (#685)
* Fixes after deserialization not executing for older versions of an object * Codegens more addons
This commit is contained in:
parent
25fa9b397b
commit
4c265562bb
255 changed files with 1514 additions and 3742 deletions
|
|
@ -1,6 +1,7 @@
|
|||
namespace Server.Items
|
||||
{
|
||||
public class WaterTroughSouthAddon : BaseAddon, IWaterSource
|
||||
[Serializable(0, false)]
|
||||
public partial class WaterTroughSouthAddon : BaseAddon, IWaterSource
|
||||
{
|
||||
[Constructible]
|
||||
public WaterTroughSouthAddon()
|
||||
|
|
@ -9,10 +10,6 @@ namespace Server.Items
|
|||
AddComponent(new AddonComponent(0xB44), 1, 0, 0);
|
||||
}
|
||||
|
||||
public WaterTroughSouthAddon(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseAddonDeed Deed => new WaterTroughSouthDeed();
|
||||
|
||||
int IHasQuantity.Quantity
|
||||
|
|
@ -20,48 +17,17 @@ namespace Server.Items
|
|||
get => 500;
|
||||
set { }
|
||||
}
|
||||
|
||||
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 class WaterTroughSouthDeed : BaseAddonDeed
|
||||
[Serializable(0, false)]
|
||||
public partial class WaterTroughSouthDeed : BaseAddonDeed
|
||||
{
|
||||
[Constructible]
|
||||
public WaterTroughSouthDeed()
|
||||
{
|
||||
}
|
||||
|
||||
public WaterTroughSouthDeed(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override BaseAddon Addon => new WaterTroughSouthAddon();
|
||||
public override int LabelNumber => 1044350; // water trough (south)
|
||||
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue