@quenty/deathreport 10.29.2 → 10.29.3-canary.607f741.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,17 @@
|
|
|
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
|
+
## [10.29.3-canary.607f741.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/deathreport@10.29.2...@quenty/deathreport@10.29.3-canary.607f741.0) (2025-12-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Typecheck some more things ([41eaaa6](https://github.com/Quenty/NevermoreEngine/commit/41eaaa6d053c469f7548810da72d05dfbf997b26))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [10.29.2](https://github.com/Quenty/NevermoreEngine/compare/@quenty/deathreport@10.29.1...@quenty/deathreport@10.29.2) (2025-11-22)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/deathreport
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/deathreport",
|
|
3
|
-
"version": "10.29.
|
|
3
|
+
"version": "10.29.3-canary.607f741.0",
|
|
4
4
|
"description": "Death report service which will track the deaths of players",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@quenty/baseobject": "
|
|
33
|
-
"@quenty/binder": "
|
|
34
|
-
"@quenty/characterutils": "
|
|
35
|
-
"@quenty/humanoidkillerutils": "
|
|
36
|
-
"@quenty/loader": "
|
|
37
|
-
"@quenty/maid": "
|
|
38
|
-
"@quenty/playerhumanoidbinder": "
|
|
39
|
-
"@quenty/remoting": "
|
|
40
|
-
"@quenty/rx": "
|
|
41
|
-
"@quenty/rxbinderutils": "
|
|
42
|
-
"@quenty/servicebag": "
|
|
43
|
-
"@quenty/signal": "
|
|
44
|
-
"@quenty/table": "
|
|
32
|
+
"@quenty/baseobject": "10.9.0",
|
|
33
|
+
"@quenty/binder": "14.25.3-canary.607f741.0",
|
|
34
|
+
"@quenty/characterutils": "12.22.2",
|
|
35
|
+
"@quenty/humanoidkillerutils": "2.3.3",
|
|
36
|
+
"@quenty/loader": "10.9.0",
|
|
37
|
+
"@quenty/maid": "3.5.0",
|
|
38
|
+
"@quenty/playerhumanoidbinder": "14.25.3-canary.607f741.0",
|
|
39
|
+
"@quenty/remoting": "12.21.2",
|
|
40
|
+
"@quenty/rx": "13.20.0",
|
|
41
|
+
"@quenty/rxbinderutils": "14.25.3-canary.607f741.0",
|
|
42
|
+
"@quenty/servicebag": "11.13.2-canary.607f741.0",
|
|
43
|
+
"@quenty/signal": "7.11.1",
|
|
44
|
+
"@quenty/table": "3.8.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "607f7418f46b85cd5843f1c5665911eb2dd7e3fb"
|
|
47
47
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!nonstrict
|
|
1
2
|
--[=[
|
|
2
3
|
@class PlayerKillTracker
|
|
3
4
|
]=]
|
|
@@ -12,8 +13,19 @@ local PlayerKillTracker = setmetatable({}, BaseObject)
|
|
|
12
13
|
PlayerKillTracker.ClassName = "PlayerKillTracker"
|
|
13
14
|
PlayerKillTracker.__index = PlayerKillTracker
|
|
14
15
|
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
export type PlayerKillTracker =
|
|
17
|
+
typeof(setmetatable(
|
|
18
|
+
{} :: {
|
|
19
|
+
_serviceBag: ServiceBag.ServiceBag,
|
|
20
|
+
_deathReportService: any,
|
|
21
|
+
_player: Player,
|
|
22
|
+
},
|
|
23
|
+
{} :: typeof({ __index = PlayerKillTracker })
|
|
24
|
+
))
|
|
25
|
+
& BaseObject.BaseObject
|
|
26
|
+
|
|
27
|
+
function PlayerKillTracker.new(scoreObject, serviceBag: ServiceBag.ServiceBag): PlayerKillTracker
|
|
28
|
+
local self: PlayerKillTracker = setmetatable(BaseObject.new(scoreObject) :: any, PlayerKillTracker)
|
|
17
29
|
|
|
18
30
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
19
31
|
self._deathReportService = self._serviceBag:GetService(DeathReportService)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
--!strict
|
|
1
2
|
--[=[
|
|
2
3
|
@class PlayerKillTrackerAssigner
|
|
3
4
|
]=]
|
|
@@ -16,8 +17,19 @@ local PlayerKillTrackerAssigner = setmetatable({}, BaseObject)
|
|
|
16
17
|
PlayerKillTrackerAssigner.ClassName = "PlayerKillTrackerAssigner"
|
|
17
18
|
PlayerKillTrackerAssigner.__index = PlayerKillTrackerAssigner
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
export type PlayerKillTrackerAssigner =
|
|
21
|
+
typeof(setmetatable(
|
|
22
|
+
{} :: {
|
|
23
|
+
_serviceBag: ServiceBag.ServiceBag,
|
|
24
|
+
_deathReportBindersServer: any,
|
|
25
|
+
_killTrackers: { [Player]: Instance },
|
|
26
|
+
},
|
|
27
|
+
{} :: typeof({ __index = PlayerKillTrackerAssigner })
|
|
28
|
+
))
|
|
29
|
+
& BaseObject.BaseObject
|
|
30
|
+
|
|
31
|
+
function PlayerKillTrackerAssigner.new(serviceBag: ServiceBag.ServiceBag): PlayerKillTrackerAssigner
|
|
32
|
+
local self: PlayerKillTrackerAssigner = setmetatable(BaseObject.new() :: any, PlayerKillTrackerAssigner)
|
|
21
33
|
|
|
22
34
|
self._serviceBag = assert(serviceBag, "No serviceBag")
|
|
23
35
|
self._deathReportBindersServer = self._serviceBag:GetService(DeathReportBindersServer)
|
|
@@ -38,7 +50,7 @@ function PlayerKillTrackerAssigner.new(serviceBag: ServiceBag.ServiceBag)
|
|
|
38
50
|
return self
|
|
39
51
|
end
|
|
40
52
|
|
|
41
|
-
function PlayerKillTrackerAssigner
|
|
53
|
+
function PlayerKillTrackerAssigner.GetPlayerKills(self: PlayerKillTrackerAssigner, player: Player): number?
|
|
42
54
|
local tracker = self:GetPlayerKillTracker(player)
|
|
43
55
|
if tracker then
|
|
44
56
|
return tracker:GetKills()
|
|
@@ -47,7 +59,7 @@ function PlayerKillTrackerAssigner:GetPlayerKills(player: Player)
|
|
|
47
59
|
end
|
|
48
60
|
end
|
|
49
61
|
|
|
50
|
-
function PlayerKillTrackerAssigner
|
|
62
|
+
function PlayerKillTrackerAssigner.GetPlayerKillTracker(self: PlayerKillTrackerAssigner, player: Player)
|
|
51
63
|
local trackerInstance = self._killTrackers[player]
|
|
52
64
|
if trackerInstance then
|
|
53
65
|
return self._deathReportBindersServer.PlayerKillTracker:Get(trackerInstance)
|
|
@@ -56,11 +68,11 @@ function PlayerKillTrackerAssigner:GetPlayerKillTracker(player: Player)
|
|
|
56
68
|
end
|
|
57
69
|
end
|
|
58
70
|
|
|
59
|
-
function PlayerKillTrackerAssigner
|
|
71
|
+
function PlayerKillTrackerAssigner._handlePlayerRemoving(self: PlayerKillTrackerAssigner, player: Player)
|
|
60
72
|
self._maid[player] = nil
|
|
61
73
|
end
|
|
62
74
|
|
|
63
|
-
function PlayerKillTrackerAssigner
|
|
75
|
+
function PlayerKillTrackerAssigner._handlePlayerAdded(self: PlayerKillTrackerAssigner, player: Player)
|
|
64
76
|
local maid = Maid.new()
|
|
65
77
|
|
|
66
78
|
local killTracker = PlayerKillTrackerUtils.create(self._deathReportBindersServer.PlayerKillTracker, player)
|
|
@@ -18,17 +18,29 @@ local DeathReportProcessor = setmetatable({}, BaseObject)
|
|
|
18
18
|
DeathReportProcessor.ClassName = "DeathReportProcessor"
|
|
19
19
|
DeathReportProcessor.__index = DeathReportProcessor
|
|
20
20
|
|
|
21
|
-
export type DeathReportProcessor =
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
export type DeathReportProcessor =
|
|
22
|
+
typeof(setmetatable(
|
|
23
|
+
{} :: {
|
|
24
|
+
_playerKillerSubTable: ObservableSubscriptionTable.ObservableSubscriptionTable<
|
|
25
|
+
DeathReportUtils.DeathReport
|
|
26
|
+
>,
|
|
27
|
+
_playerDeathSubTable: ObservableSubscriptionTable.ObservableSubscriptionTable<DeathReportUtils.DeathReport>,
|
|
28
|
+
_humanoidKillerSubTable: ObservableSubscriptionTable.ObservableSubscriptionTable<
|
|
29
|
+
DeathReportUtils.DeathReport
|
|
30
|
+
>,
|
|
31
|
+
_humanoidDeathSubTable: ObservableSubscriptionTable.ObservableSubscriptionTable<
|
|
32
|
+
DeathReportUtils.DeathReport
|
|
33
|
+
>,
|
|
34
|
+
_characterKillerSubTable: ObservableSubscriptionTable.ObservableSubscriptionTable<
|
|
35
|
+
DeathReportUtils.DeathReport
|
|
36
|
+
>,
|
|
37
|
+
_characterDeathSubTable: ObservableSubscriptionTable.ObservableSubscriptionTable<
|
|
38
|
+
DeathReportUtils.DeathReport
|
|
39
|
+
>,
|
|
40
|
+
},
|
|
41
|
+
{} :: typeof({ __index = DeathReportProcessor })
|
|
42
|
+
))
|
|
43
|
+
& BaseObject.BaseObject
|
|
32
44
|
|
|
33
45
|
function DeathReportProcessor.new(): DeathReportProcessor
|
|
34
46
|
local self = setmetatable(BaseObject.new() :: any, DeathReportProcessor)
|