Skip to content

Commit

Permalink
adding common base type used by both versions
Browse files Browse the repository at this point in the history
-   re: #4
  • Loading branch information
SignpostMarv committed Oct 21, 2024
1 parent 769f041 commit 5062b61
Show file tree
Hide file tree
Showing 13 changed files with 249 additions and 424 deletions.
1 change: 1 addition & 0 deletions common-imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"common_type__class__no_description_or_display_name__type": "common/unassigned",
"common_type__color__type": "common/unassigned",
"common_type__color_decimal__type": "common/unassigned",
"common_type__common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type": "common/unassigned",
"common_type__empty_object__type": "common/unassigned",
"common_type__ItemClass__type": "common/unassigned",
"common_type__ItemClass__amount_required__type": "common/unassigned",
Expand Down
3 changes: 2 additions & 1 deletion data-progress--common.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Data Progress

0.00% Complete (0 of 29)
0.00% Complete (0 of 30)

## /Script/CoreUObject.Class'/Script/FactoryGame.FGFauxEntry'

Expand Down Expand Up @@ -32,3 +32,4 @@
- [ ] faux
- [ ] faux
- [ ] faux
- [ ] faux
Binary file modified data/common/faux.json
Binary file not shown.
54 changes: 2 additions & 52 deletions generated-types/1.0/classes/CoreUObject/FGItemDescriptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,74 +4,24 @@ import {UnrealEngineString, StringStartsWith} from '../../utils/validators';

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

import {
Texture2D__type,
color__type,
mForm__type,
UnrealEngineString__array__type,
None__type,
class__type,
common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type,
NativeClass__type,
} from '../../../common/common/unassigned';

export type FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type =
class__type & {
mAbbreviatedDisplayName: string;
mStackSize:
| 'SS_ONE'
| 'SS_FLUID'
| 'SS_SMALL'
| 'SS_MEDIUM'
| 'SS_BIG'
| 'SS_HUGE';
mCanBeDiscarded: boolean__type;
mRememberPickUp: boolean__type;
mEnergyValue: decimal_string__type;
mRadioactiveDecay: decimal_string__type;
mSmallIcon: Texture2D__type;
mPersistentBigIcon: Texture2D__type;
mCrosshairMaterial:
| ('' | 'None')
| StringStartsWith<'/Game/FactoryGame/Interface/UI/Material/Crosshairs/'>;
mDescriptorStatBars:
| ''
| [
{
Value: integer_string__type;
},
...{
Value: integer_string__type;
}[],
];
mMenuPriority: decimal_string__type;
mFluidColor: color__type;
mGasColor: color__type;
common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type & {
mGasType: mGasType__type;
mCompatibleItemDescriptors:
| ''
| [
{
CompatibleItemType: 'CIT_AMMO' | 'CIT_WEAPON';
CompatibleItemDescriptors: UnrealEngineString__array__type;
},
...{
CompatibleItemType: 'CIT_AMMO' | 'CIT_WEAPON';
CompatibleItemDescriptors: UnrealEngineString__array__type;
}[],
];
mClassToScanFor:
| None__type
| StringStartsWith<'/Game/FactoryGame/Resource/Environment/'>
| StringStartsWith<'/Game/FactoryGame/World/Benefit/'>
| StringStartsWith<'/Game/FactoryGame/Prototype/WAT/'>;
mScannableType: 'RTWOT_Default' | 'RTWOT_WeakSignal' | 'RTWOT_Flora';
mShouldOverrideScannerDisplayText: boolean__type;
mScannerDisplayText: string;
mScannerLightColor: color__type;
mIsAlienItem: boolean__type;
mNeedsPickUpMarker: boolean__type;
};
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 @@ -7,6 +7,7 @@ import {
faux_6__type,
faux_7__type,
faux_8__type,
common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type,
NativeClass__type,
} from '../../common/unassigned';

Expand All @@ -21,6 +22,7 @@ export type FGFauxEntry__NativeClass = NativeClass__type & {
| faux_6__type
| faux_7__type
| faux_8__type
| common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type
),
...(
| faux_1__type
Expand All @@ -31,6 +33,7 @@ export type FGFauxEntry__NativeClass = NativeClass__type & {
| faux_6__type
| faux_7__type
| faux_8__type
| common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type
)[],
];
};
50 changes: 50 additions & 0 deletions generated-types/common/common/unassigned.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,56 @@ export type color_decimal__type = {
A: decimal_string__type;
};

