@quenty/rigbuilderutils 3.2.1-canary.8533eea.0 → 3.3.1

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,12 +3,20 @@
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
- ## [3.2.1-canary.8533eea.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rigbuilderutils@3.2.0...@quenty/rigbuilderutils@3.2.1-canary.8533eea.0) (2021-12-18)
6
+ ## [3.3.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rigbuilderutils@3.3.0...@quenty/rigbuilderutils@3.3.1) (2021-12-30)
7
+
8
+ **Note:** Version bump only for package @quenty/rigbuilderutils
9
+
10
+
11
+
12
+
13
+
14
+ # [3.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rigbuilderutils@3.2.0...@quenty/rigbuilderutils@3.3.0) (2021-12-18)
7
15
 
8
16
 
9
17
  ### Features
10
18
 
11
- * Add RigBuilderUtils.promiseR15Rig() and RigBuilderUtils.promisePlayerRig(userId) ([accf109](https://github.com/Quenty/NevermoreEngine/commit/accf10919ad4484aefa40a1f296ad928c8cb02d9))
19
+ * Add RigBuilderUtils.promiseR15Rig() and RigBuilderUtils.promisePlayerRig(userId) ([93f8c5a](https://github.com/Quenty/NevermoreEngine/commit/93f8c5ab926c6a6effda7f1c66960f3f3c3ec88c))
12
20
 
13
21
 
14
22
 
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  ## RigBuilderUtils
2
2
  <div align="center">
3
- <a href="http://quenty.github.io/api/">
4
- <img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" />
3
+ <a href="http://quenty.github.io/NevermoreEngine/">
4
+ <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" />
5
5
  </a>
6
6
  <a href="https://discord.gg/mhtGUS8">
7
- <img src="https://img.shields.io/badge/discord-nevermore-blue.svg" alt="Discord" />
7
+ <img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" />
8
8
  </a>
9
9
  <a href="https://github.com/Quenty/NevermoreEngine/actions">
10
10
  <img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/build.yml/badge.svg" alt="Build and release status" />
@@ -13,6 +13,8 @@
13
13
 
14
14
  Utility functions for debugging, builds a Roblox character rig
15
15
 
16
+ <div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/RigBuilderUtils">View docs →</a></div>
17
+
16
18
  ## Installation
17
19
  ```
18
20
  npm install @quenty/rigbuilderutils --save
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/rigbuilderutils",
3
- "version": "3.2.1-canary.8533eea.0",
3
+ "version": "3.3.1",
4
4
  "description": "Utility functions for debugging, builds a Roblox character rig",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,17 +26,17 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/humanoiddescriptionutils": "3.2.1-canary.8533eea.0",
30
- "@quenty/insertserviceutils": "3.2.1-canary.8533eea.0",
31
- "@quenty/loader": "3.1.1",
32
- "@quenty/promise": "3.2.1-canary.8533eea.0"
29
+ "@quenty/humanoiddescriptionutils": "^3.3.1",
30
+ "@quenty/insertserviceutils": "^3.3.1",
31
+ "@quenty/loader": "^3.1.2",
32
+ "@quenty/promise": "^3.3.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@quenty/camerastoryutils": "3.2.1-canary.8533eea.0",
36
- "@quenty/maid": "2.0.1"
35
+ "@quenty/camerastoryutils": "^3.3.1",
36
+ "@quenty/maid": "^2.0.2"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "8533eeade3bf6835c0295785c1c326b9abee3222"
41
+ "gitHead": "d146c77d0a8e452824de0ab0b4b03ba0370bcc1b"
42
42
  }
@@ -1,6 +1,7 @@
1
- ---
2
- -- @module AssetServiceUtils
3
- -- @author Quenty
1
+ --[=[
2
+ Utility methods involving the AssetService
3
+ @class AssetServiceUtils
4
+ ]=]
4
5
 
5
6
  local require = require(script.Parent.loader).load(script)
6
7
 
@@ -10,6 +11,12 @@ local Promise = require("Promise")
10
11
 
11
12
  local AssetServiceUtils = {}
12
13
 
14
+ --[=[
15
+ Retrieves the assetIds for a package
16
+
17
+ @param packageAssetId number
18
+ @return Promise<table>
19
+ ]=]
13
20
  function AssetServiceUtils.promiseAssetIdsForPackage(packageAssetId)
14
21
  return Promise.spawn(function(resolve, reject)
15
22
  local result
@@ -1,5 +1,7 @@
1
- --- Helps build player characters
2
- -- @module RigBuilderUtils
1
+ --[=[
2
+ Helps build player characters or other humanoid rigs for use in a variety of situations.
3
+ @class RigBuilderUtils
4
+ ]=]
3
5
 
4
6
  local require = require(script.Parent.loader).load(script)
5
7
 
@@ -167,6 +169,10 @@ function RigBuilderUtils.createR6BaseRig()
167
169
  return character
168
170
  end
169
171
 
172
+ --[=[
173
+ Creates an R6 mesh rig
174
+ @return Instance
175
+ ]=]
170
176
  function RigBuilderUtils.createR6MeshRig()
171
177
  local rig = RigBuilderUtils.createR6BaseRig()
172
178
 
@@ -203,6 +209,10 @@ function RigBuilderUtils.createR6MeshRig()
203
209
  return rig
204
210
  end
205
211
 
212
+ --[=[
213
+ Creates an R6 boy mesh rig
214
+ @return Instance
215
+ ]=]
206
216
  function RigBuilderUtils.createR6MeshBoyRig()
207
217
  local rig = RigBuilderUtils.createR6BaseRig()
208
218
 
@@ -239,6 +249,10 @@ function RigBuilderUtils.createR6MeshBoyRig()
239
249
  return rig
240
250
  end
241
251
 
252
+ --[=[
253
+ Creates an R6 girl mesh rig
254
+ @return Instance
255
+ ]=]
242
256
  function RigBuilderUtils.createR6MeshGirlRig()
243
257
  local rig = RigBuilderUtils.createR6BaseRig()
244
258
 
@@ -316,6 +330,11 @@ function RigBuilderUtils._createR15BaseRig()
316
330
  return character, humanoid
317
331
  end
318
332
 
333
+ --[=[
334
+ Creates an R15 rig from a package
335
+ @param packageAssetId number
336
+ @return Promise<Instance>
337
+ ]=]
319
338
  function RigBuilderUtils.promiseR15PackageRig(packageAssetId)
320
339
  assert(type(packageAssetId) == "number", "Bad packageAssetId")
321
340
 
@@ -372,6 +391,10 @@ function RigBuilderUtils.promiseR15PackageRig(packageAssetId)
372
391
  end)
373
392
  end
374
393
 
394
+ --[=[
395
+ Creates a default R15 rig
396
+ @return Promise<Instance>
397
+ ]=]
375
398
  function RigBuilderUtils.promiseR15Rig()
376
399
  return InsertServiceUtils.promiseAsset(1664543044)
377
400
  :Then(function(inserted)
@@ -399,18 +422,35 @@ function RigBuilderUtils.promiseR15Rig()
399
422
  end)
400
423
  end
401
424
 
425
+ --[=[
426
+ Creates an R15 man rig
427
+ @return Promise<Instance>
428
+ ]=]
402
429
  function RigBuilderUtils.promiseR15ManRig()
403
430
  return RigBuilderUtils.promiseR15PackageRig(86500185)
404
431
  end
405
432
 
433
+ --[=[
434
+ Creates an R15 woman rig
435
+ @return Promise<Instance>
436
+ ]=]
406
437
  function RigBuilderUtils.promiseR15WomanRig()
407
438
  return RigBuilderUtils.promiseR15PackageRig(86499905)
408
439
  end
409
440
 
441
+ --[=[
442
+ Creates an R15 mesh rig
443
+ @return Promise<Instance>
444
+ ]=]
410
445
  function RigBuilderUtils.promiseR15MeshRig()
411
446
  return RigBuilderUtils.promiseR15PackageRig(27112438)
412
447
  end
413
448
 
449
+ --[=[
450
+ Creates an R15 rig dressed as a given player
451
+ @param userId number
452
+ @return Promise<Instance>
453
+ ]=]
414
454
  function RigBuilderUtils.promisePlayerRig(userId)
415
455
  assert(type(userId) == "number", "Bad userId")
416
456
 
@@ -1,6 +1,6 @@
1
- ---
2
- -- @module RigBuilderUtils.story
3
- -- @author Quenty
1
+ --[[
2
+ @class RigBuilderUtils.story
3
+ ]]
4
4
 
5
5
  local require = require(game:GetService("ServerScriptService"):FindFirstChild("LoaderUtils", true).Parent).load(script)
6
6