Expand description
Rust types that parse Factorio’s machine-readable JSON format.
Structs§
- Basic
Members - Several API members follow a common format for their basic fields.
- Concept
- A
Conceptis a type that the format uses and are commonly used as parts of a prototype. - Custom
Properties - A special set of properties that the user can add an arbitrary number of.
- Define
- Defines can be recursive in nature, meaning one Define can have multiple sub-Defines that have the same structure. These are singled out as
subkeysinstead ofvalues. - Define
Value - One of the values of a
Define. - Image
- An illustrative image shown next to a member.
- Property
- A property for a complex type.
- Prototype
- Prototypes are templates for components in the game engine. They define parameters which the engine uses to create predefined behavior.
- Prototype
Api - The JSON, deserializable from the machine-readable JSON format file.
- Type
Literal - A literal value with an optional description. This is often used for enums or default values of properties.
Enums§
- Literal
- A literal has the same format as a
Typethat isType::Literal. - Loading
Error - Errors that can occur while loading the JSON data with [
load_prototypes_json]. - Property
Default - The default value of a
Property. - Type
- A type field can be a string (
Type::Simple), in which case that string is the simple type. Otherwise, a type is an enum and considered a complex type by the documentation.