Пример #1
0
 public Powerset(IPowerset template)
 {
     this.nID              = template.nID;
     this.nArchetype       = template.nArchetype;
     this.DisplayName      = template.DisplayName;
     this.SetType          = template.SetType;
     this.ImageName        = template.ImageName;
     this.FullName         = template.FullName;
     this.SetName          = template.SetName;
     this.Description      = template.Description;
     this.SubName          = template.SubName;
     this.ATClass          = template.ATClass;
     this._powersetGroup   = template.GetGroup();
     this.GroupName        = template.GroupName;
     this.UIDTrunkSet      = template.UIDTrunkSet;
     this.nIDTrunkSet      = template.nIDTrunkSet;
     this.nIDLinkSecondary = template.nIDLinkSecondary;
     this.UIDLinkSecondary = template.UIDLinkSecondary;
     this.Powers           = new IPower[template.Powers.Length];
     this.Power            = new int[template.Power.Length];
     Array.Copy((Array)template.Power, (Array)this.Power, this.Power.Length);
     for (int index = 0; index < this.Powers.Length; ++index)
     {
         this.Powers[index] = template.Powers[index];
     }
     this.nIDMutexSets = new int[template.nIDMutexSets.Length];
     this.UIDMutexSets = new string[template.UIDMutexSets.Length];
     Array.Copy((Array)template.nIDMutexSets, (Array)this.nIDMutexSets, this.nIDMutexSets.Length);
     Array.Copy((Array)template.UIDMutexSets, (Array)this.UIDMutexSets, this.UIDMutexSets.Length);
 }
    public int CompareTo(object obj)
    {
        PowersetGroup powersetGroup = obj as PowersetGroup;

        if (powersetGroup != null)
        {
            return(string.Compare(this.Name, powersetGroup.Name, StringComparison.OrdinalIgnoreCase));
        }
        throw new ArgumentException("Comparison failed - Passed object was not an Archetype Class!");
    }
Пример #3
0
 public void SetGroup(PowersetGroup pg) => _powersetGroup = pg;