fix(codegen): Reverts & Disables codegen (for now) (#625)

After speaking with the C# devs, it is clear that code gen is not ready.
I can get around this by doing the following:
1. Creating a library
2. Splitting out the schema writing from the source generator
3. Moving the schema loading to `AdditionalFiles`
4. Writing a new post-build application using Roslyn to write the schema files after building.
This commit is contained in:
Kamron Batman 2021-05-27 19:50:22 -07:00 • committed by GitHub
parent 6e9108302a
commit f2d44e0283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
84 changed files with 1053 additions and 487 deletions

View file

@ -1,7 +1,6 @@
namespace Server.Items
{
[Serializable(0, false)]
public partial class DragonEasterEgg : Item, IDyable
public class DragonEasterEgg : Item, IDyable
{
[Constructible]
public DragonEasterEgg()
@ -9,6 +8,11 @@
{
}
public DragonEasterEgg(Serial serial)
: base(serial)
{
}
public override int LabelNumber => 1097278;
public bool Dye(Mobile from, DyeTub sender)
@ -22,5 +26,19 @@
return true;
}
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();
}
}
}