File tree Expand file tree Collapse file tree
v3/src/physics/matter-js/events Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ var Class = require ( '../../../utils/Class' ) ;
2+ var Event = require ( '../../../events/Event' ) ;
3+
4+ var SleepEndEvent = new Class ( {
5+
6+ Extends : Event ,
7+
8+ initialize :
9+
10+ function SleepEndEvent ( event , body )
11+ {
12+ Event . call ( this , 'SLEEP_END_EVENT' ) ;
13+
14+ this . body = body ;
15+ }
16+
17+ } ) ;
18+
19+ module . exports = SleepEndEvent ;
Original file line number Diff line number Diff line change 1+ var Class = require ( '../../../utils/Class' ) ;
2+ var Event = require ( '../../../events/Event' ) ;
3+
4+ var SleepStartEvent = new Class ( {
5+
6+ Extends : Event ,
7+
8+ initialize :
9+
10+ function SleepStartEvent ( event , body )
11+ {
12+ Event . call ( this , 'SLEEP_START_EVENT' ) ;
13+
14+ this . body = body ;
15+
16+ }
17+
18+ } ) ;
19+
20+ module . exports = SleepStartEvent ;
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ module.exports = {
44
55 COLLISION_ACTIVE : require ( './CollisionActiveEvent' ) ,
66 COLLISION_END : require ( './CollisionEndEvent' ) ,
7- COLLISION_START : require ( './CollisionStartEvent' )
7+ COLLISION_START : require ( './CollisionStartEvent' ) ,
8+ SLEEP_END : require ( './SleepEndEvent' ) ,
9+ SLEEP_START : require ( './SleepStartEvent' )
810
911} ;
You can’t perform that action at this time.
0 commit comments