@quenty/animations 8.17.4-canary.559.9f38947.0 → 8.18.0-canary.0a5db80.0
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/CHANGELOG.md
CHANGED
|
@@ -3,20 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [8.18.0-canary.0a5db80.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.17.2...@quenty/animations@8.18.0-canary.0a5db80.0) (2025-05-10)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
|
-
* Additional type checking updates ([
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
## [8.17.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/animations@8.17.2...@quenty/animations@8.17.3) (2025-04-10)
|
|
18
|
-
|
|
19
|
-
**Note:** Version bump only for package @quenty/animations
|
|
11
|
+
* Additional type checking updates ([7e008c5](https://github.com/Quenty/NevermoreEngine/commit/7e008c58547bd00b5904e56541454a38c8d72ccc))
|
|
20
12
|
|
|
21
13
|
|
|
22
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/animations",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.18.0-canary.0a5db80.0",
|
|
4
4
|
"description": "Utility methods for playing back animations on Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,20 +25,20 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/baseobject": "10.
|
|
28
|
+
"@quenty/baseobject": "10.9.0-canary.0a5db80.0",
|
|
29
29
|
"@quenty/enumutils": "3.4.2",
|
|
30
|
-
"@quenty/humanoidanimatorutils": "3.1.
|
|
31
|
-
"@quenty/loader": "10.
|
|
32
|
-
"@quenty/maid": "3.
|
|
33
|
-
"@quenty/promise": "10.
|
|
34
|
-
"@quenty/promisemaid": "5.
|
|
35
|
-
"@quenty/rbxasset": "5.
|
|
36
|
-
"@quenty/rx": "13.
|
|
37
|
-
"@quenty/signal": "7.
|
|
38
|
-
"@quenty/valueobject": "13.
|
|
30
|
+
"@quenty/humanoidanimatorutils": "3.1.2",
|
|
31
|
+
"@quenty/loader": "10.9.0-canary.0a5db80.0",
|
|
32
|
+
"@quenty/maid": "3.5.0-canary.0a5db80.0",
|
|
33
|
+
"@quenty/promise": "10.11.0-canary.0a5db80.0",
|
|
34
|
+
"@quenty/promisemaid": "5.11.0-canary.0a5db80.0",
|
|
35
|
+
"@quenty/rbxasset": "5.9.0-canary.0a5db80.0",
|
|
36
|
+
"@quenty/rx": "13.18.0-canary.0a5db80.0",
|
|
37
|
+
"@quenty/signal": "7.11.0-canary.0a5db80.0",
|
|
38
|
+
"@quenty/valueobject": "13.18.0-canary.0a5db80.0"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "0a5db8004684dc3e76fd5944599a22602d48cfa9"
|
|
44
44
|
}
|
|
@@ -100,10 +100,7 @@ end
|
|
|
100
100
|
@param keyframeName string
|
|
101
101
|
@return Promise
|
|
102
102
|
]=]
|
|
103
|
-
function AnimationPromiseUtils.promiseKeyframeReached(
|
|
104
|
-
animationTrack: AnimationTrack,
|
|
105
|
-
keyframeName: string
|
|
106
|
-
): Promise.Promise<()>
|
|
103
|
+
function AnimationPromiseUtils.promiseKeyframeReached(animationTrack: AnimationTrack, keyframeName: string): Promise.Promise<()>
|
|
107
104
|
assert(typeof(animationTrack) == "Instance", "Bad animationTrack")
|
|
108
105
|
assert(type(keyframeName) == "string", "Bad endMarkerName")
|
|
109
106
|
|
|
@@ -130,4 +127,5 @@ function AnimationPromiseUtils.promiseKeyframeReached(
|
|
|
130
127
|
return promise
|
|
131
128
|
end
|
|
132
129
|
|
|
133
|
-
|
|
130
|
+
|
|
131
|
+
return AnimationPromiseUtils
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
local require = require(script.Parent.loader).load(script)
|
|
9
9
|
|
|
10
|
-
local AnimationUtils = require("AnimationUtils")
|
|
11
10
|
local BaseObject = require("BaseObject")
|
|
11
|
+
local ValueObject = require("ValueObject")
|
|
12
12
|
local Rx = require("Rx")
|
|
13
|
+
local AnimationUtils = require("AnimationUtils")
|
|
13
14
|
local Signal = require("Signal")
|
|
14
|
-
local ValueObject = require("ValueObject")
|
|
15
15
|
|
|
16
16
|
local AnimationTrackPlayer = setmetatable({}, BaseObject)
|
|
17
17
|
AnimationTrackPlayer.ClassName = "AnimationTrackPlayer"
|
|
@@ -215,18 +215,16 @@ function AnimationTrackPlayer:IsPlaying(): boolean
|
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
function AnimationTrackPlayer:_onEachTrack(callback)
|
|
218
|
-
return self._currentTrack
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
return
|
|
225
|
-
end
|
|
218
|
+
return self._currentTrack:ObserveBrio(function(track)
|
|
219
|
+
return track ~= nil
|
|
220
|
+
end):Subscribe(function(brio)
|
|
221
|
+
if brio:IsDead() then
|
|
222
|
+
return
|
|
223
|
+
end
|
|
226
224
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
225
|
+
local track = brio:GetValue()
|
|
226
|
+
callback(brio:ToMaid(), track)
|
|
227
|
+
end)
|
|
230
228
|
end
|
|
231
229
|
|
|
232
|
-
return AnimationTrackPlayer
|
|
230
|
+
return AnimationTrackPlayer
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
local require = require(script.Parent.loader).load(script)
|
|
7
7
|
|
|
8
|
-
local EnumUtils = require("EnumUtils")
|
|
9
|
-
local HumanoidAnimatorUtils = require("HumanoidAnimatorUtils")
|
|
10
8
|
local RbxAssetUtils = require("RbxAssetUtils")
|
|
9
|
+
local HumanoidAnimatorUtils = require("HumanoidAnimatorUtils")
|
|
10
|
+
local EnumUtils = require("EnumUtils")
|
|
11
11
|
|
|
12
12
|
local AnimationUtils = {}
|
|
13
13
|
|
|
@@ -173,9 +173,7 @@ end
|
|
|
173
173
|
--[=[
|
|
174
174
|
Finds an animator for the current instance
|
|
175
175
|
]=]
|
|
176
|
-
function AnimationUtils.getOrCreateAnimator(
|
|
177
|
-
target: Animator | Player | Model | Humanoid | AnimationController
|
|
178
|
-
): Animator?
|
|
176
|
+
function AnimationUtils.getOrCreateAnimator(target: Animator | Player | Model | Humanoid | AnimationController): Animator?
|
|
179
177
|
assert(typeof(target) == "Instance", "Bad target")
|
|
180
178
|
|
|
181
179
|
if target:IsA("Animator") then
|
|
@@ -13,8 +13,8 @@ local require = require(script.Parent.loader).load(script)
|
|
|
13
13
|
|
|
14
14
|
local RunService = game:GetService("RunService")
|
|
15
15
|
|
|
16
|
-
local AnimationUtils = require("AnimationUtils")
|
|
17
16
|
local BaseObject = require("BaseObject")
|
|
17
|
+
local AnimationUtils = require("AnimationUtils")
|
|
18
18
|
|
|
19
19
|
local StudioRigAnimator = setmetatable({}, BaseObject)
|
|
20
20
|
StudioRigAnimator.ClassName = "StudioRigAnimator"
|