Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
15abc3824a
Plugins Types
2019-05-09 12:35:33 +01:00
Richard Davey
c85648e06a
The PluginManager.installScenePlugin
method has a new optional boolean parameter fromLoader
which controls if the plugin is coming in from the result of a Loader operation or not. If it is, it no longer throws a console warning if the plugin already exists. This fixes an issue where if you return to a Scene that loads a Scene Plugin it would throw a warning and then not install the plugin to the Scene.
2019-02-28 12:24:41 +00:00
Richard Davey
42cb39749f
Matter and Snapshot typedefs
2019-02-13 15:22:29 +00:00
Richard Davey
eb9ed3463f
Lots of namespace and jsdoc fixes
2019-02-01 18:02:58 +00:00
Richard Davey
1eccff1e3b
Fixed jsdoc links and markdown bullet lists
2019-01-18 15:20:56 +00:00
Richard Davey
bc962c25dc
All listeners use the new Events
2019-01-18 13:41:43 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
5da77075f4
PluginManager.install
returns null
if the plugin failed to install in all cases.
2018-10-23 13:28:56 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
bddca4c1de
Added all of the DOM components the Scale Manager needs
2018-10-09 18:13:56 +01:00
Richard Davey
7765496b19
Moved FB plugin behind build flag
2018-08-23 18:10:20 +01:00
Richard Davey
b25ff9e065
Moved Camera3D to optional plugin
...
Also included build flag to allow it to be compiled into the standard lib if required (saves a bunch of KB in duplicated classes)
2018-08-23 15:30:21 +01:00
Richard Davey
beb286297c
Camera3D Plugin moved out of the main src folder to optional plugin
2018-08-23 13:18:25 +01:00
Richard Davey
2d91d4a26b
You can now access the Game instance directly from a Scene using this.game
2018-08-07 11:19:20 +01:00
Richard Davey
a29aba0a11
Merge pull request #3859 from samme/feature/plugin-data
...
Pass `data` value to global plugins
2018-07-31 11:39:36 +01:00
Richard Davey
063a432ec9
Destroy will now clear out all custom plugins. Fix #3856
2018-07-31 10:28:36 +01:00
Richard Davey
75db482ec6
Added destroyCustomPlugin and destroyCorePlugin
2018-07-31 10:28:09 +01:00
Richard Davey
c65e3c7428
Added FB Instant Games Plugin to core (will prepare for moving to unique build once feature complete)
2018-07-27 08:33:51 +01:00
samme
4c23359fd8
Pass data
value to global plugins
2018-07-23 10:51:00 -07:00
Rafael Barbosa Lopes
904b6c13da
Delete console.log
call on PluginManager.
2018-05-26 14:01:07 -03:00
Richard Davey
a8f1b23b73
Fixed jsdoc errors
2018-05-25 17:20:50 +01:00
Chris Andrew
f95b35eae7
Finished off descriptions for Data, Plugins and Sound.
2018-05-23 08:09:24 +01:00
Richard Davey
0b1d32b571
New registerFileType argument, new Global Plugin mapping and createEntry method
...
* PluginManager.registerFileType has a new property `addToScene` which allows you to inject the new file type into the LoaderPlugin of the given Scene. You could use this to add the file type into the Scene in which it was loaded.
* PluginManager.install has a new property `mapping`. This allows you to give a Global Plugin a property key, so that it is automatically injected into any Scenes as a Scene level instance. This allows you to have a single global plugin running in the PluginManager, that is injected into every Scene automatically.
* PluginManager.createEntry is a new private method to create a plugin entry and return it. This avoids code duplication in several other methods, which now use this instead.
2018-05-18 18:43:27 +01:00
Richard Davey
4c1703768d
Docs update
2018-05-18 17:37:20 +01:00
Richard Davey
32818ee9cd
jsdoc fixes
2018-05-17 15:10:23 +01:00
Richard Davey
919676ae10
PluginManager.destroy didn't reference the plugin correctly, throwing an Uncaught TypeError if you tried to destroy a game instance. Fix #3668
2018-05-17 12:16:14 +01:00
Richard Davey
9f7d3bf9ca
Allowed get
to return the class and added autoStart boolean
2018-05-16 14:35:45 +01:00
Richard Davey
6d1166a9c2
lint fixes
2018-05-15 14:28:27 +01:00
Richard Davey
3043fd52e6
Added jsdocs and unified the boot process
2018-05-15 14:19:56 +01:00
Richard Davey
ef9ab052c7
PluginManager updates to handle Scene system injection, PluginCache use and registering new game objects and file types
2018-05-15 12:52:18 +01:00
Richard Davey
350cb037b7
All systems now register themselves with the new PluginCache
2018-05-15 12:51:50 +01:00
Richard Davey
4741ee02b1
Updated docs and lint fixes
2018-05-11 18:55:44 +01:00
Richard Davey
444dda12d7
Added option to insert plugin into Scene immediately
2018-05-11 18:22:28 +01:00
Richard Davey
d160f5c648
Removed log and improved docs
2018-05-11 16:24:10 +01:00
Richard Davey
a2b1c72a51
PluginManager now handles booting custom scene plugins
2018-05-11 16:01:37 +01:00
Richard Davey
9dc76348cb
Added new base ScenePlugin
2018-05-11 16:01:23 +01:00
Richard Davey
47077ea9f3
We don't need the key, so remove it.
2018-05-11 16:00:59 +01:00
Richard Davey
45c3336354
Revamped PluginManager, now working to install, start and stop plugins.
2018-05-11 14:06:51 +01:00
Richard Davey
ed8a0d97e3
Renamed Plugin to BasePlugin to accurately reflect what it is. Added default methods.
2018-05-11 14:06:35 +01:00
Richard Davey
e431cc33f9
Moved plugins file to DefaultPlugins and changed the namespace
2018-05-11 14:06:13 +01:00
Richard Davey
0a46c13f4c
Working through new plugin structure
2018-05-11 01:50:37 +01:00
Richard Davey
8ca79cdda4
Working on the plugin config setup
2018-05-10 17:15:25 +01:00
Richard Davey
be330e609e
Moved PluginManager to new location
2018-05-10 17:14:33 +01: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
ef87b33a10
Added jsdocs
2018-02-12 21:54:51 +00:00
Richard Davey
b6b8f70550
DisplayList now just extends List and removed the Plugin, as it acts as its own plugin now.
2018-02-12 16:59:57 +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
Richard Davey
f73d66a246
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-01-31 03:38:13 +00:00