Skip to content

Commit

Permalink
adding pole descriptor to common types
Browse files Browse the repository at this point in the history
-   re: #5
  • Loading branch information
SignpostMarv committed Nov 7, 2024
1 parent 7af910e commit 52a7cbe
Show file tree
Hide file tree
Showing 11 changed files with 117 additions and 104 deletions.
1 change: 1 addition & 0 deletions common-imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"common_type__common_base__FGItemDescriptor__FGResourceDescriptor__type": "classes/CoreUObject/FGItemDescriptor",
"common_type__common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type": "classes/CoreUObject/FGItemDescriptor",
"common_type__common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__mSubCategories__type": "classes/CoreUObject/FGItemDescriptor",
"common_type__common_base__FGPoleDescriptor__type": "classes/CoreUObject/FGPoleDescriptor",
"common_type__common_base__FGRecipe__type": "classes/CoreUObject/FGRecipe",
"common_type__common_base__FGResourceDescriptor__type": "classes/CoreUObject/FGResourceDescriptor",
"common_type__common_base__FGSchematic__base__type": "classes/CoreUObject/FGSchematic",
Expand Down
27 changes: 7 additions & 20 deletions generated-types/1.0/classes/CoreUObject/FGPoleDescriptor.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
import {UnrealEngineString} from '../../utils/validators';

import {FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type} from './FGItemDescriptor';

import {common_base__FGPoleDescriptor__type} from '../../../common/classes/CoreUObject/FGPoleDescriptor';

import {NativeClass__type} from '../../../common/common/unassigned';

export type FGPoleDescriptor__type =
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type & {
mForm: 'RF_INVALID';
mSubCategories: [
UnrealEngineString<
'/Script/Engine.BlueprintGeneratedClass',
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C'
>,
...UnrealEngineString<
'/Script/Engine.BlueprintGeneratedClass',
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C'
>[],
];
};
export type FGPoleDescriptor__type = FGPoleDescriptor__merged__type;

export type FGPoleDescriptor__merged__type =
common_base__FGPoleDescriptor__type &
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type;

