summaryrefslogtreecommitdiff
path: root/Assets/Plugins/AdvancedInspector/Interface/ICopy.cs
blob: d35842766b22d871f4ba34d3ad63ec52ba4d5800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AdvancedInspector
{
    /// <summary>
    /// Give an object the power to handle it's own copying over an target destination.
    /// </summary>
    public interface ICopy
    {
        /// <summary>
        /// Should return a copy of itself. The overriden destination object is passed in case important fields are not to be replaced.
        /// </summary>
        object Copy(object destination);
    }
}