Skip to content

Commit

Permalink
pulling base wall type into common types
Browse files Browse the repository at this point in the history
-   re: #5
  • Loading branch information
SignpostMarv committed Nov 5, 2024
1 parent b1edcb4 commit b86c794
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 23 deletions.
1 change: 1 addition & 0 deletions common-imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"common_type__common_base__FGBuildablePipeReservoir__type": "classes/CoreUObject/FGBuildablePipeReservoir",
"common_type__common_base__FGBuildablePoleLightweight__type": "classes/CoreUObject/FGBuildablePoleLightweight",
"common_type__common_base__FGBuildableTradingPost__type": "classes/CoreUObject/FGBuildableTradingPost",
"common_type__common_base__FGBuildableWall__base__type": "classes/CoreUObject/FGBuildableWall",
"common_type__common_base__FGBuildingDescriptor__type": "classes/CoreUObject/FGBuildingDescriptor",
"common_type__common_base__FGBuildingDescriptor__ClassName__type": "classes/CoreUObject/FGBuildingDescriptor",
"common_type__common_base__FGBuildingDescriptor__mForm__type": "classes/CoreUObject/FGBuildingDescriptor",
Expand Down
8 changes: 5 additions & 3 deletions generated-types/1.0/classes/CoreUObject/FGBuildableWall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import {FGBuildable__base__type} from './FGBuildable';

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

import {common_base__FGBuildableWall__base__type} from '../../../common/classes/CoreUObject/FGBuildableWall';

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

export type FGBuildableWall__base__type = FGBuildable__base__type & {
mHeight: decimal_string__type;
};
export type FGBuildableWall__base__type =
common_base__FGBuildableWall__base__type &
FGBuildable__base__type;

export type FGBuildableWall__base__rectangle__type =
FGBuildableWall__base__type & {
Expand Down
8 changes: 8 additions & 0 deletions generated-types/common/classes/CoreUObject/FGBuildableWall.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {decimal_string__type} from '../../common/scalar';

import {common_base__FGBuildable__base__type} from './FGBuildable';

export type common_base__FGBuildableWall__base__type =
common_base__FGBuildable__base__type & {
mHeight: decimal_string__type;
};
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 @@ -32,6 +32,7 @@ import {
faux_29__type,
faux_30__type,
faux_31__type,
faux_32__type,
NativeClass__type,
} from '../../common/unassigned';

Expand Down Expand Up @@ -77,6 +78,7 @@ export type FGFauxEntry__NativeClass = NativeClass__type & {
| faux_29__type
| faux_30__type
| faux_31__type
| faux_32__type
),
...(
| faux_1__type
Expand Down Expand Up @@ -114,6 +116,7 @@ export type FGFauxEntry__NativeClass = NativeClass__type & {
| faux_29__type
| faux_30__type
| faux_31__type
| faux_32__type
)[],
];
};
7 changes: 7 additions & 0 deletions generated-types/common/common/unassigned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ import {common_base__FGRecipe__type} from '../classes/CoreUObject/FGRecipe';

import {common_base__FGBuildableBlueprintDesigner__type} from '../classes/CoreUObject/FGBuildableBlueprintDesigner';

import {common_base__FGBuildableWall__base__type} from '../classes/CoreUObject/FGBuildableWall';

export type class__type = class__no_description__type & {
mDescription: string;
};
Expand Down Expand Up @@ -282,6 +284,11 @@ export type faux_31__type = class__type & {
ref: common_base__FGSchematic__mUnlocks_Class__type;
};

export type faux_32__type = class__type & {
faux?: 'FGBuildableWall--base';
ref: common_base__FGBuildableWall__base__type;
};

