Commit graph

55 commits

Author SHA1 Message Date
Richard Davey
c90a3847e4 DataManager.Events.DESTROY is a new event that the Data Manager will _listen_ for from its parent and then call its own destroy method when received. 2020-09-11 12:21:39 +01:00
Richard Davey
7d1ca6815f Lint fixes 2020-07-13 14:16:52 +01:00
Richard Davey
e1b8b04623
Merge pull request #4975 from JasonHK/jsdoc
Fixed `this` return types
2020-04-27 13:25:58 +01:00
Richard Davey
d438c93435
Merge pull request #4985 from rexrainbow/datamanager-improvement
Add incData, toggleData methods
2020-04-27 12:43:56 +01:00
J.C
d8dc7fb4d7 TS def improvements 2020-03-02 20:14:25 +08:00
Rex
307c2b1584 Add incData, toggleData method 2020-02-05 16:17:54 +08:00
Jason Kwok
02395fd568 Fixed this return types for Phaser.Data.DataManager 2020-01-30 22:51:35 +08:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
fce658aea2 Fix #4825 2020-01-13 12:29:57 +00:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
ccaae460a4 Added jsdoc version numbers to each event 2019-02-12 11:37:58 +00:00
Richard Davey
4fea7f57f2 DataManager.pop would emit the DataManager instance, instead of the parent, as the first event argument. It now emits the parent as it should do. Fix #4186 2019-01-24 11:11:07 +00:00
Richard Davey
bc962c25dc All listeners use the new Events 2019-01-18 13:41:43 +00:00
Richard Davey
0297a6625c Added Data Manager events and fixed some jsdoc links 2019-01-16 10:16:31 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
31109422b6 Made docs even more explicit. Close #4084 2018-10-05 16:39:42 +01:00
iamchristopher
9ef5fde70e Added previous value when changing value 2018-08-09 15:28:56 -04:00
Ale Bles
e85a542e09
Fixed dataManager redefining previously (re)set property
Added Configurable:true to Object.defineProperty in dataManager to fix #3803
2018-07-02 10:08:10 +02:00
Richard Davey
307a937eea
Merge pull request #3749 from iamchristopher/fix-changedata-event-value
Fixed DataManager changedata event emits original value instead of new value
2018-06-14 12:33:19 +01:00
iamchristopher
321ab9bc91 Fixed DataManager changedata event emits original value instead of new value 2018-06-13 21:58:05 -04:00
Rex
ae9ca0840d Pass this.parent instead of this
Pass this.parent at 1st argument of event callback, to consistent with other events, i.e. `setdata`
2018-06-14 00:41:49 +08:00
Richard Davey
a2c20a9aa7 lint fixes 2018-06-05 01:08:32 +01:00
Richard Davey
c0ac1259ea Significant Data Manager overhaul.
Adds in values property, removes redundant functions, streamlines the event flow, adds features to the get and set handlers.
2018-06-05 01:01:13 +01:00
Chris Andrew
5f3767f43d Polished some DataManagerPlugin and EachActiveSoundCallback descriptions. 2018-05-23 08:18:49 +01:00
Chris Andrew
f95b35eae7 Finished off descriptions for Data, Plugins and Sound. 2018-05-23 08:09:24 +01:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
e3aa437340 DataManagerPlugin would throw an error on Game.destroy if you had any Scenes in the Scene Manager had not been run. Fix #3596 2018-04-20 13:34:45 +01:00
Richard Davey
1be486fab4 destroy only called once, no matter how many times the Scene restarts. Fix #3581 2018-04-17 12:25:45 +01:00
Richard Davey
07a55e5d1f Removed debug call and merged Scene Systems boot and start sequences. Fix #3579 2018-04-17 02:34:07 +01:00
Richard Davey
ce7d67297f Moving from 3.4.1 to 3.5.0 so we can release new camera fx and scene transitions 2018-04-15 12:44:47 +01:00
Richard Davey
205502a747 Prevent double-destroy from happening. Fix #3569 (however, Game.destroy now fails elsewhere) 2018-04-14 17:39:24 +01:00
Richard Davey
6b2307594a Scene plugin flow overhaul
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
Chris Andrew
7eb0342663 Documented the SceneManager. 2018-04-02 18:01:17 +01:00
Chris Andrew
381784d58f Documented the DataManager class. 2018-04-02 16:32:21 +01:00
Richard Davey
91008232ad jsdoc fixes 2018-03-29 13:12:07 +01:00
Richard Davey
06998276ec Removed stict mode warning 2018-03-28 16:00:19 +01:00
orblazer
b1d83188ef Add generic type and fix types on Data and Display 2018-03-27 14:19:42 +02:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
orblazer
1e8311e1ab Add callbacks on Dom and Data 2018-03-19 22:43:48 +01:00
orblazer
bf630f7d57 Fix types in JSDocs 2018-03-19 19:49:14 +01:00
orblazer
6a4fda392c Fix Object type in DataManager 2018-03-19 19:03:00 +01:00
orblazer
e2ab82c7b1 Fix types on Data 2018-03-19 16:37:01 +01:00
Hua
f16cf72826 Fix bug
Copy value of key, instead of the reference of data object
2018-03-16 16:57:25 +08:00
Richard Davey
965f2b0e74 Fixed jsdocs and general tidying up. 2018-02-13 00:41:01 +00:00
Richard Davey
2813ac8162 Moved PluginManager and merged configs into single root file for easier changing. 2018-02-12 23:03:48 +00:00
Richard Davey
14c5aad929 Added jsdocs 2018-02-12 22:16:18 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
2a86400a28 Added in jsdocs 2018-01-31 13:54:44 +00:00