@open-core/framework 0.2.5 → 0.2.6

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.
@@ -38,7 +38,7 @@ let SessionController = class SessionController {
38
38
  const currentPlayer = this.playerDirectory.getByClient(clientId);
39
39
  if (!currentPlayer)
40
40
  return;
41
- (0, internal_event_bus_1.emitFrameworkEvent)('internal:playerFullyConnected', currentPlayer);
41
+ (0, internal_event_bus_1.emitFrameworkEvent)('internal:playerFullyConnected', { player: currentPlayer });
42
42
  });
43
43
  }
44
44
  async onPlayerDropped() {
@@ -11,9 +11,12 @@ export interface TransferCompletedPayload {
11
11
  amount: number;
12
12
  targetId: number;
13
13
  }
14
+ export interface PlayerFullyConnectedPayload {
15
+ player: Player;
16
+ }
14
17
  export type InternalEventMap = {
15
18
  'internal:playerSessionCreated': PlayerSessionCreatedPayload;
16
19
  'internal:playerSessionDestroyed': PlayerSessionDestroyedPayload;
17
20
  'internal:transfer:completed': TransferCompletedPayload;
18
- 'internal:playerFullyConnected': Player;
21
+ 'internal:playerFullyConnected': PlayerFullyConnectedPayload;
19
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-core/framework",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Secure, Event-Driven, OOP Engine for FiveM. Stop scripting, start engineering.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",