export type common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type =
class__type & {
mAbbreviatedDisplayName: string;
mStackSize:
| 'SS_ONE'
| 'SS_FLUID'
| 'SS_SMALL'
| 'SS_MEDIUM'
| 'SS_BIG'
| 'SS_HUGE';
mCanBeDiscarded: boolean__type;
mRememberPickUp: boolean__type;
mEnergyValue: decimal_string__type;
mRadioactiveDecay: decimal_string__type;
mSmallIcon: Texture2D__type;
mPersistentBigIcon: Texture2D__type;
mCrosshairMaterial:
| ('' | 'None')
| StringStartsWith<'/Game/FactoryGame/Interface/UI/Material/Crosshairs/'>;
mDescriptorStatBars:
| ''
| [
{
Value: integer_string__type;
},
...{
Value: integer_string__type;
}[],
];
mMenuPriority: decimal_string__type;
mFluidColor: color__type;
mGasColor: color__type;
mCompatibleItemDescriptors:
| ''
| [
{
CompatibleItemType: 'CIT_AMMO' | 'CIT_WEAPON';
CompatibleItemDescriptors: UnrealEngineString__array__type;
},
...{
CompatibleItemType: 'CIT_AMMO' | 'CIT_WEAPON';
CompatibleItemDescriptors: UnrealEngineString__array__type;
}[],
];
mScannableType: 'RTWOT_Default' | 'RTWOT_WeakSignal' | 'RTWOT_Flora';
mShouldOverrideScannerDisplayText: boolean__type;
mScannerDisplayText: string;
mScannerLightColor: color__type;
};

export type empty_object__type = '()';

export type faux_1__type = class__type & {
Expand Down
59 changes: 3 additions & 56 deletions generated-types/update8/classes/CoreUObject/FGItemDescriptor.ts
Original file line number Diff line number Diff line change
@@ -1,73 +1,20 @@
import {UnrealEngineString, StringStartsWith} from '../../utils/validators';

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

import {
Texture2D__type,
color__type,
mForm__type,
UnrealEngineString__array__type,
None__type,
class__type,
common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type,
NativeClass__type,
} from '../../../common/common/unassigned';

export type FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type =
class__type & {
mAbbreviatedDisplayName: string;
mStackSize:
| 'SS_ONE'
| 'SS_FLUID'
| 'SS_SMALL'
| 'SS_MEDIUM'
| 'SS_BIG'
| 'SS_HUGE';
mCanBeDiscarded: boolean__type;
mRememberPickUp: boolean__type;
mEnergyValue: decimal_string__type;
mRadioactiveDecay: decimal_string__type;
mSmallIcon: Texture2D__type;
mPersistentBigIcon: Texture2D__type;
mCrosshairMaterial:
| ('' | 'None')
| StringStartsWith<'/Game/FactoryGame/Interface/UI/Material/Crosshairs/'>;
mDescriptorStatBars:
| ''
| [
{
Value: integer_string__type;
},
...{
Value: integer_string__type;
}[],
];
mMenuPriority: decimal_string__type;
mFluidColor: color__type;
mGasColor: color__type;
mCompatibleItemDescriptors:
| ''
| [
{
CompatibleItemType: 'CIT_AMMO' | 'CIT_WEAPON';
CompatibleItemDescriptors: UnrealEngineString__array__type;
},
...{
CompatibleItemType: 'CIT_AMMO' | 'CIT_WEAPON';
CompatibleItemDescriptors: UnrealEngineString__array__type;
}[],
];
common_base__FGItemDescriptor__FGBuildingDescriptor__FGResourceDescriptor__type & {
mClassToScanFor:
| None__type
| StringStartsWith<'/Game/FactoryGame/Resource/Environment/'>
| StringStartsWith<'/Game/FactoryGame/World/Benefit/'>;
mScannableType: 'RTWOT_Default' | 'RTWOT_WeakSignal' | 'RTWOT_Flora';
mShouldOverrideScannerDisplayText: boolean__type;
mScannerDisplayText: string;
mScannerLightColor: color__type;
};

export type FGItemDescriptor__FGResourceDescriptor__type =
Expand Down
Loading

0 comments on commit 5062b61

Please sign in to comment.