Skip to content

Commit

Permalink
add suit to common types
Browse files Browse the repository at this point in the history
-   re: #5
  • Loading branch information
SignpostMarv committed Nov 9, 2024
1 parent 291f8e2 commit aa77716
Show file tree
Hide file tree
Showing 11 changed files with 111 additions and 98 deletions.
1 change: 1 addition & 0 deletions common-imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
"common_type__FGSchematic__mUnlocks_mSchematics__mSchematics__type": "classes/CoreUObject/FGSchematic",
"common_type__FGSchematic__mUnlocks_mTapeUnlocks__type": "classes/CoreUObject/FGSchematic",
"common_type__FGSchematic__mUnlocks_resources_to_scan__type": "classes/CoreUObject/FGSchematic",
"common_type__common_base__FGSuitBase__type": "classes/CoreUObject/FGSuitBase",
"common_type__UnrealEngineString": "utils/validators",
"common_type__StringStartsWith": "utils/validators",
"common_type__StringPassedRegExp": "utils/validators"
Expand Down
20 changes: 6 additions & 14 deletions generated-types/1.0/classes/CoreUObject/FGSuitBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,14 @@ import {UnrealEngineString, StringStartsWith} from '../../utils/validators';

import {FGEquipment__base__type} from './FGEquipment';

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

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

