Skip to content

Commit

Permalink
adding equipment descriptors to common types
Browse files Browse the repository at this point in the history
-   re: #5
  • Loading branch information
SignpostMarv committed Nov 10, 2024
1 parent 7a96111 commit b4c819e
Show file tree
Hide file tree
Showing 11 changed files with 129 additions and 27 deletions.
2 changes: 2 additions & 0 deletions common-imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@
"common_type__common_base__FGChainsaw__type": "classes/CoreUObject/FGChainsaw",
"common_type__common_base__FGCustomizationRecipe__FGRecipe__type": "classes/CoreUObject/FGCustomizationRecipe",
"common_type__common_base__FGEquipment__base__type": "classes/CoreUObject/FGEquipment",
"common_type__common_base__FGEquipmentDescriptor__type": "classes/CoreUObject/FGEquipmentDescriptor",
"common_type__common_base__FGEquipmentDescriptor__base__type": "classes/CoreUObject/FGEquipmentDescriptor",
"common_type__common_base__FGEquipmentStunSpear__type": "classes/CoreUObject/FGEquipmentStunSpear",
"common_type__common_base__FGEquipmentStunSpear__base__type": "classes/CoreUObject/FGEquipmentStunSpear",
"common_type__common_base__FGEquipmentStunSpear__xeno_zapper__type": "classes/CoreUObject/FGEquipmentStunSpear",
Expand Down
19 changes: 14 additions & 5 deletions generated-types/1.0/classes/CoreUObject/FGEquipmentDescriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@ import {
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type,
} from './FGItemDescriptor';

import {integer_string__type} from '../../../common/common/scalar';
import {
common_base__FGEquipmentDescriptor__base__type,
common_base__FGEquipmentDescriptor__type,
} from '../../../common/classes/CoreUObject/FGEquipmentDescriptor';

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

export type FGEquipmentDescriptor__type = FGEquipmentDescriptor__base__type;
export type FGEquipmentDescriptor__type = FGEquipmentDescriptor__merged__type;

export type FGEquipmentDescriptor__base__type =
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type & {
mResourceSinkPoints: integer_string__type;
};
FGEquipmentDescriptor__base__merged__type;

export type FGEquipmentDescriptor__base__merged__type =
common_base__FGEquipmentDescriptor__base__type &
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type;

export type FGEquipmentDescriptor__merged__type =
common_base__FGEquipmentDescriptor__type &
FGEquipmentDescriptor__base__type;

