(cls, *patterns)
| 420 | |
| 421 | @classmethod |
| 422 | def exportPatterns(cls, *patterns): |
| 423 | out = "# Exported from pyfa\n#\n" |
| 424 | out += "# Values are in following format:\n" |
| 425 | out += "# TargetProfile = [name],[EM %],[Thermal %],[Kinetic %],[Explosive %],[Max velocity m/s],[Signature radius m],[Radius m]\n\n" |
| 426 | for dp in patterns: |
| 427 | out += cls.EXPORT_FORMAT % ( |
| 428 | dp.rawName, |
| 429 | dp.emAmount * 100, |
| 430 | dp.thermalAmount * 100, |
| 431 | dp.kineticAmount * 100, |
| 432 | dp.explosiveAmount * 100, |
| 433 | dp.maxVelocity, |
| 434 | dp.signatureRadius, |
| 435 | dp.radius |
| 436 | ) |
| 437 | |
| 438 | return out.strip() |
| 439 | |
| 440 | @property |
| 441 | def name(self): |
nothing calls this directly
no outgoing calls
no test coverage detected