Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
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
c91ed91ce3
License link update
2019-05-10 16:15:04 +01: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
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
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
205502a747
Prevent double-destroy from happening. Fix #3569 (however, Game.destroy now fails elsewhere)
2018-04-14 17:39:24 +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
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
a802914243
Added in destroy methods for all managers and invoked them from Game
2018-01-31 03:38:10 +00:00
Richard Davey
4ec30b8db8
Recoded the Data component
...
Added is back in as DataManager, which Game Objects can have an instance of. Plus exposed as DataManagerPlugin available to Scenes. Removed callback based system and implemented events and fixed the destroy method.
2018-01-30 00:55:27 +00:00