Closed bsimser closed 7 years ago
Original comment by Joris Huijbregts (Bitbucket: jjahuijbregts, ).
Added serialization attribute that can be added to InventoryItemBase objects to add a custom serialization model (fixes #233)
Example: [SerializationModel(typeof(ExtendedInventoryItemSerializationModel))]
Original comment by Joris Huijbregts (Bitbucket: jjahuijbregts, ).
Added serialization attribute that can be added to InventoryItemBase objects to add a custom serialization model (fixes #233)
Example: [SerializationModel(typeof(ExtendedInventoryItemSerializationModel))]
Original report by Joris Huijbregts (Bitbucket: jjahuijbregts, ).
Add serialization attribute to InventoryItems to allow Serializing of extra data (make attribute override the built-in seriarlizer)
[InventoryItemSerializationModel] public class MyInventoryItemSerializationModel : InventoryItemSerializationModel { // Do custom stuff here, override FromItem and ToItem() }