Recipe types from shared scripts and stuff

This commit is contained in:
2026-11-01 20:41:23 -03:00
parent c8b5f2a3bd
commit 65113862f7
34 changed files with 234 additions and 134 deletions
+2
View File
@@ -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