public void CopyDesign(clsDroidDesign DroidTypeToCopy) { this.TemplateDroidType = DroidTypeToCopy.TemplateDroidType; this.Body = DroidTypeToCopy.Body; this.Propulsion = DroidTypeToCopy.Propulsion; this.TurretCount = DroidTypeToCopy.TurretCount; this.Turret1 = DroidTypeToCopy.Turret1; this.Turret2 = DroidTypeToCopy.Turret2; this.Turret3 = DroidTypeToCopy.Turret3; }
public static int TemplateDroidType_Add(clsDroidDesign.clsTemplateDroidType NewDroidType) { TemplateDroidTypes = (clsDroidDesign.clsTemplateDroidType[]) Utils.CopyArray((Array) TemplateDroidTypes, new clsDroidDesign.clsTemplateDroidType[TemplateDroidTypeCount + 1]); TemplateDroidTypes[TemplateDroidTypeCount] = NewDroidType; int templateDroidTypeCount = TemplateDroidTypeCount; TemplateDroidTypeCount++; return templateDroidTypeCount; }