### Summary
Adds a generic entity persistence. This can be used to create new entity types that have a `Serial`.
Here is an example:
```cs
public class BOBEntries : GenericEntitySerialization<IBOBEntry>
{
public static void Configure()
{
Configure("BOBEntries");
}
}
```
The annotation tells the system what folder to serialize the entries to. The class/interface (`IBOBEntry`) is the root type that implements `ISerializable`.
12 lines
308 B
C#
12 lines
308 B
C#
namespace Server.Engines.BulkOrders
|
|
{
|
|
public interface IBOBEntry : ISerializable
|
|
{
|
|
bool RequireExceptional { get; }
|
|
BODType DeedType { get; }
|
|
BulkMaterialType Material { get; }
|
|
int AmountMax { get; }
|
|
int Price { get; set; }
|
|
Item Reconstruct();
|
|
}
|
|
}
|