EngineAPI:
- boolean isActive()
- float getThrustLevel() // Current thrust level, normalized between 0 and 1
- boolean isDisabled()
- float getDisabledTime()
- boolean isSpecialEngine() // For things like maneuvering jets
ShipAPI:
- List<EngineAPI> getEngines()
MissileAPI:
Also, certain enums like CollisionClass and WeaponType are exposed in the current API, but others are not. Could the remaining enums like TextureType, BarrelMode, RenderHints, AnimationType and other weapon/ship tags be included in the API as well?
These ought to be simple enough.
If this is already possible through some other method, I apologize, but it seems like it might be kinda handy for certain purposes.
DamagingProjectileAPI and MissileAPI:
- AnimationAPI getAnimation()
Additionally, would it be possible to set up an API allowing modders to create some custom effects, such as different explosions?
Well - animated projectiles aren't supported by the engine, and it's not something I could just hack in easily. About the only way I'd really give it a go is if something new in the base game required it; adding features for mod-use-only tends to be a pretty big pain because it's hard to adequately test them and ensure they keep working going forward.
As for custom effects, that should already be possible. You just have to use the OnHitPlugin to spawn whatever you like, at least to the extent that the CombatEngineAPI allows it (addHitParticle, addSmokeParticle, spawnExplosion, etc).
I would love some way to increase the image size for portraits beyond 128x128, i have some juicy images that gets ruined if i scale them down that much.
I'm pretty sure portraits can already be any size. The game will scale them to whatever size they need to be used at.
CombatFleetManagerAPI:
- AssignmentTargetAPI createAssignmentTarget(Object target)
- AssignmentInfo createAssignment(CombatAssignmentType type, AssignmentTargetAPI target)
- void setAssignmentFor(ShipAPI ship, AssignmentInfo assignment)
The fleet AI will likely get totally overhauled at some point. I'll take a look, though.
General note:
This thread is intended for requests to expose via API things the game already does, not for adding new features. In other words, for things that are missing from the API itself, not for things that are not in the game to begin with. Those should go in the suggestion forum, not in this thread.