internal void Add(PlaceableItem placeableItem) { PlaceableItemSerializable placeableItemSerializable = new PlaceableItemSerializable(); placeableItemSerializable.SetObjectForSerializer(placeableItem); PlaceableItems.Add(placeableItemSerializable); }
/** * If you are just doing boring serialization/deserialization like the following * remove the interface IACMFPlaceableItemCustomSerializationSystem and these following methods * and allow the system serialize/deserialize for you. * This is the default serialization/deseralization behaviour. */ public PlaceableItemSerializable SerializeItem(PlaceableItem placeableItem) { PlaceableItemSerializable placeableItemSerializable = new PlaceableItemSerializable(); placeableItemSerializable.SetObjectForSerializer(placeableItem); return(placeableItemSerializable); }