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.
34 lines
761 B
C#
34 lines
761 B
C#
namespace Server.Items
|
|
{
|
|
/*
|
|
first seen halloween 2009. subsequently in 2010,
|
|
2011 and 2012. GM Beggar-only Semi-Rare Treats
|
|
*/
|
|
|
|
public class CreepyCake : Food
|
|
{
|
|
[Constructible]
|
|
public CreepyCake() : base(0x9e9, 1) => Hue = 0x3E4;
|
|
|
|
public CreepyCake(Serial serial)
|
|
: base(serial)
|
|
{
|
|
}
|
|
|
|
public override string DefaultName => "Creepy Cake";
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|