Skip to content

Commit

Permalink
pulling pipeline into common types
Browse files Browse the repository at this point in the history
-   re: #5
  • Loading branch information
SignpostMarv committed Nov 12, 2024
1 parent 77b822b commit 248a7f9
Show file tree
Hide file tree
Showing 11 changed files with 207 additions and 284 deletions.
1 change: 1 addition & 0 deletions common-imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
"common_type__common_base__FGBuildableGeneratorNuclear__mFuel__PlutoniumFuelRod__type": "classes/CoreUObject/FGBuildableGeneratorNuclear",
"common_type__common_base__FGBuildableMAM__type": "classes/CoreUObject/FGBuildableMAM",
"common_type__common_base__FGBuildablePillarLightweight__type": "classes/CoreUObject/FGBuildablePillarLightweight",
"common_type__common_base__FGBuildablePipeline__type": "classes/CoreUObject/FGBuildablePipeline",
"common_type__common_base__FGBuildablePipelineJunction__type": "classes/CoreUObject/FGBuildablePipelineJunction",
"common_type__common_base__FGBuildablePipelinePump__type": "classes/CoreUObject/FGBuildablePipelinePump",
"common_type__common_base__FGBuildablePipelinePump__valve__type": "classes/CoreUObject/FGBuildablePipelinePump",
Expand Down
48 changes: 9 additions & 39 deletions generated-types/1.0/classes/CoreUObject/FGBuildablePipeline.ts
Original file line number Diff line number Diff line change
@@ -1,52 +1,22 @@
import {StringPassedRegExp} from '../../utils/validators';

import {FGBuildable__base__type} from './FGBuildable';

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

import {common_base__FGBuildablePipeline__type} from '../../../common/classes/CoreUObject/FGBuildablePipeline';

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

