コード例 #1
0
 public CollectionData(string name, CollectionData data) : base(StoragePrefix.Collection)
 {
     Name             = name;
     FireEvents       = data.FireEvents;
     GroupElements    = data.GroupElements;
     StopSingleEvents = data.StopSingleEvents;
     ItemNames        = new string[data.ItemNames.Length];
     data.ItemNames.CopyTo(ItemNames, 0);
 }
コード例 #2
0
        public CollectionData Clone(string name = null)
        {
            var clone = new CollectionData(string.IsNullOrEmpty(name) ? string.Empty : name)
            {
                FireEvents       = this.FireEvents,
                GroupElements    = this.GroupElements,
                StopSingleEvents = this.StopSingleEvents,
                ItemNames        = this.ItemNames
            };

            return(clone);
        }