@quenty/particleengine 13.18.3 → 13.18.4-canary.11a5dcf.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,6 +3,22 @@
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
+ ## [13.18.4-canary.11a5dcf.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/particleengine@13.18.3...@quenty/particleengine@13.18.4-canary.11a5dcf.0) (2025-05-10)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Additional type checking updates ([05ba29a](https://github.com/Quenty/NevermoreEngine/commit/05ba29a03efc9f3feed74b34f1d9dfb237496214))
12
+
13
+
14
+ ### Features
15
+
16
+ * Add even more types ([b31717d](https://github.com/Quenty/NevermoreEngine/commit/b31717d8c9f7620c457f5018a2affa760a65334a))
17
+
18
+
19
+
20
+
21
+
6
22
  ## [13.18.3](https://github.com/Quenty/NevermoreEngine/compare/@quenty/particleengine@13.18.2...@quenty/particleengine@13.18.3) (2025-04-10)
7
23
 
8
24
  **Note:** Version bump only for package @quenty/particleengine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/particleengine",
3
- "version": "13.18.3",
3
+ "version": "13.18.4-canary.11a5dcf.0",
4
4
  "description": "Adds GUI based particle engine to Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,12 +26,12 @@
26
26
  "AxisAngles"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/loader": "^10.8.3",
30
- "@quenty/remoting": "^12.18.3",
31
- "@quenty/table": "^3.7.4"
29
+ "@quenty/loader": "10.8.4-canary.11a5dcf.0",
30
+ "@quenty/remoting": "12.18.4-canary.11a5dcf.0",
31
+ "@quenty/table": "3.7.5-canary.11a5dcf.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "b06c070ae91d5dab7bd8de6e290ad2caabb15d8f"
36
+ "gitHead": "11a5dcf7d4c7a0bfbf3337e97d30e8346ea09d3f"
37
37
  }
@@ -9,12 +9,12 @@
9
9
  local require = require(script.Parent.loader).load(script)
10
10
 
11
11
  local Players = game:GetService("Players")
12
- local Workspace = game:GetService("Workspace")
13
12
  local RunService = game:GetService("RunService")
13
+ local Workspace = game:GetService("Workspace")
14
14
 
15
- local PromiseGetRemoteEvent = require("PromiseGetRemoteEvent")
16
15
  local ParticleEngineConstants = require("ParticleEngineConstants")
17
- local _ServiceBag = require("ServiceBag")
16
+ local PromiseGetRemoteEvent = require("PromiseGetRemoteEvent")
17
+ local ServiceBag = require("ServiceBag")
18
18
 
19
19
  local ParticleEngineClient = {}
20
20
  ParticleEngineClient.ServiceName = "ParticleEngineClient"
@@ -33,7 +33,7 @@ local function newFrame(name: string): Frame
33
33
  return frame
34
34
  end
35
35
 
36
- function ParticleEngineClient:Init(serviceBag: _ServiceBag.ServiceBag)
36
+ function ParticleEngineClient:Init(serviceBag: ServiceBag.ServiceBag)
37
37
  self._serviceBag = assert(serviceBag, "No serviceBag")
38
38
  self._screen = nil :: ScreenGui?
39
39
 
@@ -268,7 +268,12 @@ end
268
268
 
269
269
  -- @param f frame
270
270
  -- @param cameraInverse The inverse camera cframe
271
- function ParticleEngineClient:_particleRender(cameraPosition: Vector3, cameraInverse: CFrame, frame: Frame, particle: Particle)
271
+ function ParticleEngineClient:_particleRender(
272
+ cameraPosition: Vector3,
273
+ cameraInverse: CFrame,
274
+ frame: Frame,
275
+ particle: Particle
276
+ )
272
277
  local rp: Vector3 = cameraInverse * particle.Position
273
278
  local lsp: Vector2? = particle._lastScreenPosition
274
279
 
@@ -310,10 +315,10 @@ function ParticleEngineClient:_particleRender(cameraPosition: Vector3, cameraInv
310
315
  end
311
316
 
312
317
  frame.Position = UDim2.new(0, (px + lsp.X - sx) / 2, 0, (py + lsp.Y - sy) / 2)
313
- frame.Size = UDim2.new(0, sx, 0,sy)
314
- frame.Rotation = 90+math.atan2(rppy,rppx)*57.295779513082
318
+ frame.Size = UDim2.new(0, sx, 0, sy)
319
+ frame.Rotation = 90 + math.atan2(rppy, rppx) * 57.295779513082
315
320
  frame.BackgroundColor3 = particle.Color
316
- frame.BackgroundTransparency = bgt+(1-bgt)*(1 - preSizeY/sy)
321
+ frame.BackgroundTransparency = bgt + (1 - bgt) * (1 - preSizeY / sy)
317
322
 
318
323
  return true
319
324
  end
@@ -321,8 +326,8 @@ end
321
326
  function ParticleEngineClient:_updateScreenInfo(camera: Camera)
322
327
  self._screenSizeX = self._screen.AbsoluteSize.x
323
328
  self._screenSizeY = self._screen.AbsoluteSize.y
324
- self._planeSizeY = 2*math.tan(camera.FieldOfView*0.0087266462599716)
325
- self._planeSizeX = self._planeSizeY*self._screenSizeX/self._screenSizeY
329
+ self._planeSizeY = 2 * math.tan(camera.FieldOfView * 0.0087266462599716)
330
+ self._planeSizeX = self._planeSizeY * self._screenSizeX / self._screenSizeY
326
331
  end
327
332
 
328
- return ParticleEngineClient
333
+ return ParticleEngineClient
@@ -25,7 +25,7 @@ function ParticleEngineServer:Init()
25
25
  end)
26
26
  end
27
27
 
28
- function ParticleEngineServer:_replicate(player, particle)
28
+ function ParticleEngineServer:_replicate(player: Player, particle)
29
29
  particle.Global = nil
30
30
 
31
31
  for _, otherPlayer in Players:GetPlayers() do
@@ -41,11 +41,11 @@ function ParticleEngineServer:ParticleNew(p)
41
41
 
42
42
  p.Position = p.Position or error("No Position")
43
43
  p.Velocity = p.Velocity or Vector3.zero
44
- p.Size = p.Size or Vector2.new(0.2,0.2)
45
- p.Bloom = p.Bloom or Vector2.new(0,0)
44
+ p.Size = p.Size or Vector2.new(0.2, 0.2)
45
+ p.Bloom = p.Bloom or Vector2.new(0, 0)
46
46
  p.Gravity = p.Gravity or Vector3.zero
47
47
  p.LifeTime = p.LifeTime
48
- p.Color = p.Color or Color3.new(1,1,1)
48
+ p.Color = p.Color or Color3.new(1, 1, 1)
49
49
  p.Transparency = p.Transparency or 0.5
50
50
 
51
51
  self._remoteEvent:FireAllClients(p)
@@ -53,4 +53,4 @@ function ParticleEngineServer:ParticleNew(p)
53
53
  return p
54
54
  end
55
55
 
56
- return ParticleEngineServer
56
+ return ParticleEngineServer
@@ -1,3 +1,4 @@
1
+ --!strict
1
2
  --[=[
2
3
  @class ParticleEngineConstants
3
4
  ]=]
@@ -7,5 +8,5 @@ local require = require(script.Parent.loader).load(script)
7
8
  local Table = require("Table")
8
9
 
9
10
  return Table.readonly({
10
- REMOTE_EVENT_NAME = "ParticleEventDistributor";
11
- })
11
+ REMOTE_EVENT_NAME = "ParticleEventDistributor",
12
+ })