Provides read-only access to prototypes. It is accessible through the global object named prototypes.
stringunknownfalseThe class name of this object. Available even when valid is false. For LuaStruct objects it may also be suffixed with a dotted path to a member of the struct.
LuaCustomTable<string, LuaFontPrototype>unknownfalseA dictionary containing every LuaFontPrototype indexed by name.
LuaCustomTable<string, MapGenPreset>unknownfalseA dictionary containing every MapGenPreset indexed by name.
A MapGenPreset is an exact copy of the prototype table provided from the data stage.
LuaCustomTable<string, string>unknownfalseA map of styles that LuaGuiElement can use.
Maps from the style's name to its type, as seen on StyleSpecification.
LuaCustomTable<string, AnyBasic>unknownfalseAll utility constants.
See UtilityConstants for possible values.
LuaCustomTable<string, LuaEntityPrototype>unknownfalseA dictionary containing every LuaEntityPrototype indexed by name.
LuaCustomTable<string, LuaItemPrototype>unknownfalseA dictionary containing every LuaItemPrototype indexed by name.
LuaCustomTable<string, LuaFluidPrototype>unknownfalseA dictionary containing every LuaFluidPrototype indexed by name.
LuaCustomTable<string, LuaTilePrototype>unknownfalseA dictionary containing every LuaTilePrototype indexed by name.
LuaCustomTable<string, LuaEquipmentPrototype>unknownfalseA dictionary containing every LuaEquipmentPrototype indexed by name.
LuaCustomTable<string, LuaDamagePrototype>unknownfalseA dictionary containing every LuaDamagePrototype indexed by name.
LuaCustomTable<string, LuaVirtualSignalPrototype>unknownfalseA dictionary containing every LuaVirtualSignalPrototype indexed by name.
LuaCustomTable<string, LuaEquipmentGridPrototype>unknownfalseA dictionary containing every LuaEquipmentGridPrototype indexed by name.
LuaCustomTable<string, LuaRecipePrototype>unknownfalseA dictionary containing every LuaRecipePrototype indexed by name.
LuaCustomTable<string, LuaTechnologyPrototype>unknownfalseA dictionary containing every LuaTechnologyPrototype indexed by name.
LuaCustomTable<string, LuaDecorativePrototype>unknownfalseA dictionary containing every LuaDecorativePrototype indexed by name.
LuaCustomTable<string, LuaParticlePrototype>unknownfalseA dictionary containing every LuaParticlePrototype indexed by name.
LuaCustomTable<string, LuaAutoplaceControlPrototype>unknownfalseA dictionary containing every LuaAutoplaceControlPrototype indexed by name.
LuaCustomTable<string, LuaModSettingPrototype>unknownfalseA dictionary containing every LuaModSettingPrototype indexed by name.
LuaCustomTable<string, LuaCustomInputPrototype>unknownfalseA dictionary containing every LuaCustomInputPrototype indexed by name.
LuaCustomTable<string, LuaAmmoCategoryPrototype>unknownfalseA dictionary containing every LuaAmmoCategoryPrototype indexed by name.
LuaCustomTable<string, LuaNamedNoiseExpression>unknownfalseA dictionary containing every LuaNamedNoiseExpression indexed by name.
LuaCustomTable<string, LuaNamedNoiseFunction>unknownfalseA dictionary containing every LuaNamedNoiseFunction indexed by name.
LuaCustomTable<string, LuaGroup>unknownfalseA dictionary containing every ItemSubgroup indexed by name.
LuaCustomTable<string, LuaGroup>unknownfalseA dictionary containing every ItemGroup indexed by name.
LuaCustomTable<string, LuaFuelCategoryPrototype>unknownfalseA dictionary containing every LuaFuelCategoryPrototype indexed by name.
LuaCustomTable<string, LuaResourceCategoryPrototype>unknownfalseA dictionary containing every LuaResourceCategoryPrototype indexed by name.
LuaCustomTable<string, LuaAchievementPrototype>unknownfalseA dictionary containing every LuaAchievementPrototype indexed by name.
LuaCustomTable<string, LuaModuleCategoryPrototype>unknownfalseA dictionary containing every LuaModuleCategoryPrototype indexed by name.
LuaCustomTable<string, LuaEquipmentCategoryPrototype>unknownfalseA dictionary containing every LuaEquipmentCategoryPrototype indexed by name.
LuaCustomTable<string, LuaTrivialSmokePrototype>unknownfalseA dictionary containing every LuaTrivialSmokePrototype indexed by name.
LuaCustomTable<string, LuaShortcutPrototype>unknownfalseA dictionary containing every LuaShortcutPrototype indexed by name.
LuaCustomTable<string, LuaRecipeCategoryPrototype>unknownfalseA dictionary containing every LuaRecipeCategoryPrototype indexed by name.
LuaCustomTable<string, LuaQualityPrototype>unknownfalseLuaCustomTable<string, LuaSurfacePropertyPrototype>unknownfalseLuaCustomTable<string, LuaSpaceLocationPrototype>unknownfalseLuaCustomTable<string, LuaSpaceConnectionPrototype>unknownfalseLuaCustomTable<string, LuaCustomEventPrototype>unknownfalseA dictionary containing every defined custom event, indexed by name.
LuaCustomTable<string, LuaActiveTriggerPrototype>unknownfalseA dictionary containing every LuaActiveTriggerPrototype indexed by name.
LuaCustomTable<string, LuaAsteroidChunkPrototype>unknownfalseA dictionary containing every LuaAsteroidChunkPrototype indexed by name.
LuaCustomTable<string, LuaCollisionLayerPrototype>unknownfalseA dictionary containing every LuaCollisionLayerPrototype indexed by name.
LuaCustomTable<string, LuaAirbornePollutantPrototype>unknownfalseA dictionary containing every LuaAirbornePollutantPrototype indexed by name.
LuaCustomTable<string, LuaBurnerUsagePrototype>unknownfalseA dictionary containing every LuaBurnerUsagePrototype indexed by name.
LuaCustomTable<string, LuaModData>unknownfalseA dictionary containing every LuaModData indexed by name.
LuaCustomTable<string, LuaSurfacePrototype>unknownfalseA dictionary containing every LuaSurfacePrototype indexed by name.
LuaCustomTable<string, LuaProcessionPrototype>unknownfalseA dictionary containing every LuaProcessionPrototype indexed by name.
LuaCustomTable<string, LuaProcessionLayerInheritanceGroupPrototype>unknownfalseA dictionary containing every LuaProcessionLayerInheritanceGroupPrototype indexed by name.
doubleunknownfalseuint32unknownfalsefloatunknownfalsedoubleunknownfalseuint32unknownfalsedoubleunknownfalsedoubleunknownfalseuint8unknownfalseuint8unknownfalseLuaPrototypes.get_entity_filtered(filters: Array<EntityPrototypeFilter>) -> LuaCustomTable<string, LuaEntityPrototype>
prototypes.get_entity_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaEntityPrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<EntityPrototypeFilter>LuaCustomTable<string, LuaEntityPrototype>LuaPrototypes.get_item_filtered(filters: Array<ItemPrototypeFilter>) -> LuaCustomTable<string, LuaItemPrototype>
prototypes.get_item_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaItemPrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<ItemPrototypeFilter>LuaCustomTable<string, LuaItemPrototype>LuaPrototypes.get_equipment_filtered(filters: Array<EquipmentPrototypeFilter>) -> LuaCustomTable<string, LuaEquipmentPrototype>
prototypes.get_equipment_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaEquipmentPrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<EquipmentPrototypeFilter>LuaCustomTable<string, LuaEquipmentPrototype>LuaPrototypes.get_mod_setting_filtered(filters: Array<ModSettingPrototypeFilter>) -> LuaCustomTable<string, LuaModSettingPrototype>
prototypes.get_mod_setting_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaModSettingPrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<ModSettingPrototypeFilter>LuaCustomTable<string, LuaModSettingPrototype>LuaPrototypes.get_achievement_filtered(filters: Array<AchievementPrototypeFilter>) -> LuaCustomTable<string, LuaAchievementPrototype>
prototypes.get_achievement_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaAchievementPrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<AchievementPrototypeFilter>LuaCustomTable<string, LuaAchievementPrototype>LuaPrototypes.get_tile_filtered(filters: Array<TilePrototypeFilter>) -> LuaCustomTable<string, LuaTilePrototype>
prototypes.get_tile_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaTilePrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<TilePrototypeFilter>LuaCustomTable<string, LuaTilePrototype>LuaPrototypes.get_decorative_filtered(filters: Array<DecorativePrototypeFilter>) -> LuaCustomTable<string, LuaDecorativePrototype>
prototypes.get_decorative_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaDecorativePrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<DecorativePrototypeFilter>LuaCustomTable<string, LuaDecorativePrototype>LuaPrototypes.get_fluid_filtered(filters: Array<FluidPrototypeFilter>) -> LuaCustomTable<string, LuaFluidPrototype>
prototypes.get_fluid_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaFluidPrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<FluidPrototypeFilter>LuaCustomTable<string, LuaFluidPrototype>LuaPrototypes.get_recipe_filtered(filters: Array<RecipePrototypeFilter>) -> LuaCustomTable<string, LuaRecipePrototype>
prototypes.get_recipe_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaRecipePrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<RecipePrototypeFilter>LuaCustomTable<string, LuaRecipePrototype>LuaPrototypes.get_technology_filtered(filters: Array<TechnologyPrototypeFilter>) -> LuaCustomTable<string, LuaTechnologyPrototype>
prototypes.get_technology_filtered(filters)
takes_table: falsetable_optional: falseReturns a dictionary of all LuaTechnologyPrototypes that fit the given filters. The prototypes are indexed by name.
filters: Array<TechnologyPrototypeFilter>LuaCustomTable<string, LuaTechnologyPrototype>LuaPrototypes.get_history(type: string, name: string) -> PrototypeHistory
prototypes.get_history(type, name)
takes_table: falsetable_optional: falseGets the prototype history for the given type and name.
type: stringname: stringPrototypeHistory