Exemplo n.º 1
0
        public override Item getOne()
        {
            var result = new Freezer(data);

            result.TileLocation = Vector2.Zero;
            result.Items        = Items;
            return(result);
        }
Exemplo n.º 2
0
        public override ICustomObject recreate(Dictionary <string, string> additionalSaveData, object replacement)
        {
            var customObjectData = CustomObjectData.collection[additionalSaveData["id"]];
            var replChest        = replacement as Chest;
            var freezer          = new Freezer(customObjectData, replChest.TileLocation);

            freezer.Items.AddRange(replChest.items);
            return(freezer);
        }