|
47 | 47 | "BlockMesh", # its superclass is marked as deprecated but it isn't, so its broken |
48 | 48 | "Enum", # redefined explicitly |
49 | 49 | "EnumItem", # redefined explicitly |
| 50 | + "GlobalSettings", # redefined explicitly |
50 | 51 | ] |
51 | 52 |
|
52 | 53 | # These classes are deferred to the very end of the dump, so that they have access to all the types |
|
56 | 57 | "DataModel", |
57 | 58 | "GenericSettings", |
58 | 59 | "AnalysticsSettings", |
59 | | - "GlobalSettings", |
60 | 60 | "UserSettings", |
61 | 61 | # Plugin is deferred after its items are declared |
62 | 62 | "Plugin", |
|
95 | 95 | ], |
96 | 96 | "Players": ["GetPlayers"], |
97 | 97 | "ContextActionService": ["BindAction", "BindActionAtPriority"], |
| 98 | + "WorldRoot": ["Raycast"], |
98 | 99 | } |
99 | 100 |
|
100 | 101 | # Extra members to add in to classes, commonly used to add in metamethods, and add corrections |
|
144 | 145 | "function __mul(self, other: Vector3): Vector3", |
145 | 146 | ], |
146 | 147 | "UserSettings": [ |
147 | | - 'function GetService(self, service: "UserGameSettings"): UserGameSettings' |
| 148 | + "GameSettings: UserGameSettings", |
| 149 | + 'function GetService(self, service: "UserGameSettings"): UserGameSettings', |
148 | 150 | ], |
149 | 151 | "Instance": [ |
150 | 152 | "Parent: Instance?", |
|
186 | 188 | "PluginToolbar": [ |
187 | 189 | "function CreateButton(self, id: string, toolTip: string, iconAsset: string, text: string?): PluginToolbarButton", |
188 | 190 | ], |
| 191 | + "WorldRoot": [ |
| 192 | + "function Raycast(self, origin: Vector3, direction: Vector3, raycastParams: RaycastParams?): RaycastResult?" |
| 193 | + ], |
189 | 194 | } |
190 | 195 |
|
191 | 196 | # Hardcoded types |
|
252 | 257 | # More hardcoded types, but go at the end of the file |
253 | 258 | # Useful if they rely on previously defined types |
254 | 259 | END_BASE = """ |
| 260 | +declare class GlobalSettings extends GenericSettings |
| 261 | + Lua: LuaSettings |
| 262 | + Game: GameSettings |
| 263 | + Studio: Studio |
| 264 | + Network: NetworkSettings |
| 265 | + Physics: PhysicsSettings |
| 266 | + Rendering: RenderSettings |
| 267 | + Diagnostics: DebugSettings |
| 268 | + function GetFFlag(self, name: string): boolean |
| 269 | + function GetFVariable(self, name: string): string |
| 270 | +end |
| 271 | +
|
255 | 272 | declare game: DataModel |
256 | 273 | declare workspace: Workspace |
257 | 274 | declare plugin: Plugin |
|
0 commit comments