export type FGBuildablePipeline__type = FGBuildable__base__type & {
mMeshLength: decimal_string__type;
mSplineData: '';
mRadius: decimal_string__type;
mFlowLimit: decimal_string__type;
mFlowIndicatorMinimumPipeLength: decimal_string__type;
export type FGBuildablePipeline__type = FGBuildablePipeline__merged__type & {
mSoundSplineComponentEmitterInterval: decimal_string__type;
mPipeConnections: '';
mFluidBox: empty_object__type;
mIndicatorData: empty_object__type;
mMaxIndicatorTurnAngle: decimal_string__type;
mIgnoreActorsForIndicator: '';
mFluidNames: [
{
WwiseSafeName: StringPassedRegExp<'^[A-Z][A-Za-z]+(_[A-Z][A-Za-z]+)*$'>;
ActualName?: StringPassedRegExp<'^[A-Z][A-Za-z]+( [A-Z][A-Za-z]+)*$'>;
},
...{
WwiseSafeName: StringPassedRegExp<'^[A-Z][A-Za-z]+(_[A-Z][A-Za-z]+)*$'>;
ActualName?: StringPassedRegExp<'^[A-Z][A-Za-z]+( [A-Z][A-Za-z]+)*$'>;
}[],
];
mCurrentFluid: '';
mLastContentForSound: decimal_string__type;
mLastFlowForSound: decimal_string__type;
mLastElapsedTime: decimal_string__type;
mLastFlowForSoundUpdateThreshold: decimal_string__type;
mRattleLimit: decimal_string__type;
mIsRattling: boolean__type;
mUpdateSoundsHandle: empty_object__type;
mUpdateSoundsTimerInterval: decimal_string__type;
mSnappedPassthroughs: common_base__mSnappedPassthroughs__type;
};

export type FGBuildablePipeline__merged__type =
common_base__FGBuildablePipeline__type &
FGBuildable__base__type;

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

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

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

import {common_base__FGBuildable__base__type} from './FGBuildable';

export type common_base__FGBuildablePipeline__type =
common_base__FGBuildable__base__type & {
mMeshLength: decimal_string__type;
mSplineData: '';
mRadius: decimal_string__type;
mFlowLimit: decimal_string__type;
mFlowIndicatorMinimumPipeLength: decimal_string__type;
mPipeConnections: '';
mFluidBox: empty_object__type;
mIndicatorData: empty_object__type;
mMaxIndicatorTurnAngle: decimal_string__type;
mIgnoreActorsForIndicator: '';
mFluidNames: [
{
WwiseSafeName: StringPassedRegExp<'^[A-Z][A-Za-z]+(_[A-Z][A-Za-z]+)*$'>;
ActualName?: StringPassedRegExp<'^[A-Z][A-Za-z]+( [A-Z][A-Za-z]+)*$'>;
},
...{
WwiseSafeName: StringPassedRegExp<'^[A-Z][A-Za-z]+(_[A-Z][A-Za-z]+)*$'>;
ActualName?: StringPassedRegExp<'^[A-Z][A-Za-z]+( [A-Z][A-Za-z]+)*$'>;
}[],
];
mCurrentFluid: '';
mLastContentForSound: decimal_string__type;
mLastFlowForSound: decimal_string__type;
mRattleLimit: decimal_string__type;
mIsRattling: boolean__type;
mUpdateSoundsHandle: empty_object__type;
mSnappedPassthroughs: common_base__mSnappedPassthroughs__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 @@ -67,6 +67,8 @@ import {
common_base__FGBuildableGeneratorNuclear__type,
} from '../classes/CoreUObject/FGBuildableGeneratorNuclear';

import {common_base__FGBuildablePipeline__type} from '../classes/CoreUObject/FGBuildablePipeline';

import {
FGSchematic__mUnlocks_mSchematics__mSchematics__type,
common_base__FGSchematic__mUnlocks__type,
Expand Down Expand Up @@ -418,6 +420,7 @@ export type faux_11__type = class__type & {
FGBuildableGeneratorNuclear_mFuel_NuclearFuelRod?: common_base__FGBuildableGeneratorNuclear__mFuel__NuclearFuelRod__type;
FGBuildableGeneratorNuclear_mFuel_PlutoniumFuelRod?: common_base__FGBuildableGeneratorNuclear__mFuel__PlutoniumFuelRod__type;
FGBuildableGeneratorNuclear?: common_base__FGBuildableGeneratorNuclear__type;
FGBuildablePipeline?: common_base__FGBuildablePipeline__type;
};

export type faux_12__type = class__type & {
Expand Down
47 changes: 7 additions & 40 deletions generated-types/update8/classes/CoreUObject/FGBuildablePipeline.ts
Original file line number Diff line number Diff line change
@@ -1,47 +1,14 @@
import {StringPassedRegExp} from '../../utils/validators';

import {FGBuildable__base__type} from './FGBuildable';

import {
decimal_string__type,
boolean__type,
} from '../../../common/common/scalar';
import {common_base__FGBuildablePipeline__type} from '../../../common/classes/CoreUObject/FGBuildablePipeline';

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

import {
empty_object__type,
common_base__mSnappedPassthroughs__type,
NativeClass__type,
} from '../../../common/common/unassigned';
export type FGBuildablePipeline__type = FGBuildablePipeline__merged__type;

export type FGBuildablePipeline__type = FGBuildable__base__type & {
mMeshLength: decimal_string__type;
mSplineData: '';
mRadius: decimal_string__type;
mFlowLimit: decimal_string__type;
mFlowIndicatorMinimumPipeLength: decimal_string__type;
mPipeConnections: '';
mFluidBox: empty_object__type;
mIndicatorData: empty_object__type;
mMaxIndicatorTurnAngle: decimal_string__type;
mIgnoreActorsForIndicator: '';
mFluidNames: [
{
WwiseSafeName: StringPassedRegExp<'^[A-Z][A-Za-z]+(_[A-Z][A-Za-z]+)*$'>;
ActualName?: StringPassedRegExp<'^[A-Z][A-Za-z]+( [A-Z][A-Za-z]+)*$'>;
},
...{
WwiseSafeName: StringPassedRegExp<'^[A-Z][A-Za-z]+(_[A-Z][A-Za-z]+)*$'>;
ActualName?: StringPassedRegExp<'^[A-Z][A-Za-z]+( [A-Z][A-Za-z]+)*$'>;
}[],
];
mCurrentFluid: '';
mLastContentForSound: decimal_string__type;
mLastFlowForSound: decimal_string__type;
mRattleLimit: decimal_string__type;
mIsRattling: boolean__type;
mUpdateSoundsHandle: empty_object__type;
mSnappedPassthroughs: common_base__mSnappedPassthroughs__type;
};
export type FGBuildablePipeline__merged__type =
common_base__FGBuildablePipeline__type &
FGBuildable__base__type;

export type FGBuildablePipeline__NativeClass =
NativeClass__type & {
Expand Down
111 changes: 12 additions & 99 deletions schema/1.0.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -4045,125 +4045,38 @@
}
}
},
"FGBuildablePipeline--merged": {
"allOf": [
{
"$ref": "common.schema.json#/$defs/common-base--FGBuildablePipeline"
},
{
"$ref": "#/$defs/FGBuildable--base"
}
]
},
"FGBuildablePipeline": {
"type": "object",
"$ref": "#/$defs/FGBuildable--base",
"$ref": "#/$defs/FGBuildablePipeline--merged",
"unevaluatedProperties": false,
"required": [
"mRadius",
"mFlowLimit",
"mFlowIndicatorMinimumPipeLength",
"mSoundSplineComponentEmitterInterval",
"mPipeConnections",
"mFluidBox",
"mIndicatorData",
"mMaxIndicatorTurnAngle",
"mIgnoreActorsForIndicator",
"mFluidNames",
"mCurrentFluid",
"mLastContentForSound",
"mLastFlowForSound",
"mLastElapsedTime",
"mLastFlowForSoundUpdateThreshold",
"mRattleLimit",
"mIsRattling",
"mUpdateSoundsHandle",
"mUpdateSoundsTimerInterval",
"mMeshLength",
"mSplineData",
"mSnappedPassthroughs"
"mUpdateSoundsTimerInterval"
],
"properties": {
"mMeshLength": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mSplineData": {
"type": "string",
"const": ""
},
"mRadius": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mFlowLimit": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mFlowIndicatorMinimumPipeLength": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mSoundSplineComponentEmitterInterval": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mPipeConnections": {
"type": "string",
"const": ""
},
"mFluidBox": {
"$ref": "common.schema.json#/$defs/empty-object"
},
"mIndicatorData": {
"$ref": "common.schema.json#/$defs/empty-object"
},
"mMaxIndicatorTurnAngle": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIgnoreActorsForIndicator": {
"type": "string",
"const": ""
},
"mFluidNames": {
"type": "string",
"minLength": 1,
"typed_string": {
"minItems": 1,
"items": {
"type": "string",
"minLength": 1,
"typed_string": {
"required": ["WwiseSafeName"],
"properties": {
"WwiseSafeName": {
"type": "string",
"pattern": "^[A-Z][A-Za-z]+(_[A-Z][A-Za-z]+)*$"
},
"ActualName": {
"type": "string",
"pattern": "^[A-Z][A-Za-z]+( [A-Z][A-Za-z]+)*$"
}
}
}
}
}
},
"mCurrentFluid": {
"type": "string",
"const": ""
},
"mLastContentForSound": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mLastFlowForSound": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mLastElapsedTime": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mLastFlowForSoundUpdateThreshold": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mRattleLimit": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mIsRattling": {
"$ref": "common.schema.json#/$defs/boolean"
},
"mUpdateSoundsHandle": {
"$ref": "common.schema.json#/$defs/empty-object"
},
"mUpdateSoundsTimerInterval": {
"$ref": "common.schema.json#/$defs/decimal-string"
},
"mSnappedPassthroughs": {
"$ref": "common.schema.json#/$defs/common-base--mSnappedPassthroughs"
}
}
},
Expand Down
Loading

0 comments on commit 248a7f9

Please sign in to comment.