Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

added missing part types and fixed some other types for parts #3

Open
wants to merge 1 commit into
base: stable
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
292 changes: 273 additions & 19 deletions parts.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"Configure": {"--comment": "Autofilled by definitions generator"}
},
"events": {
"Triggered": [],
"Triggered": [{"userID": "number"}],
"Configured": []
}
},
Expand Down Expand Up @@ -68,7 +68,7 @@
"methods": {
"GetReading": {
"arguments": [{"typeId": "number"}],
"returns": "number | Vector3"
"returns": "any"
}
}
},
Expand All @@ -90,20 +90,15 @@
"methods": {
"ClearDisk": {},
"Write": {
"arguments": [{"key": "string"}, {"data": "string"}]
"arguments": [{"key": "string"}, {"data": "any"}]
},
"Read": {
"arguments": [{"key": "string"}],
"returns": "string"
"returns": "any"
},
"ReadEntireDisk": {
"returns": "{[string]: string}"
"returns": "{[string]: any}"
}
},
"properties": {
"ShieldStrength": "number",
"RegenerationSpeed": "number",
"ShieldRadius": "number"
}
},
"Bin": {
Expand Down Expand Up @@ -137,7 +132,7 @@
"arguments": [{"data": "string"}, {"id": "number"}]
},
"RealPostRequest": {
"arguments": [{"domain": "string"}, {"data": "string"}, {"asyncBool": "boolean"}, {"transformFunction": "(...any) -> ()"}, {"optionalHeaders": "{[string]: any}?"}],
"arguments": [{"domain": "string"}, {"data": "string"}, {"asyncBool": "boolean?"}, {"transformFunction": "(...any) -> ()?"}, {"optionalHeaders": "{[string]: any}?"}],
"returns": "{response: string, success: boolean}"
}
},
Expand All @@ -158,8 +153,8 @@
"arguments": [{"className": "string?"}, {"properties": "{[string]: any}?"}]
},
"CreateElement": {
"arguments": [{"className": "string"}, {"properties": "{[string]: any}"}],
"returns": "ScreenObject"
"arguments": [{"className": "ScreenObjectList | string"}, {"properties": "{[string]: any}"}],
"returns": "PilotLuaScreenObject"
}
}
},
Expand Down Expand Up @@ -219,10 +214,10 @@
"extends": "Part",
"methods": {
"GetBodies": {
"returns": "Iterator<string, nil>"
"returns": "Iterator<string, { PlanetType: PlanetType }>"
},
"GetSystems": {
"returns": "Iterator<string, nil>"
"returns": "CoordinateIterator"
}
}
},
Expand All @@ -233,17 +228,45 @@
},
"methods": {
"GetCoordinate": {
"returns": "RegionInfo"
"returns": "PilotLuaRegionInfo"
},
"WhenRegionLoads": {
"arguments": [{"callback": "(regionData: RegionInfo) -> ()"}]
"arguments": [{"callback": "(regionData: WhenRegionLoadsData) -> ()"}]
}
}
},
"Teleporter": {
"extends": "Part",
"properties": {
"Coordinates": "string",
"TeleporterID": "number",
"ForceLocalTeleport": "boolean"
}
},
"Seat": {
"extends": "Part",
"properties": {}
},
"VehicleSeat": {
"extends": "Seat",
"properties": {
"Enabled": "boolean",
"Speed": "number",
"Mode": "number"
}
},
"PowerCell": {
"extends": "Part",
"methods": {
"GetAmount": {
"returns": "number"
}
}
},
"Speaker": {
"extends": "Part",
"properties": {
"Audio": "number",
"Audio": "string | number",
"Pitch": "number"
},
"methods": {
Expand Down Expand Up @@ -401,7 +424,7 @@
"Antenna": {
"extends": "Part",
"properties": {
"AntennaID": "string"
"AntennaID": "string | number"
}
},
"Polysilicon": {
Expand Down Expand Up @@ -477,5 +500,236 @@
"TriggerMode": "number",
"ToolName": "string"
}
},
"DriveBox": {
"extends": "Part",
"properties": {
"Reversal": "boolean",
"Ratio": "number"
}
},
"Hull": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Coupler": {
"extends": "Part",
"properties": {
"CouplerID": "number"
}
},
"RoundWedge": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Apparel": {
"extends": "Part",
"properties": {
"Limb": "string",
"Transparency": "number"
}
},
"Blade": {
"extends": "Part",
"properties": {
"Shape": "number",
"TempType": "string"
}
},
"CornerRoundWedge": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Balloon": {
"extends": "Part",
"properties": {
"Buoyancy": "number"
}
},
"Filter": {
"extends": "Part",
"properties": {
"Filter": "string"
}
},
"Truss": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Prosthetic": {
"extends": "Part",
"properties": {
"Limb": "string"
}
},
"RoundWedge2": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Engine": {
"extends": "Part",
"properties": {
"EngineSpeed": "number"
}
},
"BallastTank": {
"extends": "Part",
"properties": {
"Buoyancy": "number"
}
},
"CornerTetra": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Anchor": {
"extends": "Part",
"properties": {
"Anchored": "boolean"
}
},
"SteamEngine": {
"extends": "Part",
"properties": {
"EngineSpeed": "number"
}
},
"Sign": {
"extends": "Part",
"properties": {
"TextFont": "Enum.Font",
"TextColor": "Color3",
"SignText": "string"
}
},
"Door": {
"extends": "Part",
"properties": {
"TempType": "string",
"DoorSwitch": "boolean"
}
},
"Relay": {
"extends": "Part",
"properties": {
"LinkerID": "number",
"Mode": "number"
}
},
"CornerWedge": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Wedge": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Turbofan": {
"extends": "Part",
"properties": {
"TurboFanSpeed": "number"
}
},
"Cone": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Constructor": {
"extends": "Part",
"properties": {
"ModelCode": "string",
"Autolock": "boolean",
"RelativeToConstructor": "boolean"
}
},
"Piston": {
"extends": "Part",
"properties": {
"Position1": "number",
"Speed": "number",
"Position2": "number"
}
},
"CornerRoundWedge2": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Tetrahedron": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Ball": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Beacon": {
"extends": "Part",
"properties": {
"ShowOnMap": "boolean",
"BeaconName": "string"
}
},
"Winch": {
"extends": "Part",
"properties": {
"DeltaLength": "number",
"MaxLength": "number",
"MinLength": "number"
}
},
"HalfSphere": {
"extends": "Part",
"properties": {
"TempType": "string"
}
},
"Transporter": {
"extends": "Part",
"properties": {
"TransporterID": "number"
}
},
"ObjectDetector": {
"extends": "Part",
"properties": {
"DisplayDistance": "boolean",
"MaxDistance": "number",
"DisplayPosition": "boolean",
"DisplayLockedBy": "boolean",
"TriggerAtDistance": "string",
"DisplayDurability": "boolean",
"DisplayColor": "boolean",
"DisplayName": "boolean"
}
},
"Cylinder": {
"extends": "Part",
"properties": {
"TempType": "string"
}
}
}