[solved] Entity prototype without placing entity?
Posted: Thu Oct 20, 2016 11:21 pm
EDIT: LuaGameScript.entity_prototypes
My mods remote interface allows other mods to register certain entities with it, but I need to validate their prototype values to ensure they are set correctly (otherwise throw an error so the mod author can make required changes).
Problem is, it appears that I can only access the prototype of entities already placed on map - I don't really want to place an entity just so I can read its prototype then destroy it.
Is there a way to access prototype for an entity by it's name, rather than an actual instance of it on the map?
My mods remote interface allows other mods to register certain entities with it, but I need to validate their prototype values to ensure they are set correctly (otherwise throw an error so the mod author can make required changes).
Problem is, it appears that I can only access the prototype of entities already placed on map - I don't really want to place an entity just so I can read its prototype then destroy it.
Is there a way to access prototype for an entity by it's name, rather than an actual instance of it on the map?