@zilibobi/forge-vfx 2.3.0 → 2.4.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/README.md CHANGED
@@ -17,7 +17,7 @@ The emit module is licensed under a custom source-available copyleft license whi
17
17
  #### Wally (Luau)
18
18
 
19
19
  ```sh
20
- ForgeVFX = "zilibobi/forge-vfx@2.3.0"
20
+ ForgeVFX = "zilibobi/forge-vfx@2.4.0"
21
21
  ```
22
22
 
23
23
  #### npm (TypeScript)
package/out/ForgeVFX.rbxm CHANGED
Binary file
package/out/index.d.ts CHANGED
@@ -6,6 +6,11 @@ export interface EmitResult {
6
6
  * Promise that resolves when the effect has finished playing
7
7
  */
8
8
  Finished: Promise<void>;
9
+
10
+ /**
11
+ * Clear all emitted effects
12
+ */
13
+ Clear(): void;
9
14
  }
10
15
 
11
16
  /**
@@ -94,16 +99,18 @@ export function recolor(
94
99
  ): void;
95
100
 
96
101
  /**
97
- * Cache attributes for a VFX instance and its descendants.
102
+ * Cache attributes for a VFX instance and optionally its descendants.
98
103
  * Strips attributes from instances and stores them in memory for faster access.
99
104
  * Only works on the client and for instances inside ReplicatedStorage.
100
- * @param obj The instance whose descendant attributes to cache
105
+ * @param obj The instance whose attributes to cache
106
+ * @param shallow If true, only cache the instance itself (skip descendants)
101
107
  */
102
- export function cacheAttributes(obj: Instance): void;
108
+ export function cacheAttributes(obj: Instance, shallow: boolean): void;
103
109
 
104
110
  /**
105
111
  * Restore previously cached attributes back onto instances.
106
112
  * Only works on the client.
107
- * @param obj The instance whose descendant attributes to restore
113
+ * @param obj The instance whose attributes to restore
114
+ * @param shallow If true, only restore the instance itself (skip descendants)
108
115
  */
109
- export function restoreAttributes(obj: Instance): void;
116
+ export function restoreAttributes(obj: Instance, shallow?: boolean): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zilibobi/forge-vfx",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "The official emit module from the VFX Forge plugin used to emit visual effects in-game.",
5
5
  "main": "out/init.luau",
6
6
  "types": "out/index.d.ts",