fix: Codegens potted plants (#1270)

This commit is contained in:
Kamron Batman 2022-11-23 13:04:30 -08:00 committed by GitHub
parent 80d7b49bcc
commit c546b2ec70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 147 additions and 312 deletions

View file

@ -1,50 +1,17 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class SmallEmptyPot : Item
{
public class SmallEmptyPot : Item
{
[Constructible]
public SmallEmptyPot() : base(0x11C6) => Weight = 100;
public SmallEmptyPot(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class LargeEmptyPot : Item
{
[Constructible]
public LargeEmptyPot() : base(0x11C7) => Weight = 6;
public LargeEmptyPot(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
[Constructible]
public SmallEmptyPot() : base(0x11C6) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class LargeEmptyPot : Item
{
[Constructible]
public LargeEmptyPot() : base(0x11C7) => Weight = 6;
}

View file

@ -1,146 +1,45 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class PottedCactus : Item
{
public class PottedCactus : Item
{
[Constructible]
public PottedCactus() : base(0x1E0F) => Weight = 100;
public PottedCactus(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedCactus1 : Item
{
[Constructible]
public PottedCactus1() : base(0x1E10) => Weight = 100;
public PottedCactus1(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedCactus2 : Item
{
[Constructible]
public PottedCactus2() : base(0x1E11) => Weight = 100;
public PottedCactus2(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedCactus3 : Item
{
[Constructible]
public PottedCactus3() : base(0x1E12) => Weight = 100;
public PottedCactus3(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedCactus4 : Item
{
[Constructible]
public PottedCactus4() : base(0x1E13) => Weight = 100;
public PottedCactus4(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedCactus5 : Item
{
[Constructible]
public PottedCactus5() : base(0x1E14) => Weight = 100;
public PottedCactus5(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
[Constructible]
public PottedCactus() : base(0x1E0F) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedCactus1 : Item
{
[Constructible]
public PottedCactus1() : base(0x1E10) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedCactus2 : Item
{
[Constructible]
public PottedCactus2() : base(0x1E11) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedCactus3 : Item
{
[Constructible]
public PottedCactus3() : base(0x1E12) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedCactus4 : Item
{
[Constructible]
public PottedCactus4() : base(0x1E13) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedCactus5 : Item
{
[Constructible]
public PottedCactus5() : base(0x1E14) => Weight = 100;
}

View file

@ -1,74 +1,24 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class PottedPlant : Item
{
public class PottedPlant : Item
{
[Constructible]
public PottedPlant() : base(0x11CA) => Weight = 100;
public PottedPlant(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedPlant1 : Item
{
[Constructible]
public PottedPlant1() : base(0x11CB) => Weight = 100;
public PottedPlant1(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedPlant2 : Item
{
[Constructible]
public PottedPlant2() : base(0x11CC) => Weight = 100;
public PottedPlant2(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
[Constructible]
public PottedPlant() : base(0x11CA) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedPlant1 : Item
{
[Constructible]
public PottedPlant1() : base(0x11CB) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedPlant2 : Item
{
[Constructible]
public PottedPlant2() : base(0x11CC) => Weight = 100;
}

View file

@ -1,50 +1,17 @@
namespace Server.Items
using ModernUO.Serialization;
namespace Server.Items;
[SerializationGenerator(0, false)]
public partial class PottedTree : Item
{
public class PottedTree : Item
{
[Constructible]
public PottedTree() : base(0x11C8) => Weight = 100;
public PottedTree(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
public class PottedTree1 : Item
{
[Constructible]
public PottedTree1() : base(0x11C9) => Weight = 100;
public PottedTree1(Serial serial) : base(serial)
{
}
public override void Serialize(IGenericWriter writer)
{
base.Serialize(writer);
writer.Write(0);
}
public override void Deserialize(IGenericReader reader)
{
base.Deserialize(reader);
var version = reader.ReadInt();
}
}
[Constructible]
public PottedTree() : base(0x11C8) => Weight = 100;
}
[SerializationGenerator(0, false)]
public partial class PottedTree1 : Item
{
[Constructible]
public PottedTree1() : base(0x11C9) => Weight = 100;
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.LargeEmptyPot"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedCactus"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedCactus1"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedCactus2"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedCactus3"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedCactus4"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedCactus5"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedPlant"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedPlant1"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedPlant2"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedTree"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.PottedTree1"
}

View file

@ -0,0 +1,4 @@
{
"version": 0,
"type": "Server.Items.SmallEmptyPot"
}