コード例 #1
0
 public CannonHotpatch(CannonModule template)
 {
     this.Ballistics                  = new CannonHotpatch.BallisticsHotPatch();
     this.ID                          = template.title.ToString();
     this.crew                        = template.crew;
     this.groundBatterySize           = template.groundBatterySize;
     this.horizontalTurnMax           = template.horizontalTurnMax;
     this.navalBatterySize            = template.navalBatterySize;
     this.reloadTime                  = template.reloadTime;
     this.threat                      = template.threat;
     this.type                        = template.type.ToString();
     this.verticalTurnMax             = template.verticalTurnMax;
     this.verticalTurnMin             = template.verticalTurnMin;
     this.weight                      = template.weight;
     this.goldPrice                   = template.GoldPrice;
     this.Ballistics.verticalSpread   = template.Ballistics.verticalSpread;
     this.Ballistics.radius           = template.Ballistics.radius;
     this.Ballistics.mass             = template.Ballistics.mass;
     this.Ballistics.horizontalSpread = template.Ballistics.horizontalSpread;
     this.Ballistics.gravity          = template.Ballistics.gravity;
     this.Ballistics.distance         = template.Ballistics.distance;
     this.Ballistics.baseY            = template.Ballistics.baseY;
     this.Ballistics.armorPiercing    = template.Ballistics.armorPiercing;
 }
コード例 #2
0
 public CannonHotpatch()
 {
     this.Ballistics = new CannonHotpatch.BallisticsHotPatch();
 }