export type FGSuitBase__type = FGEquipment__base__type & {
mImmunity: decimal_string__type;
mIsWorking: boolean__type;
mHasNegatedDamage: boolean__type;
mDamageNegated: decimal_string__type;
mFilterDuration: decimal_string__type;
mCountdown: decimal_string__type;
mDisableEffectTimer: decimal_string__type;
mIsBurningFuel: boolean__type;
import {common_base__FGSuitBase__type} from '../../../common/classes/CoreUObject/FGSuitBase';

export type FGSuitBase__type = FGSuitBase__merged__type & {
mSuitMeshMaterials: [
{
SlotName: 'Pioneer_torso' | 'Pioneer_Legs';
Expand Down Expand Up @@ -64,6 +53,9 @@ export type FGSuitBase__type = FGEquipment__base__type & {
};
};

export type FGSuitBase__merged__type =
common_base__FGSuitBase__type & FGEquipment__base__type;

export type FGSuitBase__NativeClass = NativeClass__type & {
Classes: [FGSuitBase__type];
};
15 changes: 15 additions & 0 deletions generated-types/common/classes/CoreUObject/FGSuitBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import {decimal_string__type, boolean__type} from '../../common/scalar';

import {common_base__FGEquipment__base__type} from './FGEquipment';

export type common_base__FGSuitBase__type =
common_base__FGEquipment__base__type & {
mImmunity: decimal_string__type;
mIsWorking: boolean__type;
mHasNegatedDamage: boolean__type;
mDamageNegated: decimal_string__type;
mFilterDuration: decimal_string__type;
mCountdown: decimal_string__type;
mDisableEffectTimer: decimal_string__type;
mIsBurningFuel: boolean__type;
};
3 changes: 3 additions & 0 deletions generated-types/common/common/unassigned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ import {common_base__FGHoverPack__type} from '../classes/CoreUObject/FGHoverPack

import {common_base__FGJetPack__type} from '../classes/CoreUObject/FGJetPack';

import {common_base__FGSuitBase__type} from '../classes/CoreUObject/FGSuitBase';

import {common_base__FGBuildableDroneStation__type} from '../classes/CoreUObject/FGBuildableDroneStation';

import {
Expand Down Expand Up @@ -227,6 +229,7 @@ export type faux_15__type = class__type & {
FGEquipmentStunSpear_xeno_zapper?: common_base__FGEquipmentStunSpear__xeno_zapper__type;
hoverpack?: common_base__FGHoverPack__type;
jetpack?: common_base__FGJetPack__type;
suit?: common_base__FGSuitBase__type;
};

export type faux_16__type = class__type & {
Expand Down
18 changes: 5 additions & 13 deletions generated-types/update8/classes/CoreUObject/FGSuitBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,11 @@ import {UnrealEngineString, StringStartsWith} from '../../utils/validators';

import {FGEquipment__base__type} from './FGEquipment';

import {
decimal_string__type,
boolean__type,
} from '../../../common/common/scalar';
import {common_base__FGSuitBase__type} from '../../../common/classes/CoreUObject/FGSuitBase';

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

export type FGSuitBase__type = FGEquipment__base__type & {
mImmunity: decimal_string__type;
mIsWorking: boolean__type;
mHasNegatedDamage: boolean__type;
mDamageNegated: decimal_string__type;
mFilterDuration: decimal_string__type;
mCountdown: decimal_string__type;
mDisableEffectTimer: decimal_string__type;
mIsBurningFuel: boolean__type;
export type FGSuitBase__type = FGSuitBase__merged__type & {
mSuit1PMeshMaterials: [
{
SlotName:
Expand Down Expand Up @@ -46,6 +35,9 @@ export type FGSuitBase__type = FGEquipment__base__type & {
];
};

export type FGSuitBase__merged__type =
common_base__FGSuitBase__type & FGEquipment__base__type;

export type FGSuitBase__NativeClass = NativeClass__type & {
Classes: [FGSuitBase__type];
};
44 changes: 11 additions & 33 deletions schema/1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2212,46 +2212,24 @@
}
}
},
"FGSuitBase--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGSuitBase"
},
{
"$ref": "#/$defs/FGEquipment--base"
}
]
},
"FGSuitBase": {
"type": "object",
"$ref": "#/$defs/FGEquipment--base",
"$ref": "#/$defs/FGSuitBase--merged",
"unevaluatedProperties": false,
"required": [
"mImmunity",
"mIsWorking",
"mHasNegatedDamage",
"mDamageNegated",
"mFilterDuration",
"mCountdown",
"mDisableEffectTimer",
"mIsBurningFuel",
"mSuitMeshMaterials"
],
"properties": {
"mImmunity": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIsWorking": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mHasNegatedDamage": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mDamageNegated": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mFilterDuration": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mCountdown": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mDisableEffectTimer": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIsBurningFuel": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mSuitMeshMaterials": {
"type": "string",
"minLength": 1,
Expand Down
43 changes: 43 additions & 0 deletions schema/common.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2822,6 +2822,46 @@
}
}
},
"common-base--FGSuitBase": {
"type": "object",
"$ref": "common.schema.json#/$defs/common-base--FGEquipment--base",
"required": [
"mImmunity",
"mIsWorking",
"mHasNegatedDamage",
"mDamageNegated",
"mFilterDuration",
"mCountdown",
"mDisableEffectTimer",
"mIsBurningFuel"
],
"properties": {
"mImmunity": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIsWorking": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mHasNegatedDamage": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mDamageNegated": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mFilterDuration": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mCountdown": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mDisableEffectTimer": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIsBurningFuel": {
"$ref": "common.schema.json#/$defs/boolean"
}
}
},
"faux-1": {
"type": "object",
"$ref": "#/$defs/class",
Expand Down Expand Up @@ -3158,6 +3198,9 @@
},
"jetpack": {
"$ref": "#/$defs/common-base--FGJetPack"
},
"suit": {
"$ref": "#/$defs/common-base--FGSuitBase"
}
}
},
Expand Down
44 changes: 11 additions & 33 deletions schema/update8.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1109,46 +1109,24 @@
}
}
},
"FGSuitBase--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGSuitBase"
},
{
"$ref": "#/$defs/FGEquipment--base"
}
]
},
"FGSuitBase": {
"type": "object",
"$ref": "#/$defs/FGEquipment--base",
"$ref": "#/$defs/FGSuitBase--merged",
"unevaluatedProperties": false,
"required": [
"mImmunity",
"mIsWorking",
"mHasNegatedDamage",
"mDamageNegated",
"mFilterDuration",
"mCountdown",
"mDisableEffectTimer",
"mIsBurningFuel",
"mSuit1PMeshMaterials"
],
"properties": {
"mImmunity": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIsWorking": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mHasNegatedDamage": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mDamageNegated": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mFilterDuration": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mCountdown": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mDisableEffectTimer": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIsBurningFuel": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mSuit1PMeshMaterials": {
"type": "string",
"minLength": 1,
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 (197 of 197)
100.00% Complete (198 of 198)

## Basic Types

Expand Down Expand Up @@ -126,6 +126,7 @@
- [x] common-base--FGSchematic--mUnlocks
- [x] common-base--FGSchematic--mUnlocks_Class
- [x] common-base--FGSchematic--with-unlocks
- [x] common-base--FGSuitBase
- [x] common-base--mSnappedPassthroughs (common type)

## FGSchematic
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 (303 of 303)
100.00% Complete (305 of 305)

## Basic Types

Expand All @@ -25,7 +25,6 @@
- [x] FGParachute
- [x] FGPipeHyperStart
- [x] FGPortableMinerDispenser
- [x] FGSuitBase
- [x] integer-string (common type)
- [x] integer-string--signed (common type)
- [x] mAspect (common type)
Expand Down Expand Up @@ -105,6 +104,7 @@
- [x] common-base--FGSchematic--mUnlocks (common type)
- [x] common-base--FGSchematic--mUnlocks_Class (common type)
- [x] common-base--FGSchematic--with-unlocks (common type)
- [x] common-base--FGSuitBase (common type)
- [x] common-base--mSnappedPassthroughs (common type)

## FGAmmoType
Expand Down Expand Up @@ -402,6 +402,11 @@
- [x] FGSchematic--with-unlocks
- [x] FGSchematic--with-unlocks--merged

## FGSuitBase

- [x] FGSuitBase
- [x] FGSuitBase--merged

## FGVehicleDescriptor

- [x] FGVehicleDescriptor--fueled-with-inventory
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 (342 of 342)
100.00% Complete (344 of 344)

## Basic Types

Expand All @@ -24,7 +24,6 @@
- [x] FGPipeHyperStart
- [x] FGPortableMinerDispenser
- [x] FGPowerShardDescriptor
- [x] FGSuitBase
- [x] integer-string (common type)
- [x] integer-string--signed (common type)
- [x] mAspect (common type)
Expand Down Expand Up @@ -107,6 +106,7 @@
- [x] common-base--FGSchematic--mUnlocks (common type)
- [x] common-base--FGSchematic--mUnlocks_Class (common type)
- [x] common-base--FGSchematic--with-unlocks (common type)
- [x] common-base--FGSuitBase (common type)
- [x] common-base--mSnappedPassthroughs (common type)

## FGAmmoType
Expand Down Expand Up @@ -465,6 +465,11 @@
- [x] FGSchematic--with-unlocks
- [x] FGSchematic--with-unlocks--merged

## FGSuitBase

- [x] FGSuitBase
- [x] FGSuitBase--merged

## FGVehicleDescriptor

- [x] FGVehicleDescriptor--fueled-with-inventory
Expand Down

0 comments on commit aa77716

Please sign in to comment.