コード例 #1
0
        public GDEtimeTaskData ShallowClone()
        {
            string          newKey   = Guid.NewGuid().ToString();
            GDEtimeTaskData newClone = new GDEtimeTaskData(newKey);

            newClone.keepWorking  = keepWorking;
            newClone.isEmpty      = isEmpty;
            newClone.timeType     = timeType;
            newClone.oldData      = oldData;
            newClone.newData      = newData;
            newClone.itemHashcode = itemHashcode;
            newClone.itemId       = itemId;
            newClone.startTime    = startTime;
            newClone.taskId       = taskId;

            newClone.taskRewards = new List <string>(taskRewards);
            newClone.Set_taskRewards();

            return(newClone);
        }
コード例 #2
0
        public GDEtimeTaskData DeepClone()
        {
            GDEtimeTaskData newClone = ShallowClone();

            return(newClone);
        }