export type faux_4__type = class__type & {
faux_texture: Texture2D__type;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ import {FGBuildable__base__type} from './FGBuildable';

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

import {common_base__FGBuildableWall__base__type} from '../../../common/classes/CoreUObject/FGBuildableWall';

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

export type FGBuildableWall__base__type = FGBuildable__base__type & {
mHeight: decimal_string__type;
};
export type FGBuildableWall__base__type =
common_base__FGBuildableWall__base__type &
FGBuildable__base__type;

export type FGBuildableWall__base__rectangle__type =
FGBuildableWall__base__type & {
Expand Down
14 changes: 7 additions & 7 deletions schema/1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -817,14 +817,14 @@
}
},
"FGBuildableWall--base": {
"type": "object",
"$ref": "#/$defs/FGBuildable--base",
"required": ["mHeight", "mDisplayName", "mDescription"],
"properties": {
"mHeight": {
"$ref": "common.schema.json#/$defs/decimal-string"
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGBuildableWall--base"
},
{
"$ref": "#/$defs/FGBuildable--base"
}
}
]
},
"FGBuildableWall--base--rectangle": {
"type": "object",
Expand Down
29 changes: 29 additions & 0 deletions schema/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,16 @@
}
]
},
"common-base--FGBuildableWall--base": {
"type": "object",
"$ref": "common.schema.json#/$defs/common-base--FGBuildable--base",
"required": ["mHeight", "mDisplayName", "mDescription"],
"properties": {
"mHeight": {
"$ref": "common.schema.json#/$defs/decimal-string"
}
}
},
"common-base--FGBuildableTradingPost": {
"type": "object",
"$ref": "common.schema.json#/$defs/common-base--FGBuildable--consumes-power-base",
Expand Down Expand Up @@ -2813,6 +2823,20 @@
"$ref": "#/$defs/common-base--FGSchematic--mUnlocks_Class"
}
}
},
"faux-32": {
"type": "object",
"$ref": "#/$defs/class",
"required": ["ref"],
"properties": {
"faux": {
"type": "string",
"const": "FGBuildableWall--base"
},
"ref": {
"$ref": "#/$defs/common-base--FGBuildableWall--base"
}
}
}
},
"items": false,
Expand Down Expand Up @@ -3004,6 +3028,11 @@
"type": "object",
"$ref": "#/$defs/faux-31",
"unevaluatedProperties": false
},
{
"type": "object",
"$ref": "#/$defs/faux-32",
"unevaluatedProperties": false
}
]
}
Expand Down
14 changes: 7 additions & 7 deletions schema/update8.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,14 @@
}
},
"FGBuildableWall--base": {
"type": "object",
"$ref": "#/$defs/FGBuildable--base",
"required": ["mHeight", "mDisplayName", "mDescription"],
"properties": {
"mHeight": {
"$ref": "common.schema.json#/$defs/decimal-string"
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGBuildableWall--base"
},
{
"$ref": "#/$defs/FGBuildable--base"
}
}
]
},
"FGBuildableWall--base--rectangle": {
"type": "object",
Expand Down
4 changes: 3 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 (160 of 160)
100.00% Complete (162 of 162)

## Basic Types

Expand Down Expand Up @@ -40,6 +40,7 @@
- [x] faux-3
- [x] faux-30
- [x] faux-31
- [x] faux-32
- [x] faux-4
- [x] faux-5
- [x] faux-6
Expand Down Expand Up @@ -86,6 +87,7 @@
- [x] common-base--FGBuildablePipeReservoir
- [x] common-base--FGBuildablePoleLightweight
- [x] common-base--FGBuildableTradingPost
- [x] common-base--FGBuildableWall--base
- [x] common-base--FGBuildingDescriptor
- [x] common-base--FGBuildingDescriptor--ClassName (common type)
- [x] common-base--FGBuildingDescriptor--mForm (common type)
Expand Down
3 changes: 2 additions & 1 deletion types-progress--update8.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Types Progress

100.00% Complete (266 of 266)
100.00% Complete (267 of 267)

## Basic Types

Expand Down Expand Up @@ -74,6 +74,7 @@
- [x] common-base--FGBuildablePipeReservoir (common type)
- [x] common-base--FGBuildablePoleLightweight (common type)
- [x] common-base--FGBuildableTradingPost (common type)
- [x] common-base--FGBuildableWall--base (common type)
- [x] common-base--FGBuildingDescriptor (common type)
- [x] common-base--FGBuildingDescriptor--ClassName (common type)
- [x] common-base--FGBuildingDescriptor--mForm (common type)
Expand Down
3 changes: 2 additions & 1 deletion 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 (305 of 305)
100.00% Complete (306 of 306)

## Basic Types

Expand Down Expand Up @@ -75,6 +75,7 @@
- [x] common-base--FGBuildablePipeReservoir (common type)
- [x] common-base--FGBuildablePoleLightweight (common type)
- [x] common-base--FGBuildableTradingPost (common type)
- [x] common-base--FGBuildableWall--base (common type)
- [x] common-base--FGBuildingDescriptor (common type)
- [x] common-base--FGBuildingDescriptor--ClassName (common type)
- [x] common-base--FGBuildingDescriptor--mForm (common type)
Expand Down

0 comments on commit b86c794

Please sign in to comment.