@boyangsicwastaken/muchachohitbox 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +26 -23
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,38 +15,41 @@ interface Signal<T extends unknown[]> {
|
|
|
15
15
|
Wait(): LuaTuple<T>;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
declare namespace MuchachoHitbox {
|
|
19
|
+
export type DetectionMode = "Default" | "ConstantDetection" | "HitOnce" | "HitParts";
|
|
19
20
|
|
|
20
|
-
export interface Hitbox {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
export interface Hitbox {
|
|
22
|
+
Visualizer: boolean;
|
|
23
|
+
VisualizerColor: Color3;
|
|
24
|
+
VisualizerTransparency: number;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
DetectionMode: DetectionMode;
|
|
27
|
+
AutoDestroy: boolean;
|
|
28
|
+
Key: string;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
OverlapParams: OverlapParams;
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
Size: Vector3 | number;
|
|
33
|
+
Shape: Enum.PartType;
|
|
34
|
+
CFrame: CFrame | BasePart;
|
|
35
|
+
Offset: CFrame;
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
VelocityPrediction: boolean;
|
|
38
|
+
VelocityPredictionTime: number;
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
Touched: Signal<[hit: BasePart, humanoid: Humanoid | undefined]>;
|
|
41
|
+
TouchEnded: Signal<[part: BasePart]>;
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
Start(): void;
|
|
44
|
+
Stop(): void;
|
|
45
|
+
Destroy(): void;
|
|
46
|
+
}
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
|
|
48
|
-
CreateHitbox(): Hitbox;
|
|
49
|
-
FindHitbox(key: string): Hitbox | undefined;
|
|
49
|
+
interface MuchachoHitbox {
|
|
50
|
+
CreateHitbox(): MuchachoHitbox.Hitbox;
|
|
51
|
+
FindHitbox(key: string): MuchachoHitbox.Hitbox | undefined;
|
|
50
52
|
}
|
|
51
53
|
|
|
52
54
|
declare const MuchachoHitbox: MuchachoHitbox;
|
|
55
|
+
export = MuchachoHitbox;
|