//
// Licensed under the MIT License. See LICENSE file in the project root for full license information.
//
namespace MUnique.OpenMU.GameLogic;
using MUnique.OpenMU.DataModel.Configuration.Items;
using MUnique.OpenMU.Persistence;
///
/// A temporary item which is not persistent (yet).
///
///
public sealed class TemporaryItem : Item
{
///
/// Initializes a new instance of the class.
///
public TemporaryItem()
{
this.ItemOptions = new List();
this.ItemSetGroups = new List();
}
///
/// Makes this item persistent.
///
/// The persistence context where the item should be added.
/// The persistent item.
public Item MakePersistent(IContext persistenceContext)
{
var persistentItem = persistenceContext.CreateNew- ();
persistentItem.AssignValues(this);
return persistentItem;
}
}