File tree Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Expand file tree Collapse file tree 2 files changed +0
-24
lines changed Original file line number Diff line number Diff line change 1
1
import { AnyPrototype , CustomInputName } from "factorio:common"
2
- import { EmptyWidgetStyleSpecification } from "factorio:prototype"
3
2
4
- export type bool = boolean
5
3
export type double = number
6
4
export type float = number
7
5
export type int8 = number
Original file line number Diff line number Diff line change @@ -72,29 +72,7 @@ export class RuntimeGenerationContext extends GenerationContext<FactorioRuntimeA
72
72
return this . docUrlBase ( ) + relative_link
73
73
}
74
74
75
- private manualEdits ( ) {
76
- if ( this . apiDocs . application_version !== "2.0.39" ) {
77
- this . warning ( "FIXME: update manual edits for next version" )
78
- return
79
- }
80
- const luaSchedule = this . apiDocs . classes . find ( ( x ) => x . name === "LuaSchedule" )
81
- function fixMethod ( methodName : string ) {
82
- const method = luaSchedule ! . methods . find ( ( x ) => x . name === methodName ) !
83
- for ( const param of method . parameters ) {
84
- // someone did an oopsie and mixed up the type and name
85
- if ( param . name === "uint" && param . type === "interrupt_index" ) {
86
- param . type = "uint"
87
- param . name = "interrupt_index"
88
- }
89
- }
90
- }
91
- fixMethod ( "get_records" )
92
- fixMethod ( "set_records" )
93
- fixMethod ( "clear_records" )
94
- }
95
-
96
75
generateAll ( ) : void {
97
- this . manualEdits ( )
98
76
this . events = associateByName ( preprocessTypesWithManualDefs ( this , this . apiDocs . events , "events" ) )
99
77
this . classes = associateByName ( preprocessTypesWithManualDefs ( this , this . apiDocs . classes , "classes" ) )
100
78
const concepts = preprocessTypesWithManualDefs (
You can’t perform that action at this time.
0 commit comments