export type FGEquipmentDescriptor__NativeClass =
NativeClass__type & {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import {integer_string__type} from '../../common/scalar';

import {common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type} from './FGItemDescriptor';

export type common_base__FGEquipmentDescriptor__type =
common_base__FGEquipmentDescriptor__base__type;

export type common_base__FGEquipmentDescriptor__base__type =
common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type & {
mResourceSinkPoints: integer_string__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 @@ -136,6 +136,11 @@ import {common_base__FGBuildablePowerPole__type} from '../classes/CoreUObject/FG

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

import {
common_base__FGEquipmentDescriptor__base__type,
common_base__FGEquipmentDescriptor__type,
} from '../classes/CoreUObject/FGEquipmentDescriptor';

export type class__type = class__no_description__type & {
mDescription: string;
};
Expand Down Expand Up @@ -413,6 +418,8 @@ export type faux_9b__type = class__type & {
faux: 'stashing all the remaining descriptors here';
FGItemDescriptor_FGResourceDescriptor_FGPoleDescriptor?: common_base__FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type;
FGPoleDescriptor?: common_base__FGPoleDescriptor__type;
FGEquipmentDescriptor_base?: common_base__FGEquipmentDescriptor__base__type;
FGEquipmentDescriptor?: common_base__FGEquipmentDescriptor__type;
};

export type InfinityExtrap__type = 'RCCE_Constant';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,25 @@ import {
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type,
} from './FGItemDescriptor';

import {integer_string__type} from '../../../common/common/scalar';
import {
common_base__FGEquipmentDescriptor__base__type,
common_base__FGEquipmentDescriptor__type,
} from '../../../common/classes/CoreUObject/FGEquipmentDescriptor';

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

export type FGEquipmentDescriptor__type = FGEquipmentDescriptor__base__type;
export type FGEquipmentDescriptor__type = FGEquipmentDescriptor__merged__type;

export type FGEquipmentDescriptor__base__type =
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type & {
mResourceSinkPoints: integer_string__type;
};
FGEquipmentDescriptor__base__merged__type;

export type FGEquipmentDescriptor__base__merged__type =
common_base__FGEquipmentDescriptor__base__type &
FGItemDescriptor__FGResourceDescriptor__FGPoleDescriptor__type;

export type FGEquipmentDescriptor__merged__type =
common_base__FGEquipmentDescriptor__type &
FGEquipmentDescriptor__base__type;

export type FGEquipmentDescriptor__NativeClass =
NativeClass__type & {
Expand Down
28 changes: 21 additions & 7 deletions schema/1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3554,19 +3554,33 @@
}
}
},
"FGEquipmentDescriptor--base--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGEquipmentDescriptor--base"
},
{
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor"
}
]
},
"FGEquipmentDescriptor--base": {
"type": "object",
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor",
"required": ["mResourceSinkPoints"],
"properties": {
"mResourceSinkPoints": {
"$ref": "common.schema.json#/$defs/integer-string"
"$ref": "#/$defs/FGEquipmentDescriptor--base--merged"
},
"FGEquipmentDescriptor--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGEquipmentDescriptor"
},
{
"$ref": "#/$defs/FGEquipmentDescriptor--base"
}
}
]
},
"FGEquipmentDescriptor": {
"type": "object",
"$ref": "#/$defs/FGEquipmentDescriptor--base",
"$ref": "#/$defs/FGEquipmentDescriptor--merged",
"unevaluatedProperties": false
},
"FGConsumableDescriptor--base": {
Expand Down
20 changes: 20 additions & 0 deletions schema/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3051,6 +3051,20 @@
}
}
},
"common-base--FGEquipmentDescriptor--base": {
"type": "object",
"$ref": "common.schema.json#/$defs/common-base--FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor",
"required": ["mResourceSinkPoints"],
"properties": {
"mResourceSinkPoints": {
"$ref": "common.schema.json#/$defs/integer-string"
}
}
},
"common-base--FGEquipmentDescriptor": {
"type": "object",
"$ref": "common.schema.json#/$defs/common-base--FGEquipmentDescriptor--base"
},
"faux-1": {
"type": "object",
"$ref": "#/$defs/class",
Expand Down Expand Up @@ -3224,6 +3238,12 @@
},
"FGPoleDescriptor": {
"$ref": "#/$defs/common-base--FGPoleDescriptor"
},
"FGEquipmentDescriptor_base": {
"$ref": "#/$defs/common-base--FGEquipmentDescriptor--base"
},
"FGEquipmentDescriptor": {
"$ref": "#/$defs/common-base--FGEquipmentDescriptor"
}
}
},
Expand Down
28 changes: 21 additions & 7 deletions schema/update8.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1327,19 +1327,33 @@
}
}
},
"FGEquipmentDescriptor--base--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGEquipmentDescriptor--base"
},
{
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor"
}
]
},
"FGEquipmentDescriptor--base": {
"type": "object",
"$ref": "#/$defs/FGItemDescriptor--FGResourceDescriptor--FGPoleDescriptor",
"required": ["mResourceSinkPoints"],
"properties": {
"mResourceSinkPoints": {
"$ref": "common.schema.json#/$defs/integer-string"
"$ref": "#/$defs/FGEquipmentDescriptor--base--merged"
},
"FGEquipmentDescriptor--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGEquipmentDescriptor"
},
{
"$ref": "#/$defs/FGEquipmentDescriptor--base"
}
}
]
},
"FGEquipmentDescriptor": {
"type": "object",
"$ref": "#/$defs/FGEquipmentDescriptor--base",
"$ref": "#/$defs/FGEquipmentDescriptor--merged",
"unevaluatedProperties": false
},
"FGConsumableDescriptor--base": {
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 (206 of 206)
100.00% Complete (209 of 209)

## Basic Types

Expand Down Expand Up @@ -109,6 +109,8 @@
- [x] common-base--FGChainsaw
- [x] common-base--FGCustomizationRecipe--FGRecipe (common type)
- [x] common-base--FGEquipment--base (common type)
- [x] common-base--FGEquipmentDescriptor
- [x] common-base--FGEquipmentDescriptor--base (common type)
- [x] common-base--FGEquipmentStunSpear
- [x] common-base--FGEquipmentStunSpear--base (common type)
- [x] common-base--FGEquipmentStunSpear--xeno-zapper
Expand Down
9 changes: 8 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 (318 of 318)
100.00% Complete (322 of 322)

## Basic Types

Expand Down Expand Up @@ -81,6 +81,8 @@
- [x] common-base--FGChainsaw (common type)
- [x] common-base--FGCustomizationRecipe--FGRecipe (common type)
- [x] common-base--FGEquipment--base (common type)
- [x] common-base--FGEquipmentDescriptor (common type)
- [x] common-base--FGEquipmentDescriptor--base (common type)
- [x] common-base--FGEquipmentStunSpear (common type)
- [x] common-base--FGEquipmentStunSpear--base (common type)
- [x] common-base--FGEquipmentStunSpear--xeno-zapper (common type)
Expand Down Expand Up @@ -350,6 +352,11 @@
- [x] FGEquipment--placeable
- [x] FGEquipmentDescriptor--base

## FGEquipmentDescriptor

- [x] FGEquipmentDescriptor--base--merged
- [x] FGEquipmentDescriptor--merged

## FGEquipmentStunSpear

- [x] FGEquipmentStunSpear--base
Expand Down
9 changes: 8 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 (357 of 357)
100.00% Complete (361 of 361)

## Basic Types

Expand Down Expand Up @@ -87,6 +87,8 @@
- [x] common-base--FGChainsaw (common type)
- [x] common-base--FGCustomizationRecipe--FGRecipe (common type)
- [x] common-base--FGEquipment--base (common type)
- [x] common-base--FGEquipmentDescriptor (common type)
- [x] common-base--FGEquipmentDescriptor--base (common type)
- [x] common-base--FGEquipmentStunSpear (common type)
- [x] common-base--FGEquipmentStunSpear--base (common type)
- [x] common-base--FGEquipmentStunSpear--xeno-zapper (common type)
Expand Down Expand Up @@ -389,6 +391,11 @@
- [x] FGEquipment--placeable
- [x] FGEquipmentDescriptor--base

## FGEquipmentDescriptor

- [x] FGEquipmentDescriptor--base--merged
- [x] FGEquipmentDescriptor--merged

## FGEquipmentStunSpear

- [x] FGEquipmentStunSpear--base
Expand Down

0 comments on commit b4c819e

Please sign in to comment.