Skip to content

Commit

Permalink
BasePart type improvements (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
fewkz authored Sep 24, 2022
1 parent 33813cc commit 264da4b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
16 changes: 16 additions & 0 deletions scripts/dumpRobloxTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@
],
"Player": ["Character"],
"InstanceAdornment": ["Adornee"],
"BasePart": [
"GetConnectedParts",
"GetJoints",
"GetNetworkOwner",
"GetTouchingParts",
"SubtractAsync",
"UnionAsync",
]
}

# Extra members to add in to classes, commonly used to add in metamethods, and add corrections
Expand Down Expand Up @@ -292,6 +300,14 @@
],
"Player": ["Character: Model?"],
"InstanceAdornment": ["Adornee: Instance?"],
"BasePart": [
"function GetConnectedParts(self, recursive: boolean?): { BasePart }",
"function GetJoints(self): { BasePart }",
"function GetNetworkOwner(self): Player?",
"function GetTouchingParts(self): { BasePart }",
"function SubtractAsync(self, parts: { BasePart }, collisionfidelity: EnumCollisionFidelity?, renderFidelity: EnumRenderFidelity?): UnionOperation",
"function UnionAsync(self, parts: { BasePart }, collisionfidelity: EnumCollisionFidelity?, renderFidelity: EnumRenderFidelity?): UnionOperation",
]
}

# Hardcoded types
Expand Down
12 changes: 6 additions & 6 deletions scripts/globalTypes.d.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 264da4b

Please sign in to comment.