Skip to content

Commit

Permalink
pulling FGCustomizationRecipe--FGRecipe into common types
Browse files Browse the repository at this point in the history
-   re: #4
  • Loading branch information
SignpostMarv committed Oct 23, 2024
1 parent f6da73a commit 651167e
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 157 deletions.
1 change: 1 addition & 0 deletions common-imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"common_type__common_base__FGBuildingDescriptor__ClassName__type": "common/unassigned",
"common_type__common_base__FGBuildingDescriptor__mForm__type": "common/unassigned",
"common_type__common_base__FGBuildingDescriptor__mSubCategories__type": "common/unassigned",
"common_type__common_base__FGCustomizationRecipe__FGRecipe__type": "common/unassigned",
"common_type__common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type": "common/unassigned",
"common_type__common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__mSubCategories__type": "common/unassigned",
"common_type__empty_object__type": "common/unassigned",
Expand Down
20 changes: 2 additions & 18 deletions generated-types/1.0/classes/CoreUObject/FGCustomizationRecipe.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
import {StringPassedRegExp} from '../../utils/validators';

import {decimal_string__type} from '../../../common/common/scalar';

import {
mEventType__optional_csv__type,
ItemClass__type,
class__no_description__type,
common_base__FGCustomizationRecipe__FGRecipe__type,
NativeClass__type,
} from '../../../common/common/unassigned';

export type FGCustomizationRecipe__FGRecipe__type =
class__no_description__type & {
FullName: StringPassedRegExp<'^BlueprintGeneratedClass /Game/FactoryGame/(?:-?[A-Z][A-Za-z0-9_]+/)*(Recipe_[A-Za-z0-9_]+)\\.\\1_C$'>;
mDisplayName: Exclude<string, ''>;
mIngredients: '' | ItemClass__type;
mProduct: '' | ItemClass__type;
mManufacturingMenuPriority: decimal_string__type;
mManufactoringDuration: decimal_string__type;
mManualManufacturingMultiplier: decimal_string__type;
common_base__FGCustomizationRecipe__FGRecipe__type & {
mProducedIn:
| ''
| [
Expand Down Expand Up @@ -60,9 +47,6 @@ export type FGCustomizationRecipe__FGRecipe__type =
| '/Game/FactoryGame/Buildable/Factory/QuantumEncoder/Build_QuantumEncoder.Build_QuantumEncoder_C'
)[],
];
mRelevantEvents: mEventType__optional_csv__type;
mVariablePowerConsumptionConstant: decimal_string__type;
mVariablePowerConsumptionFactor: decimal_string__type;
};

export type FGCustomizationRecipe__NativeClass =
Expand Down
3 changes: 3 additions & 0 deletions generated-types/common/classes/CoreUObject/FGFauxEntry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
faux_10__type,
faux_11__type,
faux_12__type,
common_base__FGCustomizationRecipe__FGRecipe__type,
NativeClass__type,
} from '../../common/unassigned';

Expand All @@ -31,6 +32,7 @@ export type FGFauxEntry__NativeClass = NativeClass__type & {
| faux_10__type
| faux_11__type
| faux_12__type
| common_base__FGCustomizationRecipe__FGRecipe__type
),
...(
| faux_1__type
Expand All @@ -46,6 +48,7 @@ export type FGFauxEntry__NativeClass = NativeClass__type & {
| faux_10__type
| faux_11__type
| faux_12__type
| common_base__FGCustomizationRecipe__FGRecipe__type
)[],
];
};
20 changes: 19 additions & 1 deletion generated-types/common/common/unassigned.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import {UnrealEngineString, StringStartsWith} from '../utils/validators';
import {
UnrealEngineString,
StringStartsWith,
StringPassedRegExp,
} from '../utils/validators';

import {
boolean__type,
Expand Down Expand Up @@ -129,6 +133,20 @@ export type common_base__FGBuildingDescriptor__mSubCategories__type = [
>[],
];

export type common_base__FGCustomizationRecipe__FGRecipe__type =
class__no_description__type & {
FullName: StringPassedRegExp<'^BlueprintGeneratedClass /Game/FactoryGame/(?:-?[A-Z][A-Za-z0-9_]+/)*(Recipe_[A-Za-z0-9_]+)\\.\\1_C$'>;
mDisplayName: Exclude<string, ''>;
mIngredients: '' | ItemClass__type;
mProduct: '' | ItemClass__type;
mManufacturingMenuPriority: decimal_string__type;
mManufactoringDuration: decimal_string__type;
mManualManufacturingMultiplier: decimal_string__type;
mRelevantEvents: mEventType__optional_csv__type;
mVariablePowerConsumptionConstant: decimal_string__type;
mVariablePowerConsumptionFactor: decimal_string__type;
};

export type common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type =
class__type & {
mAbbreviatedDisplayName: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@
import {StringPassedRegExp} from '../../utils/validators';

import {decimal_string__type} from '../../../common/common/scalar';

import {
mEventType__optional_csv__type,
ItemClass__type,
class__no_description__type,
common_base__FGCustomizationRecipe__FGRecipe__type,
NativeClass__type,
} from '../../../common/common/unassigned';

export type FGCustomizationRecipe__FGRecipe__type =
class__no_description__type & {
FullName: StringPassedRegExp<'^BlueprintGeneratedClass /Game/FactoryGame/(?:-?[A-Z][A-Za-z0-9_]+/)*(Recipe_[A-Za-z0-9_]+)\\.\\1_C$'>;
mDisplayName: Exclude<string, ''>;
mIngredients: '' | ItemClass__type;
mProduct: '' | ItemClass__type;
mManufacturingMenuPriority: decimal_string__type;
mManufactoringDuration: decimal_string__type;
mManualManufacturingMultiplier: decimal_string__type;
common_base__FGCustomizationRecipe__FGRecipe__type & {
mProducedIn:
| ''
| [
Expand Down Expand Up @@ -56,9 +43,6 @@ export type FGCustomizationRecipe__FGRecipe__type =
| '/Script/FactoryGame.FGBuildableAutomatedWorkBench'
)[],
];
mRelevantEvents: mEventType__optional_csv__type;
mVariablePowerConsumptionConstant: decimal_string__type;
mVariablePowerConsumptionFactor: decimal_string__type;
};

export type FGCustomizationRecipe__NativeClass =
Expand Down
58 changes: 1 addition & 57 deletions schema/1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -574,55 +574,8 @@
},
"FGCustomizationRecipe--FGRecipe": {
"type": "object",
"$ref": "common.schema.json#/$defs/class--no-description",
"required": [
"FullName",
"mDisplayName",
"mIngredients",
"mProduct",
"mManufacturingMenuPriority",
"mManufactoringDuration",
"mManualManufacturingMultiplier",
"mProducedIn",
"mRelevantEvents",
"mVariablePowerConsumptionConstant",
"mVariablePowerConsumptionFactor"
],
"$ref": "common.schema.json#/$defs/common-base--FGCustomizationRecipe--FGRecipe",
"properties": {
"FullName": {
"type": "string",
"pattern": "^BlueprintGeneratedClass /Game/FactoryGame/(?:-?[A-Z][A-Za-z0-9_]+/)*(Recipe_[A-Za-z0-9_]+)\\.\\1_C$"
},
"mDisplayName": {
"type": "string",
"minLength": 1
},
"mIngredients": {
"oneOf": [
{
"type": "string",
"const": ""
},
{
"$ref": "common.schema.json#/$defs/ItemClass"
}
]
},
"mProduct": {
"oneOf": [
{"type": "string", "const": ""},
{"$ref": "common.schema.json#/$defs/ItemClass"}
]
},
"mManufacturingMenuPriority": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mManufactoringDuration": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mManualManufacturingMultiplier": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mProducedIn": {
"oneOf": [
{"type": "string", "const": ""},
Expand Down Expand Up @@ -656,15 +609,6 @@
}
}
]
},
"mRelevantEvents": {
"$ref": "common.schema.json#/$defs/mEventType--optional-csv"
},
"mVariablePowerConsumptionConstant": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mVariablePowerConsumptionFactor": {
"$ref": "common.schema.json#/$defs/decimal-string"
}
}
},
Expand Down
67 changes: 67 additions & 0 deletions schema/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,68 @@
}
]
},
"common-base--FGCustomizationRecipe--FGRecipe": {
"type": "object",
"$ref": "common.schema.json#/$defs/class--no-description",
"required": [
"FullName",
"mDisplayName",
"mIngredients",
"mProduct",
"mManufacturingMenuPriority",
"mManufactoringDuration",
"mManualManufacturingMultiplier",
"mProducedIn",
"mRelevantEvents",
"mVariablePowerConsumptionConstant",
"mVariablePowerConsumptionFactor"
],
"properties": {
"FullName": {
"type": "string",
"pattern": "^BlueprintGeneratedClass /Game/FactoryGame/(?:-?[A-Z][A-Za-z0-9_]+/)*(Recipe_[A-Za-z0-9_]+)\\.\\1_C$"
},
"mDisplayName": {
"type": "string",
"minLength": 1
},
"mIngredients": {
"oneOf": [
{
"type": "string",
"const": ""
},
{
"$ref": "common.schema.json#/$defs/ItemClass"
}
]
},
"mProduct": {
"oneOf": [
{"type": "string", "const": ""},
{"$ref": "common.schema.json#/$defs/ItemClass"}
]
},
"mManufacturingMenuPriority": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mManufactoringDuration": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mManualManufacturingMultiplier": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mRelevantEvents": {
"$ref": "common.schema.json#/$defs/mEventType--optional-csv"
},
"mVariablePowerConsumptionConstant": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mVariablePowerConsumptionFactor": {
"$ref": "common.schema.json#/$defs/decimal-string"
}
}
},
"faux-1": {
"type": "object",
"$ref": "#/$defs/class",
Expand Down Expand Up @@ -1057,6 +1119,11 @@
"type": "object",
"$ref": "#/$defs/faux-12",
"unevaluatedProperties": false
},
{
"type": "object",
"$ref": "#/$defs/common-base--FGCustomizationRecipe--FGRecipe",
"unevaluatedProperties": false
}
]
}
Expand Down
58 changes: 1 addition & 57 deletions schema/update8.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,55 +447,8 @@
},
"FGCustomizationRecipe--FGRecipe": {
"type": "object",
"$ref": "common.schema.json#/$defs/class--no-description",
"required": [
"FullName",
"mDisplayName",
"mIngredients",
"mProduct",
"mManufacturingMenuPriority",
"mManufactoringDuration",
"mManualManufacturingMultiplier",
"mProducedIn",
"mRelevantEvents",
"mVariablePowerConsumptionConstant",
"mVariablePowerConsumptionFactor"
],
"$ref": "common.schema.json#/$defs/common-base--FGCustomizationRecipe--FGRecipe",
"properties": {
"FullName": {
"type": "string",
"pattern": "^BlueprintGeneratedClass /Game/FactoryGame/(?:-?[A-Z][A-Za-z0-9_]+/)*(Recipe_[A-Za-z0-9_]+)\\.\\1_C$"
},
"mDisplayName": {
"type": "string",
"minLength": 1
},
"mIngredients": {
"oneOf": [
{
"type": "string",
"const": ""
},
{
"$ref": "common.schema.json#/$defs/ItemClass"
}
]
},
"mProduct": {
"oneOf": [
{"type": "string", "const": ""},
{"$ref": "common.schema.json#/$defs/ItemClass"}
]
},
"mManufacturingMenuPriority": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mManufactoringDuration": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mManualManufacturingMultiplier": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mProducedIn": {
"oneOf": [
{"type": "string", "const": ""},
Expand Down Expand Up @@ -527,15 +480,6 @@
}
}
]
},
"mRelevantEvents": {
"$ref": "common.schema.json#/$defs/mEventType--optional-csv"
},
"mVariablePowerConsumptionConstant": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mVariablePowerConsumptionFactor": {
"$ref": "common.schema.json#/$defs/decimal-string"
}
}
},
Expand Down
9 changes: 5 additions & 4 deletions types-progress--common.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Types Progress

100.00% Complete (55 of 55)
100.00% Complete (59 of 59)

## Basic Types

- [x] boolean (common type)
- [x] boolean-extended
- [x] class (common type)
- [x] class--no-description
- [x] class--no-description (common type)
- [x] class--no-description-or-display-name
- [x] color (common type)
- [x] color-decimal
Expand Down Expand Up @@ -41,18 +41,19 @@
- [x] common-base--FGBuildingDescriptor--ClassName
- [x] common-base--FGBuildingDescriptor--mForm
- [x] common-base--FGBuildingDescriptor--mSubCategories
- [x] common-base--FGCustomizationRecipe--FGRecipe
- [x] common-base--FGItemDescriptor--FGBuildingDescriptor--FGResourceDescriptor
- [x] common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor--mSubCategories

## ItemClass

- [x] ItemClass
- [x] ItemClass (common type)
- [x] ItemClass--amount-required

## mEventType

- [x] mEventType
- [x] mEventType--optional-csv
- [x] mEventType--optional-csv (common type)

## UnrealEngineString

Expand Down
Loading

0 comments on commit 651167e

Please sign in to comment.