### 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`.
40 lines
No EOL
802 B
JSON
Generated
40 lines
No EOL
802 B
JSON
Generated
{
|
|
"version": 1,
|
|
"type": "Server.Engines.BulkOrders.BaseBOBEntry",
|
|
"properties": [
|
|
{
|
|
"name": "RequireExceptional",
|
|
"type": "bool",
|
|
"rule": "PrimitiveTypeMigrationRule",
|
|
"ruleArguments": [
|
|
""
|
|
]
|
|
},
|
|
{
|
|
"name": "DeedType",
|
|
"type": "Server.Engines.BulkOrders.BODType",
|
|
"rule": "EnumMigrationRule"
|
|
},
|
|
{
|
|
"name": "Material",
|
|
"type": "Server.Engines.BulkOrders.BulkMaterialType",
|
|
"rule": "EnumMigrationRule"
|
|
},
|
|
{
|
|
"name": "AmountMax",
|
|
"type": "int",
|
|
"rule": "PrimitiveTypeMigrationRule",
|
|
"ruleArguments": [
|
|
""
|
|
]
|
|
},
|
|
{
|
|
"name": "Price",
|
|
"type": "int",
|
|
"rule": "PrimitiveTypeMigrationRule",
|
|
"ruleArguments": [
|
|
""
|
|
]
|
|
}
|
|
]
|
|
} |