-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTypes.lua
More file actions
118 lines (94 loc) · 1.86 KB
/
Types.lua
File metadata and controls
118 lines (94 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
--!strict
local RBX: any = nil
export type Event = typeof((RBX :: BindableEvent).Event)
-- stylua: ignore
export type MoonEaseType =
"Back" | "Bounce" | "Circ" | "Constant"
| "Cubic" | "Elastic" | "Expo" | "Linear"
| "Quad" | "Quart" | "Quint"
| "Sextic" | "Sine"
-- stylua: ignore
export type MoonEaseDir =
"In" | "Out"
| "InOut" | "OutIn"
export type MoonAnimPath = {
ItemType: string,
InstanceTypes: { string },
InstanceNames: { string },
}
export type MoonAnimItem = {
Path: MoonAnimPath,
ID: string?,
}
export type MoonEaseInfo = {
Type: MoonEaseType,
Params: {
Direction: MoonEaseDir?,
Overshoot: number?,
Amplitude: number?,
Period: number?,
},
}
export type MoonKeyframePack = {
Eases: { MoonEaseInfo },
Values: { any },
FrameIndex: number,
FrameCount: number,
Prev: MoonKeyframePack?,
Next: MoonKeyframePack?,
}
export type MoonKeyframe = {
Ease: MoonEaseInfo?,
Time: number,
Value: any,
}
export type MoonProperty = {
Default: any,
Sequence: { MoonKeyframe },
}
export type MoonItem = {
Target: Instance?,
Locks: {
[any]: true,
},
Animation: Animation?,
Markers: { [number]: { { Name: string, Value: any? } } }?,
Props: {
[string]: MoonProperty,
},
Path: MoonAnimPath,
}
export type MoonCamRef = {
Target: BasePart?,
Path: MoonAnimPath,
}
export type MoonJointInfo = {
Name: string,
Joint: Motor6D,
Parent: MoonJointInfo?,
Children: {
[string]: MoonJointInfo,
},
}
export type MoonAnimInfo = {
Created: number,
ExportedPriority: string,
Modified: number,
Length: number,
FPS: number,
Looped: boolean,
CamRef: MoonAnimPath?,
}
export type MoonAnimSave = {
Items: { MoonAnimItem },
Information: MoonAnimInfo,
}
export type Scratchpad = {
[string]: any,
}
export type GetSet<Value, Args...> = {
Get: ((Args...) -> Value)?,
Set: (Value, Args...) -> (),
Default: Value?,
}
return {}