Expose LuaEntityPrototype.rocket_entity
Posted: Sun Aug 02, 2020 1:30 pm
Every rocket silo has an associated rocket silo rocket. This rocket is actually relevant to figure out some things about what the rocket silo produces and how long the launch animation takes. I'd need this information at runtime for Factory Planner.
So, I'm asking for rocket_entity to be added to LuaEntityPrototype. Preferably a direct reference to the prototype, called 'rocket_entity_prototype' or something.
I just noticed that there isn't a 'LuaRocketPrototype' at runtime at all currently, so that'd have to be created too. I'm not 100% sure which attributes would need to be exposed, but I'd benefit from engine_starting_speed, flying_acceleration, flying_speed, rising_speed, and especially result_items.
So, I'm asking for rocket_entity to be added to LuaEntityPrototype. Preferably a direct reference to the prototype, called 'rocket_entity_prototype' or something.
I just noticed that there isn't a 'LuaRocketPrototype' at runtime at all currently, so that'd have to be created too. I'm not 100% sure which attributes would need to be exposed, but I'd benefit from engine_starting_speed, flying_acceleration, flying_speed, rising_speed, and especially result_items.