Merge pull request #6937 from hatchling13/fix-matter-collision-events-type

fix type definitions for Matter CollisionActiveEvent | CollisionStartEvent | CollisionEnd
This commit is contained in:
Richard Davey 2024-11-14 12:31:37 +00:00 committed by GitHub
commit 72158813e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@
/** /**
* @typedef {object} Phaser.Physics.Matter.Events.CollisionActiveEvent * @typedef {object} Phaser.Physics.Matter.Events.CollisionActiveEvent
* *
* @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision. * @property {Phaser.Types.Physics.Matter.MatterCollisionPair[]} pairs - A list of all affected pairs in the collision.
* @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event. * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.
* @property {any} source - The source object of the event. * @property {any} source - The source object of the event.
* @property {string} name - The name of the event. * @property {string} name - The name of the event.

View file

@ -7,7 +7,7 @@
/** /**
* @typedef {object} Phaser.Physics.Matter.Events.CollisionEndEvent * @typedef {object} Phaser.Physics.Matter.Events.CollisionEndEvent
* *
* @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision. * @property {Phaser.Types.Physics.Matter.MatterCollisionPair[]} pairs - A list of all affected pairs in the collision.
* @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event. * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.
* @property {any} source - The source object of the event. * @property {any} source - The source object of the event.
* @property {string} name - The name of the event. * @property {string} name - The name of the event.

View file

@ -7,7 +7,7 @@
/** /**
* @typedef {object} Phaser.Physics.Matter.Events.CollisionStartEvent * @typedef {object} Phaser.Physics.Matter.Events.CollisionStartEvent
* *
* @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision. * @property {Phaser.Types.Physics.Matter.MatterCollisionPair[]} pairs - A list of all affected pairs in the collision.
* @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event. * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.
* @property {any} source - The source object of the event. * @property {any} source - The source object of the event.
* @property {string} name - The name of the event. * @property {string} name - The name of the event.