Hi, in current BDA implementation those projectiles' types are hard-coded.
For example: RocketLauncher will attach a "Rocket" component onto the spawned rocket when firing it. The "Rocket" class is hard-coded inside the RocketLauncher class.
Could you add a KSPField of String to specify the type name of the component one RocketLauncher (mabybe also other types of launcher as well?) will attach onto the projectile by using .NET reflection?
The reason I would hope for such feature is that I want to write an inherited class of "Rocket" so that I can alter/add some behavior and still use RocketLauncher to launch it.
Hi, in current BDA implementation those projectiles' types are hard-coded. For example: RocketLauncher will attach a "Rocket" component onto the spawned rocket when firing it. The "Rocket" class is hard-coded inside the RocketLauncher class.
Could you add a KSPField of String to specify the type name of the component one RocketLauncher (mabybe also other types of launcher as well?) will attach onto the projectile by using .NET reflection? The reason I would hope for such feature is that I want to write an inherited class of "Rocket" so that I can alter/add some behavior and still use RocketLauncher to launch it.