Stardew_Valley_Mods/GeneralMods/Revitalize/Framework/Objects/GarbageTest.cs

43 lines
1.0 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using PyTK.CustomElementHandler;
using StardewValley;
using StardewValley.Objects;
namespace Revitalize.Framework.Objects
{
public class GarbageTest:CustomObject
{
public GarbageTest()
{
}
public GarbageTest(BasicItemInformation info) : base(info)
{
}
public GarbageTest(BasicItemInformation info,Vector2 TileLocation) : base(info,TileLocation)
{
}
public override Item getOne()
{
return new GarbageTest(this.info);
}
public override ICustomObject recreate(Dictionary<string, string> additionalSaveData, object replacement)
{
CustomObjectData data = CustomObjectData.collection[additionalSaveData["id"]];
return new GarbageTest((BasicItemInformation)data, (replacement as Chest).TileLocation);
}
}
}