### 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`.
35 lines
No EOL
679 B
JSON
Generated
35 lines
No EOL
679 B
JSON
Generated
{
|
|
"version": 0,
|
|
"type": "Server.Engines.BulkOrders.BOBLargeSubEntry",
|
|
"properties": [
|
|
{
|
|
"name": "ItemType",
|
|
"type": "System.Type",
|
|
"rule": "PrimitiveTypeMigrationRule"
|
|
},
|
|
{
|
|
"name": "AmountCur",
|
|
"type": "int",
|
|
"rule": "PrimitiveTypeMigrationRule",
|
|
"ruleArguments": [
|
|
"EncodedInt"
|
|
]
|
|
},
|
|
{
|
|
"name": "Number",
|
|
"type": "int",
|
|
"rule": "PrimitiveTypeMigrationRule",
|
|
"ruleArguments": [
|
|
"EncodedInt"
|
|
]
|
|
},
|
|
{
|
|
"name": "Graphic",
|
|
"type": "int",
|
|
"rule": "PrimitiveTypeMigrationRule",
|
|
"ruleArguments": [
|
|
"EncodedInt"
|
|
]
|
|
}
|
|
]
|
|
} |