export type FGPoleDescriptor__NativeClass = NativeClass__type & {
Classes: [FGPoleDescriptor__type, ...FGPoleDescriptor__type[]];
Expand Down
22 changes: 22 additions & 0 deletions generated-types/common/classes/CoreUObject/FGPoleDescriptor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import {UnrealEngineString} from '../../utils/validators';

import {common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type} from './FGItemDescriptor';

export type common_base__FGPoleDescriptor__type =
common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type & {
mForm: 'RF_INVALID';
mSubCategories: [
UnrealEngineString<
'/Script/Engine.BlueprintGeneratedClass',
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C'
>,
...UnrealEngineString<
'/Script/Engine.BlueprintGeneratedClass',
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C'
>[],
];
};
7 changes: 5 additions & 2 deletions generated-types/common/common/unassigned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ import {

import {common_base__FGBuildableRailroadTrack__type} from '../classes/CoreUObject/FGBuildableRailroadTrack';

import {common_base__FGPoleDescriptor__type} from '../classes/CoreUObject/FGPoleDescriptor';

export type class__type = class__no_description__type & {
mDescription: string;
};
Expand Down Expand Up @@ -343,8 +345,9 @@ export type faux_9__type = class__type & {
};

export type faux_9b__type = class__type & {
faux: 'common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor';
FGPoleDescriptor: common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type;
faux: 'stashing all the remaining descriptors here';
FGItemDescriptor_FGResourceDescriptor_FGPoleDescriptor?: common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type;
FGPoleDescriptor?: common_base__FGPoleDescriptor__type;
};

export type InfinityExtrap__type = 'RCCE_Constant';
Expand Down
27 changes: 7 additions & 20 deletions generated-types/update8/classes/CoreUObject/FGPoleDescriptor.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
import {UnrealEngineString} from '../../utils/validators';

import {FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type} from './FGItemDescriptor';

import {common_base__FGPoleDescriptor__type} from '../../../common/classes/CoreUObject/FGPoleDescriptor';

import {NativeClass__type} from '../../../common/common/unassigned';

export type FGPoleDescriptor__type =
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type & {
mForm: 'RF_INVALID';
mSubCategories: [
UnrealEngineString<
'/Script/Engine.BlueprintGeneratedClass',
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C'
>,
...UnrealEngineString<
'/Script/Engine.BlueprintGeneratedClass',
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C'
| '/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C'
>[],
];
};
export type FGPoleDescriptor__type = FGPoleDescriptor__merged__type;

export type FGPoleDescriptor__merged__type =
common_base__FGPoleDescriptor__type &
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type;

export type FGPoleDescriptor__NativeClass = NativeClass__type & {
Classes: [FGPoleDescriptor__type, ...FGPoleDescriptor__type[]];
Expand Down
39 changes: 12 additions & 27 deletions schema/1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -985,35 +985,20 @@
"$ref": "#/$defs/FGBuildablePoleLightweight--merged",
"unevaluatedProperties": false
},
"FGPoleDescriptor": {
"type": "object",
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor",
"unevaluatedProperties": false,
"required": ["mSubCategories", "mForm"],
"properties": {
"mForm": {
"type": "string",
"const": "RF_INVALID"
"FGPoleDescriptor--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGPoleDescriptor"
},
"mSubCategories": {
"type": "string",
"minLength": 1,
"typed_string": {
"minItems": 1,
"items": {
"type": "string",
"minLength": 1,
"UnrealEngineString": {
"right": [
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C",
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C",
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C"
]
}
}
}
{
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor"
}
}
]
},
"FGPoleDescriptor": {
"type": "object",
"$ref": "#/$defs/FGPoleDescriptor--merged",
"unevaluatedProperties": false
},
"FGBuildableConveyorBelt--base": {
"type": "object",
Expand Down
38 changes: 35 additions & 3 deletions schema/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1244,6 +1244,35 @@
}
}
},
"common-base--FGPoleDescriptor": {
"type": "object",
"$ref": "common.schema.json#/$defs/common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor",
"required": ["mSubCategories", "mForm"],
"properties": {
"mForm": {
"type": "string",
"const": "RF_INVALID"
},
"mSubCategories": {
"type": "string",
"minLength": 1,
"typed_string": {
"minItems": 1,
"items": {
"type": "string",
"minLength": 1,
"UnrealEngineString": {
"right": [
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C",
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C",
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C"
]
}
}
}
}
}
},
"common-base--FGBuildable--pipeline-accessory--base": {
"type": "object",
"$ref": "common.schema.json#/$defs/common-base--FGBuildable--consumes-power-base",
Expand Down Expand Up @@ -2612,15 +2641,18 @@
"faux-9b": {
"type": "object",
"$ref": "#/$defs/class",
"required": ["faux", "FGPoleDescriptor"],
"required": ["faux"],
"unevaluatedProperties": false,
"properties": {
"faux": {
"type": "string",
"const": "common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor"
"const": "stashing all the remaining descriptors here"
},
"FGPoleDescriptor": {
"FGItemDescriptor_FGResourceDescriptor_FGPoleDescriptor": {
"$ref": "#/$defs/common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor"
},
"FGPoleDescriptor": {
"$ref": "#/$defs/common-base--FGPoleDescriptor"
}
}
},
Expand Down
39 changes: 12 additions & 27 deletions schema/update8.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -676,35 +676,20 @@
"$ref": "#/$defs/FGBuildablePoleLightweight--merged",
"unevaluatedProperties": false
},
"FGPoleDescriptor": {
"type": "object",
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor",
"unevaluatedProperties": false,
"required": ["mSubCategories", "mForm"],
"properties": {
"mForm": {
"type": "string",
"const": "RF_INVALID"
"FGPoleDescriptor--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGPoleDescriptor"
},
"mSubCategories": {
"type": "string",
"minLength": 1,
"typed_string": {
"minItems": 1,
"items": {
"type": "string",
"minLength": 1,
"UnrealEngineString": {
"right": [
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_ConverPole.SC_ConverPole_C",
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_PipeSupport.SC_PipeSupport_C",
"/Game/FactoryGame/Interface/UI/InGame/BuildMenu/BuildCategories/Sub_Transport/SC_HyperTubes.SC_HyperTubes_C"
]
}
}
}
{
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor"
}
}
]
},
"FGPoleDescriptor": {
"type": "object",
"$ref": "#/$defs/FGPoleDescriptor--merged",
"unevaluatedProperties": false
},
"FGBuildableConveyorBelt--base": {
"type": "object",
Expand Down
3 changes: 2 additions & 1 deletion types-progress--common.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Types Progress

100.00% Complete (177 of 177)
100.00% Complete (178 of 178)

## Basic Types

Expand Down Expand Up @@ -105,6 +105,7 @@
- [x] common-base--FGItemDescriptor--FGResourceDescriptor (common type)
- [x] common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor (common type)
- [x] common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor--mSubCategories (common type)
- [x] common-base--FGPoleDescriptor
- [x] common-base--FGRecipe
- [x] common-base--FGResourceDescriptor
- [x] common-base--FGSchematic--base (common type)
Expand Down
9 changes: 7 additions & 2 deletions types-progress--update8.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Types Progress

100.00% Complete (281 of 281)
100.00% Complete (283 of 283)

## Basic Types

Expand All @@ -26,7 +26,6 @@
- [x] FGObjectScanner
- [x] FGParachute
- [x] FGPipeHyperStart
- [x] FGPoleDescriptor
- [x] FGPortableMinerDispenser
- [x] FGSuitBase
- [x] integer-string (common type)
Expand Down Expand Up @@ -90,6 +89,7 @@
- [x] common-base--FGItemDescriptor--FGResourceDescriptor (common type)
- [x] common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor (common type)
- [x] common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor--mSubCategories (common type)
- [x] common-base--FGPoleDescriptor (common type)
- [x] common-base--FGRecipe (common type)
- [x] common-base--FGResourceDescriptor (common type)
- [x] common-base--FGSchematic--base (common type)
Expand Down Expand Up @@ -335,6 +335,11 @@
- [x] FGItemDescriptor--FGResourceDescriptor
- [x] FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor

## FGPoleDescriptor

- [x] FGPoleDescriptor
- [x] FGPoleDescriptor--merged

## FGRecipe

- [x] FGRecipe
Expand Down
9 changes: 7 additions & 2 deletions types-progress--version_1_0_0_4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Types Progress

100.00% Complete (320 of 320)
100.00% Complete (322 of 322)

## Basic Types

Expand All @@ -23,7 +23,6 @@
- [x] FGJetPack
- [x] FGObjectScanner
- [x] FGPipeHyperStart
- [x] FGPoleDescriptor
- [x] FGPortableMinerDispenser
- [x] FGPowerShardDescriptor
- [x] FGSuitBase
Expand Down Expand Up @@ -91,6 +90,7 @@
- [x] common-base--FGItemDescriptor--FGResourceDescriptor (common type)
- [x] common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor (common type)
- [x] common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor--mSubCategories (common type)
- [x] common-base--FGPoleDescriptor (common type)
- [x] common-base--FGRecipe (common type)
- [x] common-base--FGResourceDescriptor (common type)
- [x] common-base--FGSchematic--base (common type)
Expand Down Expand Up @@ -397,6 +397,11 @@
- [x] FGParachute--mEquipMontage
- [x] FGParachute--mUnEquipMontage

## FGPoleDescriptor

- [x] FGPoleDescriptor
- [x] FGPoleDescriptor--merged

## FGRecipe

- [x] FGRecipe
Expand Down

0 comments on commit 52a7cbe

Please sign in to comment.