linuxgurugamer Posted May 2, 2016 Share Posted May 2, 2016 I need to be able to identify all parts which are engines (of any type). I have identified the following three modules to look for: ModuleEngines ModuleEnginesFx MultiModeEngine (??? where I see this, i also see one of the two above) Are there any other types that I need to look for? Also, can someone explain the difference between the first two? If you are aware of mods which have their own definition of an engine module, please let me know Thanks LGG Link to comment Share on other sites More sharing options...
Crzyrndm Posted May 2, 2016 Share Posted May 2, 2016 (edited) ModuleEnginesFX inherits ModuleEngines now, Multimode is an additional module that just handles switching between other modules(ie not an actual engine itself), and I'm not aware of a mod engine that is entirely from scratch. For Filter Extensions, I use this shorthand function here (actually a remnant from when FX was an entirely separate module). Even the warp drives, I believe, inherit off ModuleEngines Edited May 2, 2016 by Crzyrndm Link to comment Share on other sites More sharing options...
Aelfhe1m Posted May 2, 2016 Share Posted May 2, 2016 Only one I can think of off-hand is Advanced Jet Engines. It defines "ModuleEnginesAJEPropeller" for some of its propeller engines. It inherits from ModuleEnginesSolver which in turn inherits from ModuleEnginesFX. Link to comment Share on other sites More sharing options...
sarbian Posted May 2, 2016 Share Posted May 2, 2016 And since the parent is still ModuleEngines you don't have to handle them unless you want to get into the specifics of those module. Link to comment Share on other sites More sharing options...
linuxgurugamer Posted May 2, 2016 Author Share Posted May 2, 2016 17 hours ago, Crzyrndm said: ModuleEnginesFX inherits ModuleEngines now, Multimode is an additional module that just handles switching between other modules(ie not an actual engine itself), and I'm not aware of a mod engine that is entirely from scratch. For Filter Extensions, I use this shorthand function here (actually a remnant from when FX was an entirely separate module). Even the warp drives, I believe, inherit off ModuleEngines What I need is actually a count of the number of engines, I don't really care about what it is. Thanks to all who replied, you just made my job a little easier. LGG Link to comment Share on other sites More sharing options...
Crzyrndm Posted May 2, 2016 Share Posted May 2, 2016 part.Modules.OfType<ModuleEngines>().Count or is it length, I always forget which one is for arrays and which one is for the rest... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now