Recipe types from shared scripts and stuff
This commit is contained in:
@@ -72,6 +72,8 @@ export interface RecipeType<R, I> {
|
||||
export interface RecipeReader {
|
||||
item(json: Record<string, unknown>, field: string): Id;
|
||||
stack(json: Record<string, unknown>, field: string): { id: Id; count: number };
|
||||
// an item, a #tag or a list of them, any of which fits, as every item that does, like the engine's shaped keys
|
||||
ingredient(json: Record<string, unknown>, field: string): Id[];
|
||||
}
|
||||
|
||||
// the recipes of registered types, as their parse made them, in load order. not to be changed
|
||||
|
||||
Reference in New Issue
Block a user