fix(codegen): Fixes various code gen issues. Adds better embedded serialization support (#688)

* Adds save flag support (see `ElvenGlasses` for an example)
* Updates AOSAttributes so they are code genned
* Fixes embedded object support by adding an `IRawSerializable`
* Fixes various inconsistencies in serializing with codegen
This commit is contained in:
Kamron Batman 2021-08-17 02:43:52 -07:00 • committed by GitHub
parent 69af652a18
commit 2c8097f707
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 787 additions and 507 deletions

View file

@ -2,7 +2,7 @@ using Server.Mobiles;
namespace Server.Engines.BulkOrders
{
[Serializable(0)]
[Serializable(1)]
public abstract partial class LargeBOD : BaseBOD
{
[InvalidateProperties]
@ -148,5 +148,14 @@ namespace Server.Engines.BulkOrders
}
}
}
private void Deserialize(IGenericReader reader, int version)
{
_entries = new LargeBulkEntry[reader.ReadInt()];
for (var i = 0; i < _entries.Length; i++)
{
_entries[i] = new LargeBulkEntry(reader, this);
}
}
}
}