@rbxts/covenant 2.1.0 → 2.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/covenant",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "main": "src/init.luau",
5
5
  "scripts": {
6
6
  "build": "rbxtsc",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@rbxts/compiler-types": "^3.0.0-types.0",
32
- "@rbxts/covenant": "^2.1.0",
32
+ "@rbxts/covenant": "^2.1.1",
33
33
  "@rbxts/types": "^1.0.890",
34
34
  "@typescript-eslint/eslint-plugin": "^8.46.4",
35
35
  "@typescript-eslint/parser": "^8.46.4",
package/src/covenant.d.ts CHANGED
@@ -36,6 +36,8 @@ export declare class Covenant {
36
36
  private predictionSend;
37
37
  private predictionConnect;
38
38
  constructor({ logging, requestPayloadSend, requestPayloadConnect, replicationSend, replicationConnect, replicationSendAll, predictionSend, predictionConnect, }: CovenantProps);
39
+ getClientEntity(entity: Entity): Entity | undefined;
40
+ getServerEntity(entity: Entity): Entity | undefined;
39
41
  private logging;
40
42
  enableLogging(): void;
41
43
  disableLogging(): void;
package/src/covenant.luau CHANGED
@@ -63,6 +63,16 @@ do
63
63
  self:setupReplication()
64
64
  self:setupPrediction()
65
65
  end
66
+ function Covenant:getClientEntity(entity)
67
+ local _serverToClientEntityMap = self.serverToClientEntityMap
68
+ local _arg0 = tostring(entity)
69
+ return _serverToClientEntityMap[_arg0]
70
+ end
71
+ function Covenant:getServerEntity(entity)
72
+ local _clientToServerEntityMap = self.clientToServerEntityMap
73
+ local _arg0 = tostring(entity)
74
+ return _clientToServerEntityMap[_arg0]
75
+ end
66
76
  function Covenant:enableLogging()
67
77
  self.logging = true
